-
Notifications
You must be signed in to change notification settings - Fork 37
/
.eslintrc
49 lines (49 loc) · 1.12 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
{
"parser": "babel-eslint",
"plugins": [
"react"
],
"env": {
"browser": true,
"es6": true,
"node": true,
"mocha": true
},
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": true,
"generators": true,
"modules": true,
"spread": true,
"templateStrings": true,
"jsx": true
},
"rules": {
"key-spacing": [1, {"beforeColon": false, "afterColon": true}],
"quotes": [1, "single"],
"new-cap": 1,
"no-multi-spaces": 1,
"no-shadow": 2,
"no-unused-vars": 2,
"no-use-before-define": [2, "nofunc"],
"brace-style": [1, "1tbs"],
"no-inline-comments": 1,
"indent": [2, 2],
"wrap-iife": 1,
"block-scoped-var": 2,
"no-unexpected-multiline": 2,
"no-underscore-dangle": 0,
"no-path-concat": 0,
"react/jsx-uses-vars": 1,
"react/jsx-quotes": [1, "double"],
"react/jsx-uses-react": 2,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/self-closing-comp": 1,
"react/wrap-multilines": 2
}
}