-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.js
68 lines (68 loc) · 1.68 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
64
65
66
67
68
module.exports = {
"extends": "airbnb",
"installedESLint": true,
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true
},
"plugins": [
"react",
"jsx-a11y",
"import"
],
"rules": {
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"quote-props": "off",
"max-len": "off",
"semi": ["off", "never"],
"prefer-template": "off",
"no-unused-vars": "warn",
"one-var": "off",
"no-use-before-define": "off",
"comma-dangle": "off",
"no-param-reassign": "warn",
"no-underscore-dangle": "off",
"no-bitwise": "off",
"class-methods-use-this": "warn",
"no-unused-expressions": "warn",
"keyword-spacing": "warn",
"consistent-return": "off",
"arrow-body-style": [
"warn",
"as-needed"
],
"space-before-function-paren": [
"error",
"never"
],
"no-trailing-spaces": [
"error",
{
"skipBlankLines": true
}
],
"import/no-absolute-path": "off",
"import/extensions": "off",
"import/no-unresolved": "off",
"import/no-named-as-default-member": "off",
"import/no-named-as-default": "off",
"import/no-extraneous-dependencies": "warn",
"react/prop-types": "off",
"react/jsx-filename-extension": "off",
"react/jsx-indent": [
"error",
4
],
"react/jsx-indent-props": [
"error",
4
]
}
}