-
Notifications
You must be signed in to change notification settings - Fork 34
/
.eslintrc
35 lines (35 loc) · 839 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
{
"parser": "babel-eslint",
"env": {
"node": true,
"es6": true
},
"rules": {
// Erros
"valid-typeof": 2,
// Best Practices
"no-useless-escape": 1,
"eqeqeq": 1,
"vars-on-top": 2,
"default-case": 2,
// Variables
"init-declarations": 1,
"no-delete-var": 1,
"no-label-var": 1,
"no-shadow-restricted-names": 1,
"no-undef": 2,
"no-undef-init": 2,
"no-unused-vars": 0,
// Node
"callback-return": 2,
"handle-callback-err": 0,
"no-mixed-requires": 1,
"no-restricted-modules": 2,
// Stylistic Issues
// ECMAScript 6
"no-var": 1,
"constructor-super": 1,
"no-duplicate-imports": 1,
"no-const-assign": 1,
}
}