@tb-dev/eslint-config 3.5.3 → 3.6.1

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 CHANGED
@@ -408,6 +408,7 @@ async function unicorn(options) {
408
408
  name: "err"
409
409
  }
410
410
  ],
411
+ "unicorn/consistent-empty-array-spread": "error",
411
412
  "unicorn/consistent-function-scoping": [
412
413
  "error",
413
414
  {
@@ -421,7 +422,9 @@ async function unicorn(options) {
421
422
  "unicorn/no-array-push-push": "error",
422
423
  "unicorn/no-await-expression-member": "error",
423
424
  "unicorn/no-await-in-promise-methods": "error",
425
+ "unicorn/no-invalid-fetch-options": "error",
424
426
  "unicorn/no-invalid-remove-event-listener": "error",
427
+ "unicorn/no-magic-array-flat-depth": "error",
425
428
  "unicorn/no-single-promise-in-promise-methods": "error",
426
429
  "unicorn/no-thenable": "error",
427
430
  "unicorn/no-typeof-undefined": "off",
@@ -442,7 +445,9 @@ async function unicorn(options) {
442
445
  "unicorn/prefer-query-selector": "error",
443
446
  "unicorn/prefer-reflect-apply": "error",
444
447
  "unicorn/prefer-regexp-test": "error",
448
+ "unicorn/prefer-string-raw": "error",
445
449
  "unicorn/prefer-string-slice": "error",
450
+ "unicorn/prefer-structured-clone": "error",
446
451
  "unicorn/prefer-type-error": "error",
447
452
  "unicorn/relative-url-style": ["error", "never"],
448
453
  ...overrides == null ? void 0 : overrides.unicorn
package/dist/index.js CHANGED
@@ -385,6 +385,7 @@ async function unicorn(options) {
385
385
  name: "err"
386
386
  }
387
387
  ],
388
+ "unicorn/consistent-empty-array-spread": "error",
388
389
  "unicorn/consistent-function-scoping": [
389
390
  "error",
390
391
  {
@@ -398,7 +399,9 @@ async function unicorn(options) {
398
399
  "unicorn/no-array-push-push": "error",
399
400
  "unicorn/no-await-expression-member": "error",
400
401
  "unicorn/no-await-in-promise-methods": "error",
402
+ "unicorn/no-invalid-fetch-options": "error",
401
403
  "unicorn/no-invalid-remove-event-listener": "error",
404
+ "unicorn/no-magic-array-flat-depth": "error",
402
405
  "unicorn/no-single-promise-in-promise-methods": "error",
403
406
  "unicorn/no-thenable": "error",
404
407
  "unicorn/no-typeof-undefined": "off",
@@ -419,7 +422,9 @@ async function unicorn(options) {
419
422
  "unicorn/prefer-query-selector": "error",
420
423
  "unicorn/prefer-reflect-apply": "error",
421
424
  "unicorn/prefer-regexp-test": "error",
425
+ "unicorn/prefer-string-raw": "error",
422
426
  "unicorn/prefer-string-slice": "error",
427
+ "unicorn/prefer-structured-clone": "error",
423
428
  "unicorn/prefer-type-error": "error",
424
429
  "unicorn/relative-url-style": ["error", "never"],
425
430
  ...overrides == null ? void 0 : overrides.unicorn
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/eslint-config",
3
- "version": "3.5.3",
3
+ "version": "3.6.1",
4
4
  "description": "ESLint config",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -17,11 +17,11 @@
17
17
  "*.{?(c|m)@(j|t)s,css,vue,md,json}": "prettier --write"
18
18
  },
19
19
  "dependencies": {
20
- "@typescript-eslint/eslint-plugin": "^7.8.0",
21
- "@typescript-eslint/parser": "^7.8.0",
20
+ "@typescript-eslint/eslint-plugin": "^7.9.0",
21
+ "@typescript-eslint/parser": "^7.9.0",
22
22
  "eslint-config-prettier": "^9.1.0",
23
23
  "eslint-plugin-perfectionist": "^2.10.0",
24
- "eslint-plugin-unicorn": "^52.0.0",
24
+ "eslint-plugin-unicorn": "^53.0.0",
25
25
  "eslint-plugin-vitest": "^0.5.4",
26
26
  "eslint-plugin-vue": "^9.26.0",
27
27
  "globals": "^15.2.0",
@@ -64,7 +64,7 @@
64
64
  "format": "prettier . --write",
65
65
  "format-check": "prettier . --check",
66
66
  "lint": "eslint . --config eslint.config.js --cache",
67
- "lint:fix": "eslint . --config eslint.config.js --fix",
67
+ "lint-fix": "eslint . --config eslint.config.js --fix",
68
68
  "release": "pnpm run build && pnpm publish",
69
69
  "type-check": "tsc --noEmit",
70
70
  "update": "miho update major -t"