-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
79 lines (78 loc) · 1.95 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
79
{
"env": {
"es6": true,
"browser": true
},
"plugins": [
"react"
],
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": false,
"modules": true,
"objectLiteralComputedProperties": true,
"objectLiteralDuplicateProperties": false,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"restParams": true,
"spread": true,
"superInFunctions": true,
"templateStrings": true,
"jsx": true
}
},
"rules": {
"prefer-const": 2,
"no-const-assign": 2,
"no-var": 2,
"no-new-object": 2,
"object-shorthand": 2,
"no-array-constructor": 2,
"quotes": [2, "single"],
"prefer-template": 2,
"no-param-reassign": 1,
"prefer-arrow-callback": 2,
"arrow-spacing": 2,
"arrow-parens": [2, "as-needed"],
"arrow-body-style": ["error", "as-needed"],
"no-iterator": 2,
"dot-notation": 2,
"eqeqeq": 2,
"brace-style": 2,
"indent": ["error", 2, {"SwitchCase": 1}],
"space-before-blocks": 2,
"keyword-spacing": 2,
"space-infix-ops": 2,
"padded-blocks": [2, "never"],
"space-in-parens": 2,
"array-bracket-spacing": 2,
"object-curly-spacing": 2,
"max-len": [1, 200, 4],
"comma-style": 2,
"comma-dangle": 2,
"semi": 2,
"camelcase": 1,
"no-underscore-dangle": 0,
"yoda": 2,
"no-unsafe-finally": 2,
"require-yield": 2,
"react/prefer-es6-class": 1,
"react/jsx-pascal-case": 2,
"react/jsx-closing-bracket-location": [1, "tag-aligned"],
"jsx-quotes": 2,
"react/jsx-boolean-value": 2,
"react/jsx-wrap-multilines": 1,
"react/self-closing-comp": 1,
"react/jsx-no-bind": 0,
"react/no-is-mounted": 2
}
}