-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc
75 lines (70 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
{
"parser": "babel-eslint",
"rules": {
"comma-dangle": [2, "never"],
"no-cond-assign": 2,
"no-constant-condition": 2,
"no-debugger": 2,
"no-undef": 1,
"no-unused-expressions": 1,
"no-unused-vars": 1,
"quotes": [2, "single"],
"camelcase": 2,
"eqeqeq": 0,
"camelcase": [2, {"properties": "always"}],
"no-empty": 0,
"new-cap": 0,
"space-unary-ops": 0,
"no-trailing-spaces": [2, { "skipBlankLines": true }],
"jsx-quotes": [1, "prefer-double"],
"react/jsx-indent-props": [2, 2],
"react/jsx-no-undef": 1,
"react/jsx-no-duplicate-props": 1,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-multi-comp": 1,
"react/no-unknown-property": 2,
"react/prop-types": 1,
"react/sort-comp": 1,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 1,
"react/wrap-multilines": 1
},
"es6": {
"ecmaFeatures": {
"modules": true,
"jsx": true,
"experimentalObjectRestSpread": true,
"arrowFunctions": true,
"blockBindings": true,
"regexUFlag": true,
"regexYFlag": true,
"templateStrings": true,
"binaryLiterals": true,
"octalLiterals": true,
"unicodeCodePointEscapes": true,
"superInFunctions": true,
"defaultParams": true,
"restParams": true,
"forOf": true,
"objectLiteralComputedProperties": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"objectLiteralDuplicateProperties": true,
"generators": true,
"destructuring": true,
"classes": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"BROWSER": true
},
"plugins": ["react"]
}