-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
79 lines (78 loc) Β· 1.58 KB
/
.eslintrc
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
{
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"prettier",
"prettier/react"
],
"rules": {
"react/jsx-filename-extension": [1, {
"extensions": [".js", ".jsx"]
}],
"react/prop-types": 0,
"react/jsx-no-bind": 0,
"jsx-a11y/label-has-for": 0,
"no-console": 1,
"import/no-unresolved": [2, {
"commonjs": true,
"amd": true
}],
"import/named": 2,
"import/namespace": 2,
"import/default": 2,
"import/export": 2,
"getter-return": 0,
"for-direction": "off",
"arrow-parens": 0,
"prefer-const": 1,
"no-var": "error",
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
},
"settings": {
"react": {
"pragma": "React",
"version": "detect"
},
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx",
".tsx",
".ts"
]
}
}
},
"plugins": [
"react",
"import",
"jsx-a11y",
"jest",
"react-hooks"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"arrowFunctions": true,
"classes": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true,
"jest": true
}
}