-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
55 lines (55 loc) · 1.42 KB
/
.eslintrc.json
File metadata and controls
55 lines (55 loc) · 1.42 KB
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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"airbnb",
"airbnb/hooks",
"prettier",
"eslint:recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "react-hooks"],
"rules": {
"jsx-a11y/control-has-associated-label": "off",
"react-hooks/exhaustive-deps": [
"warn",
{
"additionalHooks": "(useCustomHook|useAnotherCustomHook)"
}
],
"react/prop-types": "off",
"react/jsx-no-bind": [
"warn",
//смягчил правило с error на warn
{
"allowArrowFunctions": true
}
],
//разрешил стрелочные функции Ivan
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"no-unused-vars": "off",
// пока что отключила это правило, т.к. оно мешает в работе с хуками К.Л.
"no-param-reassign": "off",
// отключила это правило, потому что мешает в работе с Redux
"react/react-in-jsx-scope": "off",
"import/prefer-default-export": "off",
"react/function-component-definition": "off",
"react/jsx-props-no-spreading": "off",
"react/no-unescaped-entities": "off",
"react/button-has-type": "off",
"import/no-extraneous-dependencies": "off",
"react/destructuring-assignment": "off",
"react/require-default-props": "off"
}
}