forked from mdbarr/enmeshed
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
113 lines (111 loc) · 2.47 KB
/
.eslintrc.js
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
101
102
103
104
105
106
107
108
109
110
111
112
113
module.exports = {
"parser": "espree",
"parserOptions": {
"sourceType": "script"
},
"env": {
"node": true,
"browser": true,
"es6": true
},
"rules": {
"no-empty": ["error", {
"allowEmptyCatch": true
}],
"indent": ["error", 2, {
"SwitchCase": 1
}],
"comma-spacing": "error",
"semi": "error",
"space-infix-ops": "error",
"space-before-blocks": "error",
"no-trailing-spaces": "error",
"comma-dangle": ["error", "never"],
"no-multi-spaces": "error",
"eol-last": "error",
"quotes": ["error", "single", {
"avoidEscape": true
}],
"no-multiple-empty-lines": ["error", {
"max": 1
}],
"eqeqeq": ["error", "always"],
"key-spacing": ["error", {
"beforeColon": false,
"afterColon": true
}],
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-debugger": "error",
"no-caller": "error",
"no-undef": "error",
"keyword-spacing": "error",
"no-unreachable": "error",
"no-cond-assign": ["error", "except-parens"],
"no-sparse-arrays": "error",
"no-eval": "error",
"no-proto": "error",
"no-with": "error",
"brace-style": ["error", "1tbs", {
"allowSingleLine": true
}],
"array-bracket-spacing": [
"error",
"always"
],
"dot-location": [
"error",
"object"
],
"dot-notation": "error",
"no-const-assign": "error",
"no-constant-condition": "error",
"no-empty-character-class": "error",
"no-floating-decimal": "error",
"no-mixed-requires": "error",
"no-redeclare": "error",
"no-shadow": [
"error",
{
"allow": [
"body",
"error",
"reject",
"resolve",
"response",
"result"
]
}
],
"no-unmodified-loop-condition": "error",
"no-unused-expressions": "error",
"no-unused-vars": "error",
"no-use-before-define": [
"error",
"nofunc"
],
"no-useless-call": "error",
"no-useless-escape": "error",
"no-useless-return": "error",
"no-var": "error",
"object-curly-newline": [
"error",
{
"minProperties" : 1
}
],
"object-curly-spacing": [
"error",
"always"
],
"object-property-newline": "error",
"one-var": [
"error",
"never"
],
"one-var-declaration-per-line": "error",
"prefer-const": "error",
"prefer-promise-reject-errors": "error",
"yoda": "error"
}
};