https://github.com/repeale/prettier-config
https://github.com/repeale/prettier-config
prettier
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/repeale/prettier-config
- Owner: repeale
- License: mit
- Created: 2021-06-10T21:47:40.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-05T20:24:54.000Z (about 4 years ago)
- Last Synced: 2025-03-20T03:04:06.594Z (about 1 year ago)
- Topics: prettier
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Prettier Config

- [Prettier Config](#prettier-config)
- [Getting started](#getting-started)
- [Config](#config)
- [License](#license)
## Getting started
Install the package and related peerDependencies as `devDependencies`:
```sh
npm install --save-dev @repeale/prettier-config prettier
```
or
```sh
yarn add --dev @repeale/prettier-config prettier
```
Reference `@repeale/prettier-config` in your package.json:
```json
{
"name": "my-project",
"version": "1.0.0",
"prettier": "@repeale/prettier-config"
}
```
or export the config from a `.prettierrc.js` file:
```json
module.exports = {
...require('@repeale/prettier-config'),
}
```
this will allow you to easilly overwrite options.
Or, you can use it in other ways as described in the
[official documentation](https://prettier.io/docs/en/configuration.html#sharing-configurations).
## Config
Check the [`.prettierrc.json`](./.prettierrc.json) file if you want to inspect the configuration.
## License
[MIT License](./LICENSE)