-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.json
39 lines (39 loc) · 1.12 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
{
"extends": ["airbnb", "prettier", "plugin:react/recommended"],
"plugins": ["react", "jsx-a11y", "import", "react-hooks"],
"rules": {
"react-hooks/rules-of-hooks": "error", // Checks rules of Hooks
"react-hooks/exhaustive-deps": "warn", // Checks effect dependencies
"react/prefer-stateless-function": "off",
"react/prop-types": "off",
"react/no-danger": "off",
"react/jsx-filename-extension": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["hrefLeft", "hrefRight", "to"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}
],
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"react/destructuring-assignment": "off",
"no-shadow": "off",
"import/prefer-default-export": "off"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 11,
"sourceType": "module"
},
"settings": {
"import/core-modules": []
},
"env": {
"browser": true
}
}