1.0.0 • Published 6 years ago
@xoi/prettier-config v1.0.0
@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-configThis package has peer dependencies. Please make sure you have those installed as well.
yarn add -D eslint@^6.1.0 \
prettier@^1.18.2Usage
.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
1.0.0
6 years ago