eslint-config-complete 1.3.0 → 1.4.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.
@@ -1 +1 @@
1
- {"version":3,"file":"base-typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/base-typescript-eslint.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH,uGA+gBE"}
1
+ {"version":3,"file":"base-typescript-eslint.d.ts","sourceRoot":"","sources":["../../src/base/base-typescript-eslint.js"],"names":[],"mappings":"AAEA;;;GAGG;AACH,uGA2hBE"}
@@ -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. */
@@ -379,8 +385,12 @@ export const baseTypeScriptESLint = tseslint.config({
379
385
  /**
380
386
  * Even though the core rule was deprecated, the extended rule uses type information, so it is
381
387
  * much better.
388
+ *
389
+ * Additionally, we opt for the "always" option instead of the default of "in-try-catch", for
390
+ * reasons described in [this
391
+ * issue](https://github.com/typescript-eslint/typescript-eslint/issues/10165#issuecomment-2525288217).
382
392
  */
383
- "@typescript-eslint/return-await": "warn",
393
+ "@typescript-eslint/return-await": ["warn", "always"],
384
394
  /** Disabled since in it does not make sense to sort a union alphabetically in many cases. */
385
395
  "@typescript-eslint/sort-type-constituents": "off",
386
396
  /** The `allowString` and `allowNumber` options are disabled to make the rule stricter. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-complete",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
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.10.1",
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.4.0",
43
- "eslint-plugin-jsdoc": "^50.4.3",
44
- "eslint-plugin-n": "^17.13.1",
45
- "eslint-plugin-unicorn": "^56.0.0",
46
- "typescript-eslint": "^8.13.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.14.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.9.0",
53
+ "@types/node": "^22.10.1",
54
54
  "complete-common": "^1.0.1",
55
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
  }