@abinnovision/eslint-config-base 3.1.0 → 3.2.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +51 -15
- package/dist/index.js +51 -15
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -126,12 +126,6 @@ var config = (0, import_config.defineConfig)([
|
|
|
126
126
|
* @see https://eslint.org/docs/latest/rules/no-extra-bind
|
|
127
127
|
*/
|
|
128
128
|
"no-extra-bind": "error",
|
|
129
|
-
/**
|
|
130
|
-
* Disallow leading or trailing decimal points in numeric literals.
|
|
131
|
-
*
|
|
132
|
-
* @see https://eslint.org/docs/latest/rules/no-floating-decimal
|
|
133
|
-
*/
|
|
134
|
-
"no-floating-decimal": "error",
|
|
135
129
|
/**
|
|
136
130
|
* Disallow assignment operators in return statements.
|
|
137
131
|
*
|
|
@@ -151,11 +145,11 @@ var config = (0, import_config.defineConfig)([
|
|
|
151
145
|
*/
|
|
152
146
|
"no-new-func": "error",
|
|
153
147
|
/**
|
|
154
|
-
* Disallow new operators with Symbol
|
|
148
|
+
* Disallow new operators with native non-constructor functions (e.g. Symbol, BigInt).
|
|
155
149
|
*
|
|
156
|
-
* @see https://eslint.org/docs/latest/rules/no-new-
|
|
150
|
+
* @see https://eslint.org/docs/latest/rules/no-new-native-nonconstructor
|
|
157
151
|
*/
|
|
158
|
-
"no-new-
|
|
152
|
+
"no-new-native-nonconstructor": "error",
|
|
159
153
|
/**
|
|
160
154
|
* Disallow new operators with String, Number, and Boolean objects.
|
|
161
155
|
*
|
|
@@ -240,6 +234,54 @@ var config = (0, import_config.defineConfig)([
|
|
|
240
234
|
* @see https://eslint.org/docs/latest/rules/prefer-spread
|
|
241
235
|
*/
|
|
242
236
|
"prefer-spread": "error",
|
|
237
|
+
/**
|
|
238
|
+
* Disallow returning a value from a Promise executor.
|
|
239
|
+
*
|
|
240
|
+
* @see https://eslint.org/docs/latest/rules/no-promise-executor-return
|
|
241
|
+
*/
|
|
242
|
+
"no-promise-executor-return": "error",
|
|
243
|
+
/**
|
|
244
|
+
* Disallow template literal placeholder syntax in regular strings.
|
|
245
|
+
*
|
|
246
|
+
* @see https://eslint.org/docs/latest/rules/no-template-curly-in-string
|
|
247
|
+
*/
|
|
248
|
+
"no-template-curly-in-string": "error",
|
|
249
|
+
/**
|
|
250
|
+
* Disallow unmodified conditions of loops.
|
|
251
|
+
*
|
|
252
|
+
* @see https://eslint.org/docs/latest/rules/no-unmodified-loop-condition
|
|
253
|
+
*/
|
|
254
|
+
"no-unmodified-loop-condition": "error",
|
|
255
|
+
/**
|
|
256
|
+
* Disallow unnecessary nested blocks.
|
|
257
|
+
*
|
|
258
|
+
* @see https://eslint.org/docs/latest/rules/no-lone-blocks
|
|
259
|
+
*/
|
|
260
|
+
"no-lone-blocks": "error",
|
|
261
|
+
/**
|
|
262
|
+
* Disallow renaming import, export, and destructured assignments to the same name.
|
|
263
|
+
*
|
|
264
|
+
* @see https://eslint.org/docs/latest/rules/no-useless-rename
|
|
265
|
+
*/
|
|
266
|
+
"no-useless-rename": "error",
|
|
267
|
+
/**
|
|
268
|
+
* Disallow unnecessary computed property keys in objects and classes.
|
|
269
|
+
*
|
|
270
|
+
* @see https://eslint.org/docs/latest/rules/no-useless-computed-key
|
|
271
|
+
*/
|
|
272
|
+
"no-useless-computed-key": "error",
|
|
273
|
+
/**
|
|
274
|
+
* Disallow await inside of loops.
|
|
275
|
+
*
|
|
276
|
+
* @see https://eslint.org/docs/latest/rules/no-await-in-loop
|
|
277
|
+
*/
|
|
278
|
+
"no-await-in-loop": "warn",
|
|
279
|
+
/**
|
|
280
|
+
* Disallow reassigning function parameters.
|
|
281
|
+
*
|
|
282
|
+
* @see https://eslint.org/docs/latest/rules/no-param-reassign
|
|
283
|
+
*/
|
|
284
|
+
"no-param-reassign": "error",
|
|
243
285
|
/**
|
|
244
286
|
* Custom JS Rules: Code Quality & Complexity
|
|
245
287
|
*/
|
|
@@ -304,12 +346,6 @@ var config = (0, import_config.defineConfig)([
|
|
|
304
346
|
* @see https://eslint.org/docs/latest/rules/no-inner-declarations
|
|
305
347
|
*/
|
|
306
348
|
"no-inner-declarations": "error",
|
|
307
|
-
/**
|
|
308
|
-
* Disallow mixed binary operators without parentheses.
|
|
309
|
-
*
|
|
310
|
-
* @see https://eslint.org/docs/latest/rules/no-mixed-operators
|
|
311
|
-
*/
|
|
312
|
-
"no-mixed-operators": "error",
|
|
313
349
|
/**
|
|
314
350
|
* Disallow the use of console.
|
|
315
351
|
*
|
package/dist/index.js
CHANGED
|
@@ -87,12 +87,6 @@ var config = defineConfig([
|
|
|
87
87
|
* @see https://eslint.org/docs/latest/rules/no-extra-bind
|
|
88
88
|
*/
|
|
89
89
|
"no-extra-bind": "error",
|
|
90
|
-
/**
|
|
91
|
-
* Disallow leading or trailing decimal points in numeric literals.
|
|
92
|
-
*
|
|
93
|
-
* @see https://eslint.org/docs/latest/rules/no-floating-decimal
|
|
94
|
-
*/
|
|
95
|
-
"no-floating-decimal": "error",
|
|
96
90
|
/**
|
|
97
91
|
* Disallow assignment operators in return statements.
|
|
98
92
|
*
|
|
@@ -112,11 +106,11 @@ var config = defineConfig([
|
|
|
112
106
|
*/
|
|
113
107
|
"no-new-func": "error",
|
|
114
108
|
/**
|
|
115
|
-
* Disallow new operators with Symbol
|
|
109
|
+
* Disallow new operators with native non-constructor functions (e.g. Symbol, BigInt).
|
|
116
110
|
*
|
|
117
|
-
* @see https://eslint.org/docs/latest/rules/no-new-
|
|
111
|
+
* @see https://eslint.org/docs/latest/rules/no-new-native-nonconstructor
|
|
118
112
|
*/
|
|
119
|
-
"no-new-
|
|
113
|
+
"no-new-native-nonconstructor": "error",
|
|
120
114
|
/**
|
|
121
115
|
* Disallow new operators with String, Number, and Boolean objects.
|
|
122
116
|
*
|
|
@@ -201,6 +195,54 @@ var config = defineConfig([
|
|
|
201
195
|
* @see https://eslint.org/docs/latest/rules/prefer-spread
|
|
202
196
|
*/
|
|
203
197
|
"prefer-spread": "error",
|
|
198
|
+
/**
|
|
199
|
+
* Disallow returning a value from a Promise executor.
|
|
200
|
+
*
|
|
201
|
+
* @see https://eslint.org/docs/latest/rules/no-promise-executor-return
|
|
202
|
+
*/
|
|
203
|
+
"no-promise-executor-return": "error",
|
|
204
|
+
/**
|
|
205
|
+
* Disallow template literal placeholder syntax in regular strings.
|
|
206
|
+
*
|
|
207
|
+
* @see https://eslint.org/docs/latest/rules/no-template-curly-in-string
|
|
208
|
+
*/
|
|
209
|
+
"no-template-curly-in-string": "error",
|
|
210
|
+
/**
|
|
211
|
+
* Disallow unmodified conditions of loops.
|
|
212
|
+
*
|
|
213
|
+
* @see https://eslint.org/docs/latest/rules/no-unmodified-loop-condition
|
|
214
|
+
*/
|
|
215
|
+
"no-unmodified-loop-condition": "error",
|
|
216
|
+
/**
|
|
217
|
+
* Disallow unnecessary nested blocks.
|
|
218
|
+
*
|
|
219
|
+
* @see https://eslint.org/docs/latest/rules/no-lone-blocks
|
|
220
|
+
*/
|
|
221
|
+
"no-lone-blocks": "error",
|
|
222
|
+
/**
|
|
223
|
+
* Disallow renaming import, export, and destructured assignments to the same name.
|
|
224
|
+
*
|
|
225
|
+
* @see https://eslint.org/docs/latest/rules/no-useless-rename
|
|
226
|
+
*/
|
|
227
|
+
"no-useless-rename": "error",
|
|
228
|
+
/**
|
|
229
|
+
* Disallow unnecessary computed property keys in objects and classes.
|
|
230
|
+
*
|
|
231
|
+
* @see https://eslint.org/docs/latest/rules/no-useless-computed-key
|
|
232
|
+
*/
|
|
233
|
+
"no-useless-computed-key": "error",
|
|
234
|
+
/**
|
|
235
|
+
* Disallow await inside of loops.
|
|
236
|
+
*
|
|
237
|
+
* @see https://eslint.org/docs/latest/rules/no-await-in-loop
|
|
238
|
+
*/
|
|
239
|
+
"no-await-in-loop": "warn",
|
|
240
|
+
/**
|
|
241
|
+
* Disallow reassigning function parameters.
|
|
242
|
+
*
|
|
243
|
+
* @see https://eslint.org/docs/latest/rules/no-param-reassign
|
|
244
|
+
*/
|
|
245
|
+
"no-param-reassign": "error",
|
|
204
246
|
/**
|
|
205
247
|
* Custom JS Rules: Code Quality & Complexity
|
|
206
248
|
*/
|
|
@@ -265,12 +307,6 @@ var config = defineConfig([
|
|
|
265
307
|
* @see https://eslint.org/docs/latest/rules/no-inner-declarations
|
|
266
308
|
*/
|
|
267
309
|
"no-inner-declarations": "error",
|
|
268
|
-
/**
|
|
269
|
-
* Disallow mixed binary operators without parentheses.
|
|
270
|
-
*
|
|
271
|
-
* @see https://eslint.org/docs/latest/rules/no-mixed-operators
|
|
272
|
-
*/
|
|
273
|
-
"no-mixed-operators": "error",
|
|
274
310
|
/**
|
|
275
311
|
* Disallow the use of console.
|
|
276
312
|
*
|