-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc
executable file
·63 lines (63 loc) · 1.43 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
{
"extends": [
"airbnb",
"plugin:prettier/recommended",
"prettier",
"prettier/react",
"react-app"
],
"plugins": ["react", "prettier", "react-hooks"],
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"parserOptions": {
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"react/jsx-filename-extension": [
2,
{
"extensions": [".js", ".jsx"]
}
],
"linebreak-style": 0,
"import/no-extraneous-dependencies": "warn",
"import/no-unresolved": "off",
"import/named": "warn",
"import/prefer-default-export": "off",
"jsx-a11y/aria-role": 1,
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/label-has-associated-control": [
2,
{
"assert": "either"
}
],
"jsx-a11y/no-autofocus": 1,
"jsx-a11y/no-noninteractive-element-interactions": 1,
"jsx-a11y/anchor-is-valid": 1,
"prettier/prettier": "warn",
"react/forbid-prop-types": 0,
"react/jsx-closing-bracket-location": 0,
"react/no-multi-comp": 0,
"react/no-unused-prop-types": 1,
"react/prop-types": 0,
"react/no-unescaped-entities": 1,
"react/jsx-closing-tag-location": 0,
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error"
},
"settings": {
"import/resolver": {
"node": {
"moduleDirectory": ["node_modules", "./src"]
}
}
}
}