-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
50 lines (50 loc) · 1.35 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
{
"root": true,
"extends": "airbnb",
"env": {
"browser": true,
"commonjs": true,
"es2020": true,
"node": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 2018,
"ecmaFeatures": {
"jsx": true,
"spread": true,
"experimentalObjectRestSpread": true,
"object-shorthand": ["error", "always"]
},
"sourceType": "module"
},
"plugins": ["react"],
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"no-console": "error",
"import/no-extraneous-dependencies": ["error", {"optionalDependencies": false, "peerDependencies": false}],
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/anchor-is-valid": "off"
},
"settings": {
"import/resolver": {
"alias": [
["@app", "./src"],
["@components", "./src/components"],
["@modules", "./src/ducks/modules"],
["@selectors", "./src/selectors"],
["@hooks", "./src/hooks"],
["@utils", "./src/utils"]
]
}
},
"overrides": [
{
"files": "*.test.js",
"rules": {
"react/jsx-props-no-spreading": "off"
}
}
]
}