@xoi/prettier-config
A minimal Prettier configuration for JavaScript projects
Installation
This module is distributed via npm
which is bundled with node
and should be installed as one of your project's devDependencies
:
yarn add -D @xoi/prettier-config
This package has peer dependencies. Please make sure you have those installed as well.
yarn add -D eslint@^6.1.0 \
prettier@^1.18.2
Usage
.eslintrc.*
module.exports = {
extends: [
'other-eslint-configs',
// Add @xoi/prettier-config as the last
// item in the array so it gets the chance to
// override other configs.
'@xoi/prettier-config',
],
}
.prettierrc.js
module.exports = require('@xoi/prettier-config')
Editor Integration
Prettier can be integrated with various editors. See the Editor Integration page in the Prettier documentation for details.
Contributing
Open an issue or create a pull request