-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
78 lines (78 loc) · 1.82 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"plugins": [
"prettier",
"react"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"legacyDecorators": true
}
},
"extends": [
"react-app"
],
"env": {
"browser": true,
"node": true,
"es6": true
},
"rules": {
"jsx-quotes": [2, "prefer-single"],
"react/jsx-curly-spacing": [2, "always"],
"react/prefer-stateless-function": "off",
"react/jsx-filename-extension": [1, {
"extensions": [".js", ".jsx"]
}],
"react/no-deprecated": "off",
"jsx-a11y/href-no-hash": "off",
"no-throw-literal": "off",
"operator-assignment": "off",
"no-unused-vars": ["error", {
"vars": "all",
"args": "after-used"
}],
"comma-dangle": "error",
"indent": ["error", 2, {
"SwitchCase": 1
}],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-console": "off",
"camelcase": "off",
"object-curly-spacing": ["error", "never"],
"prefer-const": "off",
"no-trailing-spaces": "error",
"no-underscore-dangle": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"no-useless-escape": "off",
"no-restricted-properties": "off",
"consistent-return": "off",
"guard-for-in": "off",
"no-loop-func": "off",
"curly": ["error", "all"],
"brace-style": ["error", "1tbs"],
"default-case": "error",
"prefer-destructuring": "off",
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": "block-like"
},
{
"blankLine": "always",
"prev": "block-like",
"next": "*"
}
],
"max-len": ["error", {
"code": 150
}],
"implicit-arrow-linebreak": ["error", "beside"],
"no-control-regex": "off",
"arrow-parens": ["error", "always"]
}
}