-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.eslintrc
More file actions
100 lines (98 loc) · 2.61 KB
/
.eslintrc
File metadata and controls
100 lines (98 loc) · 2.61 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
"ecmaFeatures": {
"blockBindings": true,
"forOf": true,
"blockBindings": true,
"defaultParams": true,
"globalReturn": false,
"modules": true,
"objectLiteralShorthandMethods": true,
"objectLiteralShorthandProperties": true,
"templateStrings": true,
"spread": true,
"jsx": true,
"arrowFunctions": true
},
"plugins": [
"react"
],
"env": {
"browser": true,
"node": true
},
"globals": {
"async": true,
"fetch": true,
"it": true,
"describe": true,
"afterEach": true,
"beforeEach": true,
"expect": true,
"runs": true,
"waitsFor": true,
"LocalFileSystem": true,
"FileReader": true,
"jest": true
},
"rules": {
"no-multi-spaces": 2,
"no-underscore-dangle": 0,
"no-alert": 0,
"no-duplicate-case": 0,
"no-bitwise": 0,
"no-path-concat": 0,
"no-comma-dangle": 2,
"camelcase": 0,
"curly": 2,
"eqeqeq": 0,
"guard-for-in": 2,
"wrap-iife": 0,
"no-use-before-define": 2,
"new-cap": 2,
"quotes": 0,
"strict": 0,
"no-caller": 2,
"no-empty": 1,
"no-new": 2,
"no-plusplus": 0,
"no-unused-vars": 1,
"no-trailing-spaces": 2,
// STYLE
"max-params": [2, 7],
"key-spacing": [2, {
beforeColon: false,
afterColon: true
}],
"indent": [2, 4],
"brace-style": [2, "1tbs"],
"comma-spacing": [2, {before: false, after: true}],
"comma-style": [2, "last"],
"consistent-this": [1, "self"],
"eol-last": 0,
"new-cap": 0,
"new-parens": 2,
"no-array-constructor": 2,
"no-mixed-requires": 0,
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": 2,
"no-space-before-semi": 2,
"no-spaced-func": 1,
"padded-blocks": [2, "never"],
"semi": [2, "always"],
"space-after-keywords": [2, "always"],
"space-infix-ops": 0,
"max-len" : [1, 120],
"space-in-brackets": [2, "never"],
// REACT
"react/display-name": 0,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"react/no-did-mount-set-state": 1,
"react/no-did-update-set-state": 1,
"react/no-multi-comp": 1,
"react/prop-types": 0,
"react/react-in-jsx-scope": 1,
"react/self-closing-comp": 1,
"react/wrap-multilines": 1
}
}