-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc
71 lines (71 loc) · 1.67 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
{
"env": {
"node": true,
"browser": true
},
// Parser
"parser": "babel-eslint",
"parserOptions": {
// ECMA Features
"ecmaFeatures": {
"arrowFunctions": true,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"modules": true,
"objectLiteralComputedProperties": true,
"templateStrings": true,
"jsx": true
}
},
"plugins": [
"react"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:import/warnings"
],
"rules": {
"react/prop-types": [2, { "ignore": ["children", "route", "previousRoute"] }],
// Possible Errors
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-empty": 2,
"no-func-assign": 2,
"no-inner-declarations": 2,
"no-unreachable": 2,
"no-unexpected-multiline": 2,
// Best practices
"consistent-return": 0,
"curly": [2, "multi-line"],
"eqeqeq": 2,
"no-else-return": 2,
"no-multi-spaces": 0,
"no-console":0,
// Strict mode
"strict": 0,
// Variables
"no-shadow": 0,
"no-unused-vars": [1, { "args": "none" }],
"no-use-before-define": 0,
// Style
"brace-style": [1, "stroustrup"],
"comma-spacing": [2, {"before": false, "after": true}],
"comma-style": [2, "last"],
"consistent-this": [2, "that"],
"lines-around-comment": [2, {"allowBlockStart": true}],
"key-spacing": 0,
"new-parens": 0,
"quotes": [2, "single", "avoid-escape"],
"no-underscore-dangle": 0,
"no-unneeded-ternary": 2,
"semi": 2,
// ES6
"no-var": 2,
"no-this-before-super": 2,
"object-shorthand": 0
}
}