forked from coolgk/node-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
executable file
·71 lines (71 loc) · 2.04 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
{
"extends": ["eslint:recommended", "google"],
"rules": {
"valid-jsdoc": 0,
"require-jsdoc": 0,
"comma-dangle": ["error", "never"],
"space-before-function-paren": ["error", "always"],
"guard-for-in": 0,
"no-extra-parens": 0,
"new-cap": 0,
"indent": ["error", 4, { "SwitchCase": 1 }],
"no-prototype-builtins": 1,
"no-template-curly-in-string": 1,
"array-callback-return": 1,
"block-scoped-var": 1,
"no-alert": 1,
"no-caller": 1,
"curly": 1,
"dot-notation": 1,
"eqeqeq": 1,
"no-eq-null": 1,
"no-eval": 1,
"no-extend-native": 1,
"no-extra-bind": 1,
"no-floating-decimal": 1,
"no-implicit-globals": 1,
"no-implied-eval": 1,
"no-invalid-this": 1,
"no-iterator": 1,
"no-lone-blocks": 1,
"no-multi-spaces": 1,
"no-var": 1,
"arrow-parens": 1,
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
"max-len": [
"error",
{
"code": 140,
"tabWidth": 4,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"no-tabs": 1,
"no-console": ["error", { "allow": ["trace", "error"] }],
"no-useless-return": 1,
"no-else-return": 1,
"camelcase": 1,
"comma-spacing": 1,
"strict": 1,
"no-trailing-spaces": 1,
"one-var": ["error", "never"],
"semi": ["error", "always", { "omitLastInOneLineBlock": true}],
"no-empty-function": 0,
"no-loop-func": 0,
"arrow-body-style": 0,
"consistent-return": 0,
"accessor-pairs": 0,
"object-curly-spacing": ["error", "always"],
"padded-blocks": 0
},
"env": {
"es6": true,
"node": true,
"mocha": true
},
"parserOptions": {
"ecmaVersion": 8
}
}