1.0.1 • Published 1 year ago
@fwwgroup/eslint-config-react v1.0.1
Install
npm install @fwwgroup/eslint-config-react
Install dependencies
npm install @typescript-eslint/parser typescript prettier eslint-plugin-prettier eslint-plugin-testing-library
Prettier Config
Create .prettierrc
file on the root
{
"singleQuote": true,
"tabWidth": 2,
"printWidth": 120,
"trailingComma": "es5",
"arrowParens": "avoid"
}
Implement config
Include config in one of the ways:
Extend your eslint.config.js/eslintrc.js/eslintrc.cjs node module:
module.export = {
...
extends: [
'@fwwgroup/react',
],
...
}
or include it in package.json (might be deprecated for some new repos)
{
...
"eslintConfig": {
"extends": ["@fwwgroup/eslint-config-react"]
}
...
}
Rules reference: https://eslint.org/docs/latest/rules/