forked from SUNET/cnaas-front
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
40 lines (40 loc) · 1.02 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"parser": "@babel/eslint-parser",
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb",
"airbnb/hooks",
"plugin:prettier/recommended" // needs to be last
],
"env": {
"browser": true,
"jest": true
},
"rules": {
"camelcase": "warn",
"eqeqeq": "warn",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/label-has-associated-control": [
"warn",
{
"some": ["htmlFor", "nested"]
}
],
"no-console": "warn",
"no-lone-block": "off", // conflicts with setState
"prettier/prettier": ["error"],
"react/destructuring-assignment": "warn",
"react/jsx-filename-extension": "off", // allow .js file suffix
"react/jsx-no-bind": "off",
"react/jsx-no-useless-fragment": "off", // allow conditional rendering
"react/prop-types": "off",
"react/prefer-stateless-function": "warn", // allow class components
"react/sort-comp": "warn"
},
"settings": {
"react": {
"version": "detect" // eslint-plugin-react
}
}
}