eslint-config-react-tracktor
v1.8.1
Published
Tracktor ESLint config
Downloads
525
Maintainers
Readme
eslint-config-react-tracktor
A set of opinionated ESLint rules for react projects
Installation
yarn add eslint-config-react-tracktor -D
Usage
Create a file named .eslintrc
in your root project and extends config :
{
"extends": "eslint-config-react-tracktor",
"rules": {
"...": "..."
},
"overrides": "..."
}
Specific rules
For better compatibility with generated api files,
some rules are disabled inside src/api
folder.
{
"files": "./src/api/**/*.ts",
"rules": {
"indent": "off",
"no-duplicate-imports": "off",
"sort-keys": "off",
"no-redeclare": "off",
}
}
Read more
Read more about eslint rules here: http://eslint.org/docs/rules