forked from schmooblidon/meleelight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
36 lines (35 loc) · 895 Bytes
/
.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
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"commonjs": true,
"es6": true
},
"rules": {
"flowtype-errors/show-errors": 2,
// Style / cleanliness
"indent": ["error", 2, { "SwitchCase": 1 }],
"no-var": ["error"],
"arrow-parens": ["error"],
"no-duplicate-imports": ["error"],
"one-var": ["error", "never"],
"camelcase": ["error"],
// Logic / errors / performance
"semi": ["error", "always"],
"no-undef": ["error"],
"prefer-const": ["error"],
"no-const-assign": ["error"],
"wrap-iife": ["error"],
"no-loop-func": ["error"],
"no-param-reassign": ["error"],
"prefer-spread": ["error"],
"prefer-arrow-callback": ["error"],
"no-confusing-arrow": ["error"],
"no-dupe-class-members": ["error"],
"eqeqeq": ["error", "always"]
},
"plugins": [
"flowtype-errors"
]
}