@fwwgroup/eslint-config-react
v1.0.1
Published
FWW react eslint config
Maintainers
Readme
Install
npm install @fwwgroup/eslint-config-reactInstall dependencies
npm install @typescript-eslint/parser typescript prettier eslint-plugin-prettier eslint-plugin-testing-libraryPrettier 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/
