@auroradigital/prettier-config
v1.0.1
Published
A shareable Prettier config created with readability and productivity in mind.
Downloads
42
Maintainers
Readme
@auroradigital/prettier-config
Prettier, but with opinionated changes.
Changed rules
| Rule | Old | New | Why |
|--------|--------|---------|-----------------------|
| semi | true
| false
| Semicolons are unnecessary in JavaScript and are noisy. |
| singleQuote | false
| true
| Single quotes are more popular in JavaScript than double quotes and are less noisy.
| trailingComma | false
| all
| Trailing commas allow for quicker additions to lists from cold starts.
Usage
Install:
yarn add --dev @auroradigital/prettier-config
or
npm install --save-dev @auroradigital/prettier-config
Edit package.json
:
{
// ...
"prettier": "@auroradigital/prettier-config"
}
Prettier + ESLint
This Prettier config is designed to work alongside our shareable ESLint config: eslint-config-aurora.