@@ -4,7 +4,7 @@ module.exports = {
4
4
'accessor-pairs' : 'off' ,
5
5
6
6
// enforces return statements in callbacks of array's methods
7
- // http ://eslint.org/docs/rules/array-callback-return
7
+ // https ://eslint.org/docs/rules/array-callback-return
8
8
'array-callback-return' : 'error' ,
9
9
10
10
// treat var statements as if they were block scoped
@@ -14,7 +14,7 @@ module.exports = {
14
14
complexity : [ 'off' , 11 ] ,
15
15
16
16
// enforce that class methods use "this"
17
- // http ://eslint.org/docs/rules/class-methods-use-this
17
+ // https ://eslint.org/docs/rules/class-methods-use-this
18
18
'class-methods-use-this' : [ 'error' , {
19
19
exceptMethods : [ ] ,
20
20
} ] ,
@@ -32,11 +32,11 @@ module.exports = {
32
32
'dot-notation' : [ 'error' , { allowKeywords : true } ] ,
33
33
34
34
// enforces consistent newlines before or after dots
35
- // http ://eslint.org/docs/rules/dot-location
35
+ // https ://eslint.org/docs/rules/dot-location
36
36
'dot-location' : [ 'error' , 'property' ] ,
37
37
38
38
// require the use of === and !==
39
- // http ://eslint.org/docs/rules/eqeqeq
39
+ // https ://eslint.org/docs/rules/eqeqeq
40
40
eqeqeq : [ 'error' , 'always' , { null : 'ignore' } ] ,
41
41
42
42
// make sure for-in loops have an if statement
@@ -49,19 +49,19 @@ module.exports = {
49
49
'no-caller' : 'error' ,
50
50
51
51
// disallow lexical declarations in case/default clauses
52
- // http ://eslint.org/docs/rules/no-case-declarations.html
52
+ // https ://eslint.org/docs/rules/no-case-declarations.html
53
53
'no-case-declarations' : 'error' ,
54
54
55
55
// disallow division operators explicitly at beginning of regular expression
56
- // http ://eslint.org/docs/rules/no-div-regex
56
+ // https ://eslint.org/docs/rules/no-div-regex
57
57
'no-div-regex' : 'off' ,
58
58
59
59
// disallow else after a return in an if
60
60
// https://eslint.org/docs/rules/no-else-return
61
61
'no-else-return' : [ 'error' , { allowElseIf : false } ] ,
62
62
63
63
// disallow empty functions, except for standalone funcs/arrows
64
- // http ://eslint.org/docs/rules/no-empty-function
64
+ // https ://eslint.org/docs/rules/no-empty-function
65
65
'no-empty-function' : [ 'error' , {
66
66
allow : [
67
67
'arrowFunctions' ,
@@ -71,7 +71,7 @@ module.exports = {
71
71
} ] ,
72
72
73
73
// disallow empty destructuring patterns
74
- // http ://eslint.org/docs/rules/no-empty-pattern
74
+ // https ://eslint.org/docs/rules/no-empty-pattern
75
75
'no-empty-pattern' : 'error' ,
76
76
77
77
// disallow comparisons to null without a type-checking operator
@@ -87,7 +87,7 @@ module.exports = {
87
87
'no-extra-bind' : 'error' ,
88
88
89
89
// disallow Unnecessary Labels
90
- // http ://eslint.org/docs/rules/no-extra-label
90
+ // https ://eslint.org/docs/rules/no-extra-label
91
91
'no-extra-label' : 'error' ,
92
92
93
93
// disallow fallthrough of case statements
@@ -97,13 +97,13 @@ module.exports = {
97
97
'no-floating-decimal' : 'error' ,
98
98
99
99
// disallow reassignments of native objects or read-only globals
100
- // http ://eslint.org/docs/rules/no-global-assign
100
+ // https ://eslint.org/docs/rules/no-global-assign
101
101
'no-global-assign' : [ 'error' , { exceptions : [ ] } ] ,
102
102
// deprecated in favor of no-global-assign
103
103
'no-native-reassign' : 'off' ,
104
104
105
105
// disallow implicit type conversions
106
- // http ://eslint.org/docs/rules/no-implicit-coercion
106
+ // https ://eslint.org/docs/rules/no-implicit-coercion
107
107
'no-implicit-coercion' : [ 'off' , {
108
108
boolean : false ,
109
109
number : true ,
@@ -112,7 +112,7 @@ module.exports = {
112
112
} ] ,
113
113
114
114
// disallow var and named functions in global scope
115
- // http ://eslint.org/docs/rules/no-implicit-globals
115
+ // https ://eslint.org/docs/rules/no-implicit-globals
116
116
'no-implicit-globals' : 'off' ,
117
117
118
118
// disallow use of eval()-like methods
@@ -134,7 +134,7 @@ module.exports = {
134
134
'no-loop-func' : 'error' ,
135
135
136
136
// disallow magic numbers
137
- // http ://eslint.org/docs/rules/no-magic-numbers
137
+ // https ://eslint.org/docs/rules/no-magic-numbers
138
138
'no-magic-numbers' : [ 'off' , {
139
139
ignore : [ ] ,
140
140
ignoreArrayIndexes : true ,
@@ -168,7 +168,7 @@ module.exports = {
168
168
169
169
// disallow reassignment of function parameters
170
170
// disallow parameter object manipulation except for specific exclusions
171
- // rule: http ://eslint.org/docs/rules/no-param-reassign.html
171
+ // rule: https ://eslint.org/docs/rules/no-param-reassign.html
172
172
'no-param-reassign' : [ 'error' , {
173
173
props : true ,
174
174
ignorePropertyModificationsFor : [
@@ -190,7 +190,7 @@ module.exports = {
190
190
'no-redeclare' : 'error' ,
191
191
192
192
// disallow certain object properties
193
- // http ://eslint.org/docs/rules/no-restricted-properties
193
+ // https ://eslint.org/docs/rules/no-restricted-properties
194
194
'no-restricted-properties' : [ 'error' , {
195
195
object : 'arguments' ,
196
196
property : 'callee' ,
@@ -241,7 +241,7 @@ module.exports = {
241
241
'no-script-url' : 'error' ,
242
242
243
243
// disallow self assignment
244
- // http ://eslint.org/docs/rules/no-self-assign
244
+ // https ://eslint.org/docs/rules/no-self-assign
245
245
'no-self-assign' : 'error' ,
246
246
247
247
// disallow comparisons where both sides are exactly the same
@@ -254,7 +254,7 @@ module.exports = {
254
254
'no-throw-literal' : 'error' ,
255
255
256
256
// disallow unmodified conditions of loops
257
- // http ://eslint.org/docs/rules/no-unmodified-loop-condition
257
+ // https ://eslint.org/docs/rules/no-unmodified-loop-condition
258
258
'no-unmodified-loop-condition' : 'off' ,
259
259
260
260
// disallow usage of expressions in statement position
@@ -265,26 +265,26 @@ module.exports = {
265
265
} ] ,
266
266
267
267
// disallow unused labels
268
- // http ://eslint.org/docs/rules/no-unused-labels
268
+ // https ://eslint.org/docs/rules/no-unused-labels
269
269
'no-unused-labels' : 'error' ,
270
270
271
271
// disallow unnecessary .call() and .apply()
272
272
'no-useless-call' : 'off' ,
273
273
274
274
// disallow useless string concatenation
275
- // http ://eslint.org/docs/rules/no-useless-concat
275
+ // https ://eslint.org/docs/rules/no-useless-concat
276
276
'no-useless-concat' : 'error' ,
277
277
278
278
// disallow unnecessary string escaping
279
- // http ://eslint.org/docs/rules/no-useless-escape
279
+ // https ://eslint.org/docs/rules/no-useless-escape
280
280
'no-useless-escape' : 'error' ,
281
281
282
282
// disallow redundant return; keywords
283
- // http ://eslint.org/docs/rules/no-useless-return
283
+ // https ://eslint.org/docs/rules/no-useless-return
284
284
'no-useless-return' : 'error' ,
285
285
286
286
// disallow use of void operator
287
- // http ://eslint.org/docs/rules/no-void
287
+ // https ://eslint.org/docs/rules/no-void
288
288
'no-void' : 'error' ,
289
289
290
290
// disallow usage of configurable warning terms in comments: e.g. todo
@@ -294,21 +294,21 @@ module.exports = {
294
294
'no-with' : 'error' ,
295
295
296
296
// require using Error objects as Promise rejection reasons
297
- // http ://eslint.org/docs/rules/prefer-promise-reject-errors
297
+ // https ://eslint.org/docs/rules/prefer-promise-reject-errors
298
298
'prefer-promise-reject-errors' : [ 'error' , { allowEmptyReject : true } ] ,
299
299
300
300
// require use of the second argument for parseInt()
301
301
radix : 'error' ,
302
302
303
303
// require `await` in `async function` (note: this is a horrible rule that should never be used)
304
- // http ://eslint.org/docs/rules/require-await
304
+ // https ://eslint.org/docs/rules/require-await
305
305
'require-await' : 'off' ,
306
306
307
307
// requires to declare all vars on top of their containing scope
308
308
'vars-on-top' : 'error' ,
309
309
310
310
// require immediate function invocation to be wrapped in parentheses
311
- // http ://eslint.org/docs/rules/wrap-iife.html
311
+ // https ://eslint.org/docs/rules/wrap-iife.html
312
312
'wrap-iife' : [ 'error' , 'outside' , { functionPrototypeMethods : false } ] ,
313
313
314
314
// require or disallow Yoda conditions
0 commit comments