From 1d0887d815996d8d3cad876996344a314cfed818 Mon Sep 17 00:00:00 2001 From: Aleksey Kovalevsky Date: Wed, 11 Feb 2026 15:12:50 +0200 Subject: [PATCH] eslint-config-seekingalpha-base ver. 11.41.0 --- .../CHANGELOG.md | 4 + .../package.json | 6 +- .../eslint-plugin-unicorn/oxlint-config.json | 1 + .../eslint-plugin-unicorn/oxlint-disabled.js | 1 + .../CHANGELOG.md | 4 + .../package.json | 2 +- .../typescript-eslint/oxlint-config.json | 183 +++++++++--------- .../typescript-eslint/oxlint-disabled.js | 1 + 8 files changed, 108 insertions(+), 94 deletions(-) diff --git a/eslint-configs/eslint-config-seekingalpha-base/CHANGELOG.md b/eslint-configs/eslint-config-seekingalpha-base/CHANGELOG.md index c2202237..f880d721 100644 --- a/eslint-configs/eslint-config-seekingalpha-base/CHANGELOG.md +++ b/eslint-configs/eslint-config-seekingalpha-base/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## 11.41.0 - 2026-02-11 + +- [deps] update `eslint-plugin-unicorn` to version `63.0.0` + ## 11.40.1 - 2026-02-02 - [new] extend oxlint config diff --git a/eslint-configs/eslint-config-seekingalpha-base/package.json b/eslint-configs/eslint-config-seekingalpha-base/package.json index e72946ba..049682bf 100644 --- a/eslint-configs/eslint-config-seekingalpha-base/package.json +++ b/eslint-configs/eslint-config-seekingalpha-base/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-seekingalpha-base", - "version": "11.40.1", + "version": "11.41.0", "description": "SeekingAlpha's sharable base ESLint config", "main": "index.js", "type": "module", @@ -51,13 +51,13 @@ "eslint": "9.39.2", "eslint-plugin-import": "2.32.0", "eslint-plugin-promise": "7.2.1", - "eslint-plugin-unicorn": "62.0.0" + "eslint-plugin-unicorn": "63.0.0" }, "devDependencies": { "eslint": "9.39.2", "eslint-find-rules": "5.0.0", "eslint-plugin-import": "2.32.0", "eslint-plugin-promise": "7.2.1", - "eslint-plugin-unicorn": "62.0.0" + "eslint-plugin-unicorn": "63.0.0" } } diff --git a/eslint-configs/eslint-config-seekingalpha-base/rules/eslint-plugin-unicorn/oxlint-config.json b/eslint-configs/eslint-config-seekingalpha-base/rules/eslint-plugin-unicorn/oxlint-config.json index 400f9fee..165b5db7 100644 --- a/eslint-configs/eslint-config-seekingalpha-base/rules/eslint-plugin-unicorn/oxlint-config.json +++ b/eslint-configs/eslint-config-seekingalpha-base/rules/eslint-plugin-unicorn/oxlint-config.json @@ -120,6 +120,7 @@ "unicorn/prefer-structured-clone": "error", "unicorn/prefer-top-level-await": "off", "unicorn/prefer-type-error": "error", + "unicorn/relative-url-style": ["error", "never"], "unicorn/require-array-join-separator": "error", "unicorn/require-module-attributes": "error", "unicorn/require-module-specifiers": "error", diff --git a/eslint-configs/eslint-config-seekingalpha-base/rules/eslint-plugin-unicorn/oxlint-disabled.js b/eslint-configs/eslint-config-seekingalpha-base/rules/eslint-plugin-unicorn/oxlint-disabled.js index acdb1441..197786d3 100644 --- a/eslint-configs/eslint-config-seekingalpha-base/rules/eslint-plugin-unicorn/oxlint-disabled.js +++ b/eslint-configs/eslint-config-seekingalpha-base/rules/eslint-plugin-unicorn/oxlint-disabled.js @@ -112,6 +112,7 @@ export const ESLintPluginUnicornDisabled = { 'unicorn/prefer-structured-clone': 'off', 'unicorn/prefer-top-level-await': 'off', 'unicorn/prefer-type-error': 'off', + 'unicorn/relative-url-style': 'off', 'unicorn/require-array-join-separator': 'off', 'unicorn/require-module-attributes': 'off', 'unicorn/require-module-specifiers': 'off', diff --git a/eslint-configs/eslint-config-seekingalpha-typescript/CHANGELOG.md b/eslint-configs/eslint-config-seekingalpha-typescript/CHANGELOG.md index 13725e5e..0870b813 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.60.0 - 2026-02-11 + +- [new] extend oxlint rules + ## 8.59.0 - 2026-02-10 - [deps] upgrade `typescript-eslint` to version `8.55.0` diff --git a/eslint-configs/eslint-config-seekingalpha-typescript/package.json b/eslint-configs/eslint-config-seekingalpha-typescript/package.json index 68765e65..35ec63f7 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.59.0", + "version": "8.60.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 2b334010..41e82a4b 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 @@ -2,114 +2,117 @@ "$schema": "./node_modules/oxlint/configuration_schema.json", "plugins": ["typescript"], "rules": { - "@typescript-eslint/adjacent-overload-signatures": "error", - "@typescript-eslint/no-restricted-types": "off", - "@typescript-eslint/ban-ts-comment": "off", - "@typescript-eslint/ban-tslint-comment": "error", - "@typescript-eslint/consistent-generic-constructors": [ - "error", - "constructor" - ], - "@typescript-eslint/consistent-indexed-object-style": ["error", "record"], - "@typescript-eslint/consistent-type-definitions": ["error", "type"], - "@typescript-eslint/consistent-type-imports": [ + "typescript/adjacent-overload-signatures": "error", + "typescript/no-restricted-types": "off", + "typescript/ban-ts-comment": "off", + "typescript/ban-tslint-comment": "error", + "typescript/consistent-generic-constructors": ["error", "constructor"], + "typescript/consistent-indexed-object-style": ["error", "record"], + "typescript/consistent-type-definitions": ["error", "type"], + "typescript/consistent-type-imports": [ "error", { "prefer": "type-imports", "fixStyle": "separate-type-imports" } ], - "@typescript-eslint/no-confusing-non-null-assertion": "error", - "@typescript-eslint/no-duplicate-enum-values": "error", - "@typescript-eslint/no-dynamic-delete": "error", - "@typescript-eslint/no-empty-interface": "error", - "@typescript-eslint/no-empty-object-type": "error", - "@typescript-eslint/no-explicit-any": "off", - "@typescript-eslint/no-extra-non-null-assertion": "error", - "@typescript-eslint/no-extraneous-class": "error", - "@typescript-eslint/no-import-type-side-effects": "error", - "@typescript-eslint/no-inferrable-types": [ + "typescript/no-confusing-non-null-assertion": "error", + "typescript/no-duplicate-enum-values": "error", + "typescript/no-dynamic-delete": "error", + "typescript/no-empty-interface": "error", + "typescript/no-empty-object-type": "error", + "typescript/no-explicit-any": "off", + "typescript/no-extra-non-null-assertion": "error", + "typescript/no-extraneous-class": "error", + "typescript/no-import-type-side-effects": "error", + "typescript/no-inferrable-types": [ "error", { "ignoreParameters": true, "ignoreProperties": true } ], - "@typescript-eslint/no-misused-new": "error", - "@typescript-eslint/no-namespace": "error", - "@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error", - "@typescript-eslint/no-non-null-asserted-optional-chain": "error", - "@typescript-eslint/no-non-null-assertion": "error", - "@typescript-eslint/no-require-imports": "error", - "@typescript-eslint/no-this-alias": "error", - "@typescript-eslint/no-unnecessary-parameter-property-assignment": "error", - "@typescript-eslint/no-unnecessary-type-constraint": "error", - "@typescript-eslint/no-unsafe-declaration-merging": "error", - "@typescript-eslint/no-unsafe-function-type": "error", - "@typescript-eslint/no-useless-empty-export": "error", - "@typescript-eslint/no-var-requires": "error", - "@typescript-eslint/no-wrapper-object-types": "error", - "@typescript-eslint/prefer-as-const": "error", - "@typescript-eslint/prefer-enum-initializers": "error", - "@typescript-eslint/prefer-for-of": "error", - "@typescript-eslint/prefer-function-type": "error", - "@typescript-eslint/prefer-literal-enum-member": "error", - "@typescript-eslint/prefer-namespace-keyword": "error", - "@typescript-eslint/triple-slash-reference": "error", - "@typescript-eslint/array-type": [ + "typescript/no-misused-new": "error", + "typescript/no-namespace": "error", + "typescript/no-non-null-asserted-nullish-coalescing": "error", + "typescript/no-non-null-asserted-optional-chain": "error", + "typescript/no-non-null-assertion": "error", + "typescript/no-require-imports": "error", + "typescript/no-this-alias": "error", + "typescript/no-unnecessary-parameter-property-assignment": "error", + "typescript/no-unnecessary-type-constraint": "error", + "typescript/no-unsafe-declaration-merging": "error", + "typescript/no-unsafe-function-type": "error", + "typescript/no-useless-empty-export": "error", + "typescript/no-var-requires": "error", + "typescript/no-wrapper-object-types": "error", + "typescript/prefer-as-const": "error", + "typescript/prefer-enum-initializers": "error", + "typescript/prefer-for-of": "error", + "typescript/prefer-function-type": "error", + "typescript/prefer-literal-enum-member": "error", + "typescript/prefer-namespace-keyword": "error", + "typescript/triple-slash-reference": "error", + "typescript/array-type": [ "error", { "default": "generic", "readonly": "generic" } ], - "@typescript-eslint/explicit-function-return-type": "off", - "@typescript-eslint/explicit-module-boundary-types": "off", + "typescript/consistent-type-assertions": [ + "error", + { + "assertionStyle": "as" + } + ], + "typescript/explicit-function-return-type": "off", + "typescript/explicit-module-boundary-types": "off", // require type info - "@typescript-eslint/await-thenable": "off", - "@typescript-eslint/no-array-delete": "off", - "@typescript-eslint/no-base-to-string": "off", - "@typescript-eslint/no-confusing-void-expression": "off", - "@typescript-eslint/no-deprecated": "off", - "@typescript-eslint/no-duplicate-type-constituents": "off", - "@typescript-eslint/no-floating-promises": "off", - "@typescript-eslint/no-for-in-array": "off", - "@typescript-eslint/no-implied-eval": "off", - "@typescript-eslint/no-meaningless-void-operator": "off", - "@typescript-eslint/no-misused-promises": "off", - "@typescript-eslint/no-misused-spread": "off", - "@typescript-eslint/no-mixed-enums": "off", - "@typescript-eslint/no-redundant-type-constituents": "off", - "@typescript-eslint/no-unnecessary-boolean-literal-compare": "off", - "@typescript-eslint/no-unnecessary-template-expression": "off", - "@typescript-eslint/no-unnecessary-type-arguments": "off", - "@typescript-eslint/no-unnecessary-type-assertion": "off", - "@typescript-eslint/no-unsafe-argument": "off", - "@typescript-eslint/no-unsafe-assignment": "off", - "@typescript-eslint/no-unsafe-call": "off", - "@typescript-eslint/no-unsafe-enum-comparison": "off", - "@typescript-eslint/no-unsafe-member-access": "off", - "@typescript-eslint/no-unsafe-return": "off", - "@typescript-eslint/no-unsafe-type-assertion": "off", - "@typescript-eslint/no-unsafe-unary-minus": "off", - "@typescript-eslint/non-nullable-type-assertion-style": "off", - "@typescript-eslint/only-throw-error": "off", - "@typescript-eslint/prefer-includes": "off", - "@typescript-eslint/prefer-nullish-coalescing": "off", - "@typescript-eslint/prefer-optional-chain": "off", - "@typescript-eslint/prefer-promise-reject-errors": "off", - "@typescript-eslint/prefer-reduce-type-parameter": "off", - "@typescript-eslint/prefer-return-this-type": "off", - "@typescript-eslint/promise-function-async": "off", - "@typescript-eslint/related-getter-setter-pairs": "off", - "@typescript-eslint/require-array-sort-compare": "off", - "@typescript-eslint/require-await": "off", - "@typescript-eslint/restrict-plus-operands": "off", - "@typescript-eslint/restrict-template-expressions": "off", - "@typescript-eslint/return-await": "off", - "@typescript-eslint/strict-boolean-expressions": "off", - "@typescript-eslint/switch-exhaustiveness-check": "off", - "@typescript-eslint/unbound-method": "off", - "@typescript-eslint/use-unknown-in-catch-callback-variable": "off" + "typescript/await-thenable": "off", + "typescript/no-array-delete": "off", + "typescript/no-base-to-string": "off", + "typescript/no-confusing-void-expression": "off", + "typescript/no-deprecated": "off", + "typescript/no-duplicate-type-constituents": "off", + "typescript/no-floating-promises": "off", + "typescript/no-for-in-array": "off", + "typescript/no-implied-eval": "off", + "typescript/no-meaningless-void-operator": "off", + "typescript/no-misused-promises": "off", + "typescript/no-misused-spread": "off", + "typescript/no-mixed-enums": "off", + "typescript/no-redundant-type-constituents": "off", + "typescript/no-unnecessary-boolean-literal-compare": "off", + "typescript/no-unnecessary-template-expression": "off", + "typescript/no-unnecessary-type-arguments": "off", + "typescript/no-unnecessary-type-assertion": "off", + "typescript/no-unsafe-argument": "off", + "typescript/no-unsafe-assignment": "off", + "typescript/no-unsafe-call": "off", + "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/non-nullable-type-assertion-style": "off", + "typescript/only-throw-error": "off", + "typescript/prefer-includes": "off", + "typescript/prefer-nullish-coalescing": "off", + "typescript/prefer-optional-chain": "off", + "typescript/prefer-promise-reject-errors": "off", + "typescript/prefer-reduce-type-parameter": "off", + "typescript/prefer-return-this-type": "off", + "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/return-await": "off", + "typescript/strict-boolean-expressions": "off", + "typescript/switch-exhaustiveness-check": "off", + "typescript/unbound-method": "off", + "typescript/use-unknown-in-catch-callback-variable": "off" } } diff --git a/eslint-configs/eslint-config-seekingalpha-typescript/rules/typescript-eslint/oxlint-disabled.js b/eslint-configs/eslint-config-seekingalpha-typescript/rules/typescript-eslint/oxlint-disabled.js index 6c9e00ca..2e088b03 100644 --- a/eslint-configs/eslint-config-seekingalpha-typescript/rules/typescript-eslint/oxlint-disabled.js +++ b/eslint-configs/eslint-config-seekingalpha-typescript/rules/typescript-eslint/oxlint-disabled.js @@ -39,6 +39,7 @@ export const ESLintPluginTypescriptDisabled = { '@typescript-eslint/prefer-namespace-keyword': 'off', '@typescript-eslint/triple-slash-reference': 'off', '@typescript-eslint/array-type': 'off', + '@typescript-eslint/consistent-type-assertions': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', // require type info