1.1.2 • Published 2 years ago
@fixter/eslint-config-react v1.1.2
@fixter/eslint-config-react
Common eslint rules to use with all of our React projects.
Install
npm i -D @fixter/eslint-config-react
Usage
.eslintrc
{
"extends": ["@fixter/eslint-config-react"],
"rules": {
"no-eval": 0
}
}
TypeScript & JavaScript in the same project
This config is mainly for TS and to have it working alonside JS add the following in .eslintrc
:
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
Also if you want to customize some rules based on language add this:
"overrides": [
{
// disable TS rules for JS
"files": ["**/*.js"],
"parser": "@typescript-eslint/parser",
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.3
2 years ago
1.0.1
3 years ago
1.0.0
3 years ago
0.1.0
4 years ago
0.0.16
5 years ago
0.0.15
5 years ago
0.0.14
5 years ago
0.0.13
5 years ago
0.0.12
5 years ago
0.0.11
5 years ago
0.0.10
5 years ago
0.0.9
5 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago