-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc.json
88 lines (88 loc) · 2.25 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
{
"extends": [
"airbnb",
"eslint:recommended",
"plugin:react/recommended"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"babelOptions": {
"presets": ["@babel/preset-react"]
}
},
"root": true,
"plugins": [
"lodash",
"react-hooks"
],
"rules": {
"arrow-body-style": "off",
"arrow-parens": "off",
"import/no-cycle": "off",
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"import/prefer-default-export": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/control-has-associated-label": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-quotes": [
"error",
"prefer-single"
],
"linebreak-style": "off",
"lines-between-class-members": "off",
"max-len": "off",
"no-console": "off",
"no-empty-function": "off",
"no-nested-ternary": "off",
"no-plusplus": "off",
"no-underscore-dangle": "off",
"no-unused-vars": "warn",
"react/display-name": "warn",
"react/function-component-definition": "off",
"function-paren-newline": "off",
"no-restricted-exports": "off",
"default-param-last": "off",
"react/jsx-no-useless-fragment": "off",
"react/jsx-filename-extension": [
"warn",
{
"extensions": [
".js",
".jsx"
]
}
],
"react/jsx-props-no-spreading": "off",
"react/prefer-stateless-function": "off",
"react/prop-types": "warn",
"react/state-in-constructor": "off",
"react/static-property-placement": "off",
"semi": [
"warn",
"never"
],
"lodash/prefer-lodash-method": "warn",
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencie
"func-names": "off",
"no-unsafe-optional-chaining": "off" // Need to be resolved in codebase and removed
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": [
"node_modules",
"src"
]
}
}
},
"env": {
"browser": true,
"jest": true
}
}