@tb-dev/eslint-config 3.0.2 → 3.2.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.cjs CHANGED
@@ -328,6 +328,7 @@ async function typescript(options) {
328
328
  minimumDescriptionLength: 3
329
329
  }
330
330
  ],
331
+ "@typescript-eslint/ban-types": "error",
331
332
  "@typescript-eslint/class-literal-property-style": ["error", "fields"],
332
333
  "class-methods-use-this": "off",
333
334
  "@typescript-eslint/class-methods-use-this": [
@@ -403,7 +404,7 @@ async function typescript(options) {
403
404
  "@typescript-eslint/no-explicit-any": ["error", { fixToUnknown: true }],
404
405
  "@typescript-eslint/no-extra-non-null-assertion": "error",
405
406
  "@typescript-eslint/no-extraneous-class": "error",
406
- "@typescript-eslint/no-floating-promises": ["error", { ignoreVoid: true }],
407
+ "@typescript-eslint/no-floating-promises": ["error", { ignoreIIFE: true, ignoreVoid: true }],
407
408
  "@typescript-eslint/no-for-in-array": "error",
408
409
  "no-implied-eval": "off",
409
410
  "@typescript-eslint/no-implied-eval": "error",
@@ -540,6 +541,7 @@ async function typescript(options) {
540
541
  ignoreDifferentlyNamedParameters: true
541
542
  }
542
543
  ],
544
+ "@typescript-eslint/use-unknown-in-catch-callback-variable": "error",
543
545
  ...overrides == null ? void 0 : overrides.typescript
544
546
  };
545
547
  return {
package/dist/index.js CHANGED
@@ -305,6 +305,7 @@ async function typescript(options) {
305
305
  minimumDescriptionLength: 3
306
306
  }
307
307
  ],
308
+ "@typescript-eslint/ban-types": "error",
308
309
  "@typescript-eslint/class-literal-property-style": ["error", "fields"],
309
310
  "class-methods-use-this": "off",
310
311
  "@typescript-eslint/class-methods-use-this": [
@@ -380,7 +381,7 @@ async function typescript(options) {
380
381
  "@typescript-eslint/no-explicit-any": ["error", { fixToUnknown: true }],
381
382
  "@typescript-eslint/no-extra-non-null-assertion": "error",
382
383
  "@typescript-eslint/no-extraneous-class": "error",
383
- "@typescript-eslint/no-floating-promises": ["error", { ignoreVoid: true }],
384
+ "@typescript-eslint/no-floating-promises": ["error", { ignoreIIFE: true, ignoreVoid: true }],
384
385
  "@typescript-eslint/no-for-in-array": "error",
385
386
  "no-implied-eval": "off",
386
387
  "@typescript-eslint/no-implied-eval": "error",
@@ -517,6 +518,7 @@ async function typescript(options) {
517
518
  ignoreDifferentlyNamedParameters: true
518
519
  }
519
520
  ],
521
+ "@typescript-eslint/use-unknown-in-catch-callback-variable": "error",
520
522
  ...overrides == null ? void 0 : overrides.typescript
521
523
  };
522
524
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/eslint-config",
3
- "version": "3.0.2",
3
+ "version": "3.2.0",
4
4
  "description": "ESLint config",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,10 +18,10 @@
18
18
  "*.{?(c|m)@(j|t)s,css,vue,md,json}": "prettier --write"
19
19
  },
20
20
  "dependencies": {
21
- "@typescript-eslint/eslint-plugin": "^7.2.0",
22
- "@typescript-eslint/parser": "^7.2.0",
21
+ "@typescript-eslint/eslint-plugin": "^7.3.1",
22
+ "@typescript-eslint/parser": "^7.3.1",
23
23
  "eslint-config-prettier": "^9.1.0",
24
- "eslint-plugin-perfectionist": "^2.6.0",
24
+ "eslint-plugin-perfectionist": "^2.7.0",
25
25
  "eslint-plugin-unicorn": "^51.0.1",
26
26
  "eslint-plugin-vitest": "^0.3.26",
27
27
  "eslint-plugin-vue": "^9.23.0",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/eslint-config-prettier": "^6.11.3",
33
- "@types/node": "^20.11.26",
33
+ "@types/node": "^20.11.30",
34
34
  "eslint": "^8.57.0",
35
35
  "husky": "^9.0.11",
36
36
  "lint-staged": "^15.2.2",