-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.js
63 lines (63 loc) · 1.28 KB
/
.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
51
52
53
54
55
56
57
58
59
60
61
62
63
module.exports = {
parserOptions: {
sourceType: 'module'
},
env: {
browser: true,
es6: true,
},
globals: {
ASSET_VERSION: true,
DEBUG: true,
SERVER_URL: true,
},
extends: [
'airbnb-base',
'plugin:react/recommended',
],
settings: {
'import/core-modules': ['Routing'],
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx"
]
}
},
"react": {
"version": "detect",
},
},
rules: {
'lines-between-class-members': 0,
'operator-linebreak': 0,
'no-plusplus': 0,
'import/prefer-default-export': 0,
'no-mixed-operators': 0,
'no-underscore-dangle': 0,
'prefer-template': 0,
'func-names': 0,
'class-methods-use-this': 0,
'import/no-mutable-exports': 0,
"arrow-body-style": ["error", "as-needed"],
"strict": 0,
"arrow-parens": 0,
"no-bitwise": ["error", { "allow": ["~"] }],
'no-throw-literal': 0,
"semi-style": 0,
"function-paren-newline": 0,
"no-new": 0,
'object-curly-newline': 0,
"no-restricted-syntax": [
'error',
'LabeledStatement',
'WithStatement',
],
"no-continue": 0,
"no-console": 0,
"react/prop-types": 0,
"no-param-reassign": 0,
"no-alert": 0,
},
};