@abinnovision/eslint-config-base 3.2.0-beta.2 → 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 +48 -0
- package/dist/index.js +48 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -234,6 +234,54 @@ var config = (0, import_config.defineConfig)([
|
|
|
234
234
|
* @see https://eslint.org/docs/latest/rules/prefer-spread
|
|
235
235
|
*/
|
|
236
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",
|
|
237
285
|
/**
|
|
238
286
|
* Custom JS Rules: Code Quality & Complexity
|
|
239
287
|
*/
|
package/dist/index.js
CHANGED
|
@@ -195,6 +195,54 @@ var config = defineConfig([
|
|
|
195
195
|
* @see https://eslint.org/docs/latest/rules/prefer-spread
|
|
196
196
|
*/
|
|
197
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",
|
|
198
246
|
/**
|
|
199
247
|
* Custom JS Rules: Code Quality & Complexity
|
|
200
248
|
*/
|