eslint-config-complete 1.2.10 → 1.3.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.
@@ -1 +1 @@
1
- {"version":3,"file":"base-typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/base-typescript-eslint.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH,uGA4gBE"}
1
+ {"version":3,"file":"base-typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/base-typescript-eslint.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH,uGAuhBE"}
@@ -272,6 +272,11 @@ export const baseTypeScriptESLint = tseslint.config({
272
272
  "@typescript-eslint/no-unsafe-function-type": "warn",
273
273
  "@typescript-eslint/no-unsafe-member-access": "warn",
274
274
  "@typescript-eslint/no-unsafe-return": "warn",
275
+ /**
276
+ * Disabled because this rule causes too many false positives. The rule prevents a narrowing
277
+ * type assertion, but often times this is precisely the point of the assertion.
278
+ */
279
+ "@typescript-eslint/no-unsafe-type-assertion": "off",
275
280
  "@typescript-eslint/no-unsafe-unary-minus": "warn",
276
281
  /**
277
282
  * The `allowTaggedTemplates` option is enabled to allow the rule to work with libraries like
@@ -359,6 +364,7 @@ export const baseTypeScriptESLint = tseslint.config({
359
364
  "@typescript-eslint/prefer-string-starts-ends-with": "warn",
360
365
  "@typescript-eslint/prefer-ts-expect-error": "warn",
361
366
  "@typescript-eslint/promise-function-async": "warn",
367
+ "@typescript-eslint/related-getter-setter-pairs": "warn",
362
368
  "@typescript-eslint/require-array-sort-compare": "warn",
363
369
  "@typescript-eslint/require-await": "warn",
364
370
  /** The various "allow" options are disabled to make the rule stricter. */
@@ -400,13 +406,16 @@ export const baseTypeScriptESLint = tseslint.config({
400
406
  ],
401
407
  /**
402
408
  * The `allowDefaultCaseForExhaustiveSwitch` option is disabled and the
403
- * `requireDefaultForNonUnion` option is enabled to make the rule stricter.
409
+ * `requireDefaultForNonUnion` option is enabled to make the rule stricter. The
410
+ * `considerDefaultExhaustiveForUnions` option is enabled since it is not intended to be used
411
+ * when `allowDefaultCaseForExhaustiveSwitch` is disabled.
404
412
  */
405
413
  "@typescript-eslint/switch-exhaustiveness-check": [
406
414
  "warn",
407
415
  {
408
416
  allowDefaultCaseForExhaustiveSwitch: false,
409
417
  requireDefaultForNonUnion: true,
418
+ considerDefaultExhaustiveForUnions: true,
410
419
  },
411
420
  ],
412
421
  "@typescript-eslint/triple-slash-reference": "warn",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-complete",
3
- "version": "1.2.10",
3
+ "version": "1.3.1",
4
4
  "description": "A sharable ESLint config for TypeScript projects.",
5
5
  "keywords": [
6
6
  "eslint",
@@ -35,26 +35,26 @@
35
35
  "lint": "tsx ./scripts/lint.ts"
36
36
  },
37
37
  "dependencies": {
38
- "@stylistic/eslint-plugin": "^2.9.0",
38
+ "@stylistic/eslint-plugin": "^2.11.0",
39
39
  "confusing-browser-globals": "^1.0.11",
40
- "eslint-import-resolver-typescript": "^3.6.3",
40
+ "eslint-import-resolver-typescript": "^3.7.0",
41
41
  "eslint-plugin-complete": "^1.0.8",
42
- "eslint-plugin-import-x": "^4.3.1",
43
- "eslint-plugin-jsdoc": "^50.4.3",
44
- "eslint-plugin-n": "^17.11.1",
45
- "eslint-plugin-unicorn": "^56.0.0",
46
- "typescript-eslint": "^8.10.0"
42
+ "eslint-plugin-import-x": "^4.5.0",
43
+ "eslint-plugin-jsdoc": "^50.6.0",
44
+ "eslint-plugin-n": "^17.14.0",
45
+ "eslint-plugin-unicorn": "^56.0.1",
46
+ "typescript-eslint": "^8.17.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@eslint/js": "^9.13.0",
49
+ "@eslint/js": "^9.16.0",
50
50
  "@types/confusing-browser-globals": "^1.0.3",
51
51
  "@types/eslint-config-prettier": "^6.11.3",
52
52
  "@types/eslint__js": "^8.42.3",
53
- "@types/node": "^22.7.7",
54
- "complete-common": "^1.0.0",
55
- "complete-node": "^1.5.1",
53
+ "@types/node": "^22.10.1",
54
+ "complete-common": "^1.0.1",
55
+ "complete-node": "^1.7.4",
56
56
  "eslint-config-prettier": "^9.1.0",
57
57
  "extract-comments": "^1.1.0",
58
- "typescript": "^5.6.3"
58
+ "typescript": "^5.7.2"
59
59
  }
60
60
  }