@@ -30,37 +30,28 @@ export default [
30
30
"no-extra-parens" : [ 2 , "functions" ] ,
31
31
"no-extra-semi" : 2 ,
32
32
"no-func-assign" : 2 ,
33
- "no-inner-declarations" : 0 , // Stylistic... might consider disallowing in the future
34
33
"no-invalid-regexp" : 2 ,
35
34
"no-irregular-whitespace" : 2 ,
36
35
"no-negated-in-lhs" : 2 ,
37
36
"no-obj-calls" : 2 ,
38
37
"no-regex-spaces" : 2 ,
39
- "no-sparse-arrays" : 0 ,
40
38
"no-unreachable" : 1 , // Optimizer and coverage will handle/highlight this and can be useful for debugging
41
39
"use-isnan" : 2 ,
42
- "valid-jsdoc" : 0 ,
43
40
"valid-typeof" : 2 ,
44
41
45
42
// Best Practices //
46
43
//----------------//
47
- "block-scoped-var" : 0 ,
48
- complexity : 0 ,
49
- "consistent-return" : 0 ,
50
44
curly : 2 ,
51
45
"default-case" : 1 ,
52
46
53
47
"dot-notation" : [ 2 , {
54
48
allowKeywords : false ,
55
49
} ] ,
56
50
57
- eqeqeq : 0 ,
58
51
"guard-for-in" : 1 ,
59
52
"no-alert" : 2 ,
60
53
"no-caller" : 2 ,
61
54
"no-div-regex" : 1 ,
62
- "no-else-return" : 0 ,
63
- "no-eq-null" : 0 ,
64
55
"no-eval" : 2 ,
65
56
"no-extend-native" : 2 ,
66
57
"no-extra-bind" : 2 ,
@@ -70,7 +61,6 @@ export default [
70
61
"no-iterator" : 2 ,
71
62
"no-labels" : 2 ,
72
63
"no-lone-blocks" : 2 ,
73
- "no-loop-func" : 0 ,
74
64
"no-multi-spaces" : 2 ,
75
65
"no-multi-str" : 1 ,
76
66
"no-native-reassign" : 2 ,
@@ -79,7 +69,6 @@ export default [
79
69
"no-new-wrappers" : 2 ,
80
70
"no-octal" : 2 ,
81
71
"no-octal-escape" : 2 ,
82
- "no-param-reassign" : 0 ,
83
72
"no-process-env" : 2 ,
84
73
"no-proto" : 2 ,
85
74
"no-redeclare" : 2 ,
@@ -89,28 +78,18 @@ export default [
89
78
"no-sequences" : 2 ,
90
79
"no-throw-literal" : 2 ,
91
80
"no-unused-expressions" : 2 ,
92
- "no-void" : 0 ,
93
81
"no-warning-comments" : 1 ,
94
82
"no-with" : 2 ,
95
83
radix : 2 ,
96
- "vars-on-top" : 0 ,
97
84
"wrap-iife" : 2 ,
98
- yoda : 0 ,
99
-
100
- // Strict //
101
- //--------//
102
- strict : 0 ,
103
85
104
86
// Variables //
105
87
//-----------//
106
88
"no-catch-shadow" : 2 ,
107
89
"no-delete-var" : 2 ,
108
90
"no-label-var" : 2 ,
109
- "no-shadow" : 0 ,
110
- "no-shadow-restricted-names" : 0 ,
111
91
"no-undef" : 2 ,
112
92
"no-undef-init" : 2 ,
113
- "no-undefined" : 0 ,
114
93
115
94
"no-unused-vars" : [ 2 , {
116
95
vars : "all" ,
@@ -121,11 +100,9 @@ export default [
121
100
122
101
// Node.js //
123
102
//---------//
124
- "no-mixed-requires" : 0 , // Others left to environment defaults
125
103
126
104
// Stylistic //
127
105
//-----------//
128
- indent : 0 ,
129
106
"brace-style" : [ 2 , "1tbs" , {
130
107
allowSingleLine : true ,
131
108
} ] ,
@@ -140,33 +117,22 @@ export default [
140
117
"comma-style" : [ 2 , "last" ] ,
141
118
"consistent-this" : [ 1 , "self" ] ,
142
119
"eol-last" : 2 ,
143
- "func-names" : 0 ,
144
120
"func-style" : [ 2 , "declaration" ] ,
145
121
146
122
"key-spacing" : [ 2 , {
147
123
beforeColon : false ,
148
124
afterColon : true ,
149
125
} ] ,
150
126
151
- "max-nested-callbacks" : 0 ,
152
127
"new-cap" : 2 ,
153
128
"new-parens" : 2 ,
154
- "newline-after-var" : 0 ,
155
129
"no-array-constructor" : 2 ,
156
- "no-continue" : 0 ,
157
- "no-inline-comments" : 0 ,
158
130
"no-lonely-if" : 2 ,
159
131
"no-mixed-spaces-and-tabs" : 2 ,
160
- "no-multiple-empty-lines" : 0 ,
161
132
"no-nested-ternary" : 1 ,
162
133
"no-new-object" : 2 ,
163
134
"no-spaced-func" : 2 ,
164
- "no-ternary" : 0 ,
165
135
"no-trailing-spaces" : 2 ,
166
- "no-underscore-dangle" : 0 ,
167
- "one-var" : 0 ,
168
- "operator-assignment" : 0 ,
169
- "padded-blocks" : 0 ,
170
136
171
137
"quote-props" : [ 2 , "as-needed" , {
172
138
keywords : true ,
@@ -180,15 +146,13 @@ export default [
180
146
after : true ,
181
147
} ] ,
182
148
183
- "sort-vars" : 0 ,
184
149
"space-before-blocks" : [ 2 , "always" ] ,
185
150
186
151
"space-before-function-paren" : [ 2 , {
187
152
anonymous : "never" ,
188
153
named : "never" ,
189
154
} ] ,
190
155
191
- "space-in-brackets" : 0 ,
192
156
"space-in-parens" : [ 2 , "never" ] ,
193
157
"space-infix-ops" : 2 ,
194
158
"space-unary-ops" : 2 ,
@@ -206,9 +170,7 @@ export default [
206
170
} ,
207
171
} ,
208
172
rules : {
209
- "no-unused-expressions" : 0 , // Disabling for tests, for now.
210
- "no-path-concat" : 0 ,
211
- "no-console" : 0 ,
173
+ "no-unused-expressions" : 0 , // Needs disabling to support Chai `.to.be.undefined` etc syntax
212
174
} ,
213
175
}
214
176
] ;
0 commit comments