diff --git a/eslint-configs/eslint-config-seekingalpha-typescript/CHANGELOG.md b/eslint-configs/eslint-config-seekingalpha-typescript/CHANGELOG.md index 2e859461..d416f55e 100644 --- a/eslint-configs/eslint-config-seekingalpha-typescript/CHANGELOG.md +++ b/eslint-configs/eslint-config-seekingalpha-typescript/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 8.66.0 - 2026-03-02 + +- [new] extend oxlint rules with type-aware rules + ## 8.65.0 - 2026-02-24 - [deps] upgrade `typescript-eslint` to version `8.56.1` diff --git a/eslint-configs/eslint-config-seekingalpha-typescript/package.json b/eslint-configs/eslint-config-seekingalpha-typescript/package.json index 00b08fe9..7f47ca23 100644 --- a/eslint-configs/eslint-config-seekingalpha-typescript/package.json +++ b/eslint-configs/eslint-config-seekingalpha-typescript/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-seekingalpha-typescript", - "version": "8.65.0", + "version": "8.66.0", "description": "SeekingAlpha's sharable typescript ESLint config", "main": "index.js", "type": "module", diff --git a/eslint-configs/eslint-config-seekingalpha-typescript/rules/typescript-eslint/oxlint-config.json b/eslint-configs/eslint-config-seekingalpha-typescript/rules/typescript-eslint/oxlint-config.json index 0ddc2148..1283afd2 100644 --- a/eslint-configs/eslint-config-seekingalpha-typescript/rules/typescript-eslint/oxlint-config.json +++ b/eslint-configs/eslint-config-seekingalpha-typescript/rules/typescript-eslint/oxlint-config.json @@ -86,64 +86,79 @@ ], "typescript/explicit-function-return-type": "off", "typescript/explicit-module-boundary-types": "off", - // require type info + + // typeaware "typescript/await-thenable": "off", - "typescript/consistent-return": "off", - "typescript/consistent-type-exports": "off", - "typescript/dot-notation": "off", - "typescript/no-array-delete": "off", + "typescript/consistent-return": "error", + "typescript/consistent-type-exports": [ + "error", + { "fixMixedExportsWithInlineTypeSpecifier": true } + ], + "typescript/dot-notation": "error", + "typescript/no-array-delete": "error", + // should fix 25 errors "typescript/no-base-to-string": "off", + // 598 errors, we should enable this gradually and fix errors over time "typescript/no-confusing-void-expression": "off", + // should fix errors "typescript/no-deprecated": "off", - "typescript/no-duplicate-type-constituents": "off", + "typescript/no-duplicate-type-constituents": "error", "typescript/no-floating-promises": "off", - "typescript/no-for-in-array": "off", - "typescript/no-implied-eval": "off", - "typescript/no-meaningless-void-operator": "off", + "typescript/no-for-in-array": "error", + "typescript/no-implied-eval": "error", + "typescript/no-meaningless-void-operator": "error", + // 232 errors "typescript/no-misused-promises": "off", - "typescript/no-misused-spread": "off", - "typescript/no-mixed-enums": "off", - "typescript/no-redundant-type-constituents": "off", + "typescript/no-misused-spread": "error", + "typescript/no-mixed-enums": "error", + "typescript/no-redundant-type-constituents": "error", + // 27 errors, need carefull check "typescript/no-unnecessary-boolean-literal-compare": "off", - "typescript/no-unnecessary-qualifier": "off", - "typescript/no-unnecessary-template-expression": "off", - "typescript/no-unnecessary-type-arguments": "off", - "typescript/no-unnecessary-type-assertion": "off", + // 2903 errors + "typescript/no-unnecessary-condition": "off", + "typescript/no-unnecessary-qualifier": "error", + "typescript/no-unnecessary-template-expression": "error", + "typescript/no-unnecessary-type-arguments": "error", + "typescript/no-unnecessary-type-assertion": "error", + // false-positives with generics, need carefull check "typescript/no-unnecessary-type-parameters": "off", "typescript/no-unsafe-argument": "off", "typescript/no-unsafe-assignment": "off", "typescript/no-unsafe-call": "off", + // 41 errors, need carefull check "typescript/no-unsafe-enum-comparison": "off", "typescript/no-unsafe-member-access": "off", "typescript/no-unsafe-return": "off", "typescript/no-unsafe-type-assertion": "off", - "typescript/no-unsafe-unary-minus": "off", + "typescript/no-unsafe-unary-minus": "error", + // 184 errors, need carefull check "typescript/no-useless-default-assignment": "off", + // 34 errors, need carefull check "typescript/non-nullable-type-assertion-style": "off", - "typescript/only-throw-error": "off", - "typescript/prefer-find": "off", - "typescript/prefer-includes": "off", + "typescript/only-throw-error": "error", + "typescript/prefer-find": "error", + "typescript/prefer-includes": "error", + // 1197 errors "typescript/prefer-nullish-coalescing": "off", - "typescript/prefer-optional-chain": "off", - "typescript/prefer-promise-reject-errors": "off", - "typescript/prefer-readonly": "off", + "typescript/prefer-optional-chain": "error", + "typescript/prefer-promise-reject-errors": "error", + "typescript/prefer-readonly": "error", "typescript/prefer-readonly-parameter-types": "off", - "typescript/prefer-reduce-type-parameter": "off", + "typescript/prefer-reduce-type-parameter": "error", "typescript/prefer-regexp-exec": "off", - "typescript/prefer-return-this-type": "off", - "typescript/prefer-string-starts-ends-with": "off", + "typescript/prefer-return-this-type": "error", + "typescript/prefer-string-starts-ends-with": "error", "typescript/promise-function-async": "off", - "typescript/related-getter-setter-pairs": "off", - "typescript/require-array-sort-compare": "off", - "typescript/require-await": "off", - "typescript/restrict-plus-operands": "off", - "typescript/restrict-template-expressions": "off", + "typescript/related-getter-setter-pairs": "error", + "typescript/require-array-sort-compare": "error", + "typescript/require-await": "error", + "typescript/restrict-plus-operands": "error", + "typescript/restrict-template-expressions": "error", "typescript/return-await": "off", "typescript/strict-boolean-expressions": "off", "typescript/strict-void-return": "off", "typescript/switch-exhaustiveness-check": "off", "typescript/unbound-method": "off", - "typescript/unified-signatures": "error", "typescript/use-unknown-in-catch-callback-variable": "off" } } diff --git a/package.json b/package.json index 2402721e..ad510f22 100644 --- a/package.json +++ b/package.json @@ -55,8 +55,8 @@ "eslint-plugin-promise": "7.2.1", "eslint-plugin-unicorn": "63.0.0", "husky": "9.1.7", - "lint-staged": "16.2.7", - "oxlint": "1.50.0", + "lint-staged": "16.3.1", + "oxlint": "1.51.0", "prettier": "3.8.1" } }