-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.js
50 lines (44 loc) · 904 Bytes
/
.eslintrc.js
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
module.exports = {
"extends": "airbnb",
"ignorePatterns": ["client/statistics/js/searchstats.js", "client/charts/"],
"plugins": [
"react"
],
"settings": {
"import/resolver": {
webpack: {
config: {
extensions: ['.js', '.jsx']
}
}
}
},
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true
},
"ecmaVersion": 2020
},
"globals": {
"window": true,
"HTMLInputElement": true,
"FormData": true,
"fetch": true,
"document": true,
"import": true,
},
"rules": {
"arrow-body-style": 0,
"prefer-template": 0,
"no-tabs": 0,
"indent": ["error", "tab"],
"no-underscore-dangle": 0,
"react/jsx-indent": ["error", "tab"],
"react/jsx-indent-props": ["error", "tab"],
"react/jsx-no-bind": ["warn"],
"prefer-destructuring": 0,
"import/no-unresolved": 0,
"radix": ["error", "as-needed"],
"semi": ["error", "never"]
}
};