@andrewmcodes/prettier-config
Version:
Personal Prettier config for @andrewmcodes
59 lines (38 loc) • 2.04 kB
Markdown
# @andrewmcodes/prettier-config
[](https://www.repostatus.org/#active)
[](https://conventionalcommits.org)


[](https://github.com/andrewmcodes/prettier-config/actions/workflows/ci.yml)
This is a shareable [Prettier](https://prettier.io/) configuration, which includes a set of preferred styling rules that can be easily extended.
## Installation
```shell
# npm
npm install --save-dev @andrewmcodes/prettier-config
# yarn
yarn add -D @andrewmcodes/prettier-config
```
## Usage
You can use this a few different ways, but the recommended approach is to add it to your `package.json`:
```json
"prettier": "@andrewmcodes/prettier-config"
```
If you don’t want to use package.json, you can use any of the supported extensions to export a string, e.g. .prettierrc.json:
```json
"@andrewmcodes/prettier-config"
```
If you need to extend the configuration, you can use the .js extension and export an object:
```javascript
module.exports = {
...require("@andrewmcodes/prettier-config"),
semi: false,
};
```
## Contributing
I'd love your help refining this package. Please don't hesitate to send a pull request.
### Code Style
Run `yarn format` before committing to ensure your changes comply with our coding style.
### Commit Messages
This project uses [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/). Please make sure your commit messages follow this format.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).