-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc
41 lines (41 loc) · 1.06 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
{
"parser": "babel-eslint",
//"extends": "eslint:recommended",
"plugins": [
"react"
],
"parserOptions": {
"ecmaFeatures": {
"blockBindings": true,
"arrowFunctions": true,
"defaultParams": true,
"forOf": true
},
},
"env": {
"node": true,
"es6": true
},
"rules": {
"no-console": 0,
"arrow-spacing": [2, { "before": true, "after": true }],
"arrow-parens": [2, "always"],
"eqeqeq": [2, "smart"],
//"indent": [2, 4, {"SwitchCase": 1}],
"quotes": [2, "single"],
"linebreak-style": [2, "unix"],
"prefer-arrow-callback": 2,
"dot-notation": [2, {"allowKeywords": true}], //some libraries use keywords like catch or delete
"no-use-before-define": 0,
"no-unused-vars": 0, // see https://github.com/babel/babel-eslint/issues/21
"semi": [2, "always"],
"strict": 0,
"yoda": [2, "never"],"no-alert": 2,
"no-const-assign": 2,
"no-this-before-super": 2,
"no-unexpected-multiline": 2,
"no-var": 1,
"no-warning-comments": 0,
"react/prefer-es6-class": 1
}
}