-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
54 lines (54 loc) · 1.61 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
module.exports = {
"extends": "airbnb",
"env": {
"node": true,
"es6": true,
"mocha": true
},
"globals": {
"document": false,
"window": false,
"fetch": false
},
// overrides
"rules": {
// error
"indent": [2, 4, { "SwitchCase": 1 }],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}],
// off
"no-console": "off",
"no-plusplus": "off",
"id-length": "off",
"func-names": "off",
"spaced-comment": "off",
"no-unused-expressions": "off",
"one-var": "off",
"react/jsx-indent": "off",
"import/no-extraneous-dependencies": "off",
"react/jsx-filename-extension": "off",
"react/jsx-no-bind": "off",
"jsx-a11y/label-has-for": "off",
"arrow-parens": "off",
"class-methods-use-this": "off",
"react/jsx-curly-spacing": "off",
"react/forbid-prop-types": "off",
"react/jsx-no-target-blank": "off",
"import/no-named-as-default": "off",
"react/no-array-index-key": "off",
// warn
"strict": "warn",
"max-len": "warn",
"no-lonely-if": "warn",
"react/no-unused-prop-types": "warn",
"react/no-string-refs": "warn",
"jsx-a11y/no-static-element-interactions": "warn",
"no-confusing-arrow": "warn",
"react/require-default-props": "warn"
}
};