@tb-dev/eslint-config 7.0.0 → 7.1.0
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.js +5 -2
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -294,17 +294,18 @@ async function unicorn(options) {
|
|
|
294
294
|
"unicorn/error-message": "error",
|
|
295
295
|
"unicorn/no-array-for-each": "off",
|
|
296
296
|
"unicorn/no-array-method-this-argument": "error",
|
|
297
|
-
"unicorn/no-array-push-push": "error",
|
|
298
297
|
"unicorn/no-await-expression-member": "error",
|
|
299
298
|
"unicorn/no-await-in-promise-methods": "error",
|
|
300
299
|
"unicorn/no-invalid-fetch-options": "error",
|
|
301
300
|
"unicorn/no-invalid-remove-event-listener": "error",
|
|
302
|
-
"unicorn/no-length-as-slice-end": "error",
|
|
303
301
|
"unicorn/no-magic-array-flat-depth": "error",
|
|
304
302
|
"unicorn/no-negation-in-equality-check": "error",
|
|
305
303
|
"unicorn/no-single-promise-in-promise-methods": "error",
|
|
306
304
|
"unicorn/no-thenable": "error",
|
|
307
305
|
"unicorn/no-typeof-undefined": "off",
|
|
306
|
+
"unicorn/no-unnecessary-array-flat-depth": "error",
|
|
307
|
+
"unicorn/no-unnecessary-array-splice-count": "error",
|
|
308
|
+
"unicorn/no-unnecessary-slice-end": "error",
|
|
308
309
|
"unicorn/no-useless-fallback-in-spread": "error",
|
|
309
310
|
"unicorn/no-useless-length-check": "error",
|
|
310
311
|
"unicorn/no-useless-promise-resolve-reject": "error",
|
|
@@ -314,6 +315,7 @@ async function unicorn(options) {
|
|
|
314
315
|
"unicorn/prefer-dom-node-dataset": "error",
|
|
315
316
|
"unicorn/prefer-dom-node-remove": "error",
|
|
316
317
|
"unicorn/prefer-dom-node-text-content": "error",
|
|
318
|
+
"unicorn/prefer-import-meta-properties": "error",
|
|
317
319
|
"unicorn/prefer-global-this": "off",
|
|
318
320
|
"unicorn/prefer-math-min-max": "error",
|
|
319
321
|
"unicorn/prefer-modern-dom-apis": "error",
|
|
@@ -324,6 +326,7 @@ async function unicorn(options) {
|
|
|
324
326
|
"unicorn/prefer-query-selector": "error",
|
|
325
327
|
"unicorn/prefer-reflect-apply": "error",
|
|
326
328
|
"unicorn/prefer-regexp-test": "error",
|
|
329
|
+
"unicorn/prefer-single-call": "error",
|
|
327
330
|
"unicorn/prefer-string-raw": "error",
|
|
328
331
|
"unicorn/prefer-string-slice": "error",
|
|
329
332
|
"unicorn/prefer-structured-clone": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tb-dev/eslint-config",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"description": "ESLint config",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -21,21 +21,21 @@
|
|
|
21
21
|
"vue"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
25
|
-
"@typescript-eslint/parser": "^8.
|
|
26
|
-
"eslint-plugin-perfectionist": "^4.
|
|
27
|
-
"eslint-plugin-unicorn": "^
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "^8.31.0",
|
|
25
|
+
"@typescript-eslint/parser": "^8.31.0",
|
|
26
|
+
"eslint-plugin-perfectionist": "^4.12.3",
|
|
27
|
+
"eslint-plugin-unicorn": "^59.0.0",
|
|
28
28
|
"eslint-plugin-vue": "^10.0.0",
|
|
29
29
|
"globals": "^16.0.0",
|
|
30
30
|
"vue-eslint-parser": "^10.1.3"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/node": "^22.
|
|
34
|
-
"eslint": "^9.
|
|
33
|
+
"@types/node": "^22.15.2",
|
|
34
|
+
"eslint": "^9.25.1",
|
|
35
35
|
"prettier": "^3.5.3",
|
|
36
36
|
"tslib": "^2.8.1",
|
|
37
37
|
"typescript": "^5.8.3",
|
|
38
|
-
"vite": "^6.
|
|
38
|
+
"vite": "^6.3.3",
|
|
39
39
|
"vite-plugin-dts": "^4.5.3"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|