@openregion/prettier-config
v1.0.1
Published
Prettier shared config
Downloads
6
Readme
Prettier shared config
Open Region Prettier shared config
Usage
Install package
npm install --save-dev @openregion/prettier-config
Create .prettierrc.mjs
file with this content
import openRegionPrettierConfig from '@openregion/prettier-config';
export default {
...openRegionPrettierConfig,
};
ESLint
To use this package with ESLint, install
npm install --save-dev eslint-config-prettier
Extend ESLint config (.eslintrc
) with prettier
. Example:
{
"extends": [
"@openregion",
"prettier"
]
}
This will turn off all rules that are unnecessary or might conflict with Prettier.