-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
63 lines (50 loc) · 1.33 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
{
"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,
"comma-dangle": 0,
"one-var": 0,
"spaced-comment": 2,
"space-before-function-paren": 0,
"no-prototype-builtins": 0,
// "no-unused-vars": 0,
"no-console": "off",
"no-debugger": "off",
"no-unused-vars": 0,
"prettier/prettier": 0,
// Node
"callback-return": 2,
"handle-callback-err": 0,
"no-mixed-requires": 0,
"no-restricted-modules": 2,
// Stylistic Issues
// ECMAScript 6
"no-var": 1,
"constructor-super": 1,
"no-duplicate-imports": 1,
"no-const-assign": 1,
"curly": ["error", "all"]
},
"extends": ["plugin:prettier/recommended"],
"plugins": ["prettier"],
"parserOptions": {
"parser": "babel-eslint"
}
}