-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
50 lines (50 loc) · 1.38 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
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"rules": {
"react/state-in-constructor": 0,
"no-case-declarations": 0,
"no-nested-ternary": 0,
"prefer-const": 0,
"import/no-cycle": 0,
"react/sort-comp": 0,
"react/jsx-props-no-spreading": 0,
"react/destructuring-assignment": 0,
"react/no-array-index-key": 0,
"react/button-has-type": 0,
"linebreak-style": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-filename-extension": 0,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/no-noninteractive-element-interactions": 0,
"no-tabs": 0,
"global-require": 0,
"object-curly-newline": 0,
"max-len": ["error", { "code": 120 }],
"quote-props": 0,
"no-void": 0,
"comma-dangle": ["error", "never"],
"semi": ["error", "never"],
"no-console": 1,
"no-param-reassign": 0,
"class-methods-use-this": 0,
"arrow-body-style": ["error", "as-needed"],
"dot-notation": ["error", { "allowPattern": "^[a-z]+(_[a-z]+)+$" }],
"no-unused-expressions": ["error", {
"allowTaggedTemplates": true
}],
"no-underscore-dangle": ["error", {
"allowAfterThis": true,
"allowAfterSuper": true
}],
"func-names": ["error", "never"],
"import/prefer-default-export": 0
},
"settings": {
"import/resolver": "webpack"
}
}