1.1.2 • Published 5 months 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
5 months ago
1.1.1
6 months ago
1.1.0
6 months ago
1.0.3
10 months ago
1.0.1
2 years ago
1.0.0
2 years ago
0.1.0
3 years ago
0.0.16
4 years ago
0.0.15
4 years ago
0.0.14
4 years ago
0.0.13
4 years ago
0.0.12
4 years ago
0.0.11
4 years ago
0.0.10
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago