-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
60 lines (60 loc) · 1.58 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
51
52
53
54
55
56
57
58
59
60
{
"parser": "babel-eslint",
"extends": "airbnb",
"env": {
"browser": true,
"node": true
},
ecmaFeatures: {
'jsx': true,
'modules': true
},
"rules": {
"indent": [2, 2, {SwitchCase: 1}],
"import/no-unresolved": "off",
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"no-useless-rename": "off",
"jsx-a11y/no-static-element-interactions": "off",
"arrow-body-style": "off",
"guard-for-in": "off",
"no-plusplus": "off",
"camelcase": "off",
"jsx-a11y/img-has-alt": "off",
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "ignore",
"exports": "ignore",
"functions": "ignore"
}],
"no-prototype-builtins": "off",
"no-trailing-spaces": "off",
"no-continue": "off",
"react/prefer-stateless-function": "off",
"no-param-reassign": "off",
"class-methods-use-this": "off",
"no-unused-vars": "warn",
"react/self-closing-comp": "warn",
"no-unreachable": "warn",
"react/prop-types": "warn",
"no-useless-return": "warn",
"prefer-const": "warn",
"prefer-template": "off",
"import/prefer-default-export": "off",
"react/no-unused-prop-types": "warn",
"react/require-default-props": "warn",
"padded-blocks": "warn",
"brace-style": "warn",
"func-names": "off",
"no-constant-condition": "off",
"no-underscore-dangle": "off",
"react/no-danger": "off",
"strict": "off",
"max-len": "off",
"no-useless-constructor": "warn"
},
plugins: [
'react'
],
}