@deuterium/prettier-config
v1.0.4
Published
Preset configuration for prettier
Downloads
3
Readme
prettier-config
prettier-config is an opinionated configuration for prettier.
Usage
Install with yarn:
yarn add --dev prettier @deuterium/prettier-config
For use with eslint, follow @deuterium/eslint-config and Ctrl+F prettier.
Create .prettierrc.js
in your root and add:
const prettierConfig = require('prettier-config')
module.exports = {
...prettierConfig,
}
Rules
You can add more rules, but currently it sets:
semi: false,
singleQuote: true,
trailingComma: 'es5',
tabWidth: 4