1.0.4 • Published 7 years ago

@deuterium/prettier-config v1.0.4

Weekly downloads
2
License
MIT
Repository
-
Last release
7 years ago

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