From f7a9c9ec289b794cd36ab70e5e2bee7992b06d8f Mon Sep 17 00:00:00 2001 From: Aleksey Kovalevsky Date: Mon, 26 Jan 2026 17:48:44 +0200 Subject: [PATCH 1/2] eslint-config-seekingalpha-base ver. 11.35.0 - [new] extend sharable oxlint config with eslint-plugin-promise rules --- .../CHANGELOG.md | 4 + .../eslint-config-seekingalpha-base/oxc.js | 174 +--------- .../oxlint-config.json | 327 +----------------- .../package.json | 2 +- .../eslint-plugin-promise/oxlint-config.json | 27 ++ .../eslint-plugin-promise/oxlint-disabled.js | 35 ++ .../rules/eslint/oxlint-config.json | 326 +++++++++++++++++ .../rules/eslint/oxlint-disabled.js | 167 +++++++++ 8 files changed, 569 insertions(+), 493 deletions(-) create mode 100644 eslint-configs/eslint-config-seekingalpha-base/rules/eslint-plugin-promise/oxlint-config.json create mode 100644 eslint-configs/eslint-config-seekingalpha-base/rules/eslint-plugin-promise/oxlint-disabled.js create mode 100644 eslint-configs/eslint-config-seekingalpha-base/rules/eslint/oxlint-config.json create mode 100644 eslint-configs/eslint-config-seekingalpha-base/rules/eslint/oxlint-disabled.js diff --git a/eslint-configs/eslint-config-seekingalpha-base/CHANGELOG.md b/eslint-configs/eslint-config-seekingalpha-base/CHANGELOG.md index 66880287..2721e1cc 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.35.0 - 2025-12-26 + +- [new] extend sharable oxlint config with eslint-plugin-promise rules + ## 11.34.0 - 2025-12-26 - [new] add sharable oxlint config with base eslint rules diff --git a/eslint-configs/eslint-config-seekingalpha-base/oxc.js b/eslint-configs/eslint-config-seekingalpha-base/oxc.js index 9287b3f0..30588aaf 100644 --- a/eslint-configs/eslint-config-seekingalpha-base/oxc.js +++ b/eslint-configs/eslint-config-seekingalpha-base/oxc.js @@ -1,178 +1,14 @@ -import config from './index.js'; +import { ESLintDisabled } from './rules/eslint/oxlint-disabled.js'; +import { ESLintPluginPromiseDisabled } from './rules/eslint-plugin-promise/oxlint-disabled.js'; -const OxcRules = { - 'array-callback-return': 'off', - 'constructor-super': 'off', - 'for-direction': 'off', - 'no-async-promise-executor': 'off', - 'no-await-in-loop': 'off', - 'no-class-assign': 'off', - 'no-compare-neg-zero': 'off', - 'no-cond-assign': 'off', - 'no-const-assign': 'off', - 'no-constant-binary-expression': 'off', - 'no-constant-condition': 'off', - 'no-constructor-return': 'off', - 'no-control-regex': 'off', - 'no-debugger': 'off', - 'no-dupe-class-members': 'off', - 'no-dupe-else-if': 'off', - 'no-dupe-keys': 'off', - 'no-duplicate-case': 'off', - 'no-duplicate-imports': 'off', - 'no-empty-character-class': 'off', - 'no-empty-pattern': 'off', - 'no-ex-assign': 'off', - 'no-fallthrough': 'off', - 'no-func-assign': 'off', - 'no-import-assign': 'off', - 'no-inline-comments': 'off', - 'no-inner-declarations': 'off', - 'no-invalid-regexp': 'off', - 'no-irregular-whitespace': 'off', - 'no-loss-of-precision': 'off', - 'no-magic-numbers': 'off', - 'no-misleading-character-class': 'off', - 'no-new-native-nonconstructor': 'off', - 'no-obj-calls': 'off', - 'no-promise-executor-return': 'off', - 'no-prototype-builtins': 'off', - 'no-self-assign': 'off', - 'no-self-compare': 'off', - 'no-setter-return': 'off', - 'no-sparse-arrays': 'off', - 'no-template-curly-in-string': 'off', - 'no-ternary': 'off', - 'no-this-before-super': 'off', - 'no-unassigned-vars': 'off', - 'no-unexpected-multiline': 'off', - 'no-unsafe-finally': 'off', - 'no-unsafe-negation': 'off', - 'no-unsafe-optional-chaining': 'off', - 'no-unused-private-class-members': 'off', - 'no-unused-vars': 'off', - 'no-useless-backreference': 'off', - 'use-isnan': 'off', - 'valid-typeof': 'off', - 'accessor-pairs': 'off', - 'arrow-body-style': 'off', - 'block-scoped-var': 'off', - 'capitalized-comments': 'off', - 'class-methods-use-this': 'off', - complexity: 'off', - curly: 'off', - 'default-case': 'off', - 'default-case-last': 'off', - 'default-param-last': 'off', - eqeqeq: 'off', - 'func-names': 'off', - 'func-style': 'off', - 'getter-return': 'off', - 'grouped-accessor-pairs': 'off', - 'guard-for-in': 'off', - 'id-length': 'off', - 'init-declarations': 'off', - 'max-classes-per-file': 'off', - 'max-depth': 'off', - 'max-lines': 'off', - 'max-lines-per-function': 'off', - 'max-nested-callbacks': 'off', - 'max-params': 'off', - 'max-statements': 'off', - 'new-cap': 'off', - 'no-alert': 'off', - 'no-array-constructor': 'off', - 'no-bitwise': 'off', - 'no-caller': 'off', - 'no-case-declarations': 'off', - 'no-console': 'off', - 'no-continue': 'off', - 'no-delete-var': 'off', - 'no-div-regex': 'off', - 'no-else-return': 'off', - 'no-empty': 'off', - 'no-empty-function': 'off', - 'no-eq-null': 'off', - 'no-empty-static-block': 'off', - 'no-eval': 'off', - 'no-extend-native': 'off', - 'no-extra-bind': 'off', - 'no-extra-boolean-cast': 'off', - 'no-extra-label': 'off', - 'no-global-assign': 'off', - 'no-implicit-coercion': 'off', - 'no-iterator': 'off', - 'no-label-var': 'off', - 'no-labels': 'off', - 'no-lone-blocks': 'off', - 'no-lonely-if': 'off', - 'no-loop-func': 'off', - 'no-multi-assign': 'off', - 'no-multi-str': 'off', - 'no-negated-condition': 'off', - 'no-nested-ternary': 'off', - 'no-new': 'off', - 'no-new-func': 'off', - 'no-new-wrappers': 'off', - 'no-nonoctal-decimal-escape': 'off', - 'no-object-constructor': 'off', - 'no-param-reassign': 'off', - 'no-plusplus': 'off', - 'no-proto': 'off', - 'no-redeclare': 'off', - 'no-regex-spaces': 'off', - 'no-restricted-globals': 'off', - 'no-restricted-imports': 'off', - 'no-return-assign': 'off', - 'no-script-url': 'off', - 'no-sequences': 'off', - 'no-shadow-restricted-names': 'off', - 'no-throw-literal': 'off', - 'no-undefined': 'off', - 'no-unneeded-ternary': 'off', - 'no-unreachable': 'off', - 'no-unused-expressions': 'off', - 'no-unused-labels': 'off', - 'no-useless-call': 'off', - 'no-useless-catch': 'off', - 'no-useless-computed-key': 'off', - 'no-useless-concat': 'off', - 'no-useless-constructor': 'off', - 'no-useless-escape': 'off', - 'no-useless-rename': 'off', - 'no-useless-return': 'off', - 'no-var': 'off', - 'no-void': 'off', - 'no-warning-comments': 'off', - 'no-with': 'off', - 'operator-assignment': 'off', - 'prefer-destructuring': 'off', - 'prefer-exponentiation-operator': 'off', - 'prefer-numeric-literals': 'off', - 'prefer-object-has-own': 'off', - 'prefer-object-spread': 'off', - 'prefer-promise-reject-errors': 'off', - 'prefer-rest-params': 'off', - 'prefer-spread': 'off', - 'prefer-template': 'off', - 'preserve-caught-error': 'off', - radix: 'off', - 'require-await': 'off', - 'require-yield': 'off', - 'sort-imports': 'off', - 'sort-keys': 'off', - 'sort-vars': 'off', - 'symbol-description': 'off', - 'unicode-bom': 'off', - 'vars-on-top': 'off', - yoda: 'off', -}; +import config from './index.js'; const oxcConfig = { ...config, rules: { ...config.rules, - ...OxcRules, + ...ESLintDisabled, + ...ESLintPluginPromiseDisabled, }, }; diff --git a/eslint-configs/eslint-config-seekingalpha-base/oxlint-config.json b/eslint-configs/eslint-config-seekingalpha-base/oxlint-config.json index 82186711..4a106bd1 100644 --- a/eslint-configs/eslint-config-seekingalpha-base/oxlint-config.json +++ b/eslint-configs/eslint-config-seekingalpha-base/oxlint-config.json @@ -1,326 +1,7 @@ { "$schema": "./node_modules/oxlint/configuration_schema.json", - "rules": { - "array-callback-return": "error", - "constructor-super": "error", - "for-direction": "error", - "no-async-promise-executor": "error", - "no-await-in-loop": "error", - "no-class-assign": "error", - "no-compare-neg-zero": "error", - "no-cond-assign": "error", - "no-const-assign": "error", - "no-constant-binary-expression": "error", - "no-constant-condition": "error", - "no-constructor-return": "error", - "no-control-regex": "error", - "no-debugger": "error", - "no-dupe-class-members": "error", - "no-dupe-else-if": "error", - "no-dupe-keys": "error", - "no-duplicate-case": "error", - "no-duplicate-imports": "off", - "no-empty-character-class": "error", - "no-empty-pattern": "error", - "no-ex-assign": "error", - "no-fallthrough": "error", - "no-func-assign": "error", - "no-import-assign": "error", - "no-inline-comments": "off", - "no-inner-declarations": "error", - "no-invalid-regexp": "error", - "no-irregular-whitespace": "error", - "no-loss-of-precision": "error", - "no-magic-numbers": "off", - "no-misleading-character-class": "error", - "no-new-native-nonconstructor": "error", - "no-obj-calls": "error", - "no-promise-executor-return": "error", - "no-prototype-builtins": "error", - "no-self-assign": [ - "error", - { - "props": false - } - ], - "no-self-compare": "error", - "no-setter-return": "error", - "no-sparse-arrays": "error", - "no-template-curly-in-string": "error", - "no-ternary": "off", - "no-this-before-super": "error", - "no-unassigned-vars": "error", - "no-unexpected-multiline": "error", - "no-unsafe-finally": "error", - "no-unsafe-negation": "error", - "no-unsafe-optional-chaining": [ - "error", - { - "disallowArithmeticOperators": true - } - ], - "no-unused-private-class-members": "error", - "no-unused-vars": [ - "error", - { - "args": "after-used", - "argsIgnorePattern": "[iI]gnored", - "caughtErrors": "all", - "caughtErrorsIgnorePattern": "[iI]gnored", - "ignoreRestSiblings": false, - "vars": "all", - "varsIgnorePattern": "[iI]gnored" - } - ], - "no-useless-backreference": "error", - "use-isnan": "error", - "valid-typeof": [ - "error", - { - "requireStringLiterals": true - } - ], - "accessor-pairs": [ - "error", - { - "setWithoutGet": true, - "getWithoutSet": false, - "enforceForClassMembers": true - } - ], - "arrow-body-style": ["error", "always"], - "block-scoped-var": "error", - "class-methods-use-this": "error", - "complexity": [ - "error", - { - "max": 10 - } - ], - "curly": "error", - "capitalized-comments": "off", - "default-case": [ - "error", - { - "commentPattern": "^skip\\sdefault" - } - ], - "default-case-last": "error", - "default-param-last": "error", - "eqeqeq": ["error", "always"], - "func-names": "off", - "func-style": [ - "error", - "expression", - { - "allowArrowFunctions": true - } - ], - "getter-return": [ - "error", - { - "allowImplicit": false - } - ], - "grouped-accessor-pairs": ["error", "getBeforeSet"], - "guard-for-in": "error", - "id-length": [ - "error", - { - "max": 50, - "properties": "always", - "exceptions": [] - } - ], - "init-declarations": "off", - "max-classes-per-file": ["error", 1], - "max-depth": ["error", 2], - "max-lines": "off", - "max-lines-per-function": [ - "error", - { - "max": 100, - "skipBlankLines": true, - "skipComments": true, - "IIFEs": true - } - ], - "max-nested-callbacks": ["error", 3], - "max-params": ["error", 4], - "max-statements": ["error", 20], - "new-cap": [ - "error", - { - "newIsCap": true, - "newIsCapExceptions": [], - "capIsNew": false, - "capIsNewExceptions": [], - "properties": true - } - ], - "no-alert": "error", - "no-array-constructor": "error", - "no-bitwise": "error", - "no-caller": "error", - "no-case-declarations": "error", - "no-console": "error", - "no-continue": "error", - "no-delete-var": "error", - "no-div-regex": "error", - "no-else-return": [ - "error", - { - "allowElseIf": false - } - ], - "no-empty": [ - "error", - { - "allowEmptyCatch": true - } - ], - "no-empty-function": "error", - "no-eq-null": "error", - "no-empty-static-block": "error", - "no-eval": "error", - "no-extend-native": "error", - "no-extra-bind": "error", - "no-extra-boolean-cast": "error", - "no-extra-label": "error", - "no-global-assign": [ - "error", - { - "exceptions": [] - } - ], - "no-implicit-coercion": "error", - "no-iterator": "error", - "no-label-var": "error", - "no-labels": "error", - "no-lone-blocks": "error", - "no-lonely-if": "error", - "no-loop-func": "error", - "no-multi-assign": "error", - "no-multi-str": "error", - "no-negated-condition": "error", - "no-nested-ternary": "error", - "no-new": "error", - "no-new-func": "error", - "no-new-wrappers": "error", - "no-nonoctal-decimal-escape": "error", - "no-object-constructor": "error", - "no-param-reassign": "error", - "no-plusplus": "error", - "no-proto": "error", - "no-redeclare": "error", - "no-regex-spaces": "error", - "no-restricted-globals": [ - "error", - { - "name": "event", - "message": "Use local parameter instead." - }, - { - "name": "fdescribe", - "message": "Do not commit fdescribe. Use describe instead." - }, - { - "name": "isFinite", - "message": "Use Number.isFinite instead." - }, - { - "name": "isNaN", - "message": "Use Number.isNaN instead" - } - ], - "no-restricted-imports": "error", - "no-return-assign": "error", - "no-script-url": "error", - "no-sequences": "error", - "no-shadow-restricted-names": "error", - "no-throw-literal": "error", - "no-undef": "error", - "no-undefined": "error", - "no-unneeded-ternary": [ - "error", - { - "defaultAssignment": false - } - ], - "no-unreachable": "error", - "no-unused-expressions": [ - "error", - { - "allowShortCircuit": false, - "allowTernary": false, - "allowTaggedTemplates": false - } - ], - "no-unused-labels": "error", - "no-useless-call": "error", - "no-useless-catch": "error", - "no-useless-computed-key": "error", - "no-useless-concat": "error", - "no-useless-constructor": "error", - "no-useless-escape": "error", - "no-useless-rename": [ - "error", - { - "ignoreDestructuring": false, - "ignoreImport": false, - "ignoreExport": false - } - ], - "no-useless-return": "error", - "no-var": "error", - "no-void": "error", - "no-warning-comments": "off", - "no-with": "error", - "operator-assignment": ["error", "never"], - "prefer-destructuring": [ - "error", - { - "VariableDeclarator": { - "array": false, - "object": true - }, - "AssignmentExpression": { - "array": true, - "object": true - } - }, - { - "enforceForRenamedProperties": false - } - ], - "prefer-exponentiation-operator": "error", - "prefer-numeric-literals": "error", - "prefer-object-has-own": "off", - "prefer-object-spread": "error", - "prefer-promise-reject-errors": [ - "error", - { - "allowEmptyReject": true - } - ], - "prefer-rest-params": "error", - "prefer-spread": "error", - "prefer-template": "error", - "preserve-caught-error": [ - "error", - { - "requireCatchParameter": false - } - ], - "radix": "error", - "require-await": "error", - "require-yield": "error", - "sort-imports": "off", - "sort-keys": "off", - "sort-vars": "off", - "symbol-description": "error", - "unicode-bom": "off", - "vars-on-top": "error", - "yoda": "error" - } + "extends": [ + "./rules/eslint/oxlint-config.json", + "./rules/eslint-plugin-promise/oxlint-config.json" + ] } diff --git a/eslint-configs/eslint-config-seekingalpha-base/package.json b/eslint-configs/eslint-config-seekingalpha-base/package.json index ab4cf5a7..0ea2c544 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.34.0", + "version": "11.35.0", "description": "SeekingAlpha's sharable base ESLint config", "main": "index.js", "type": "module", diff --git a/eslint-configs/eslint-config-seekingalpha-base/rules/eslint-plugin-promise/oxlint-config.json b/eslint-configs/eslint-config-seekingalpha-base/rules/eslint-plugin-promise/oxlint-config.json new file mode 100644 index 00000000..9d69ebfc --- /dev/null +++ b/eslint-configs/eslint-config-seekingalpha-base/rules/eslint-plugin-promise/oxlint-config.json @@ -0,0 +1,27 @@ +{ + "$schema": "./node_modules/oxlint/configuration_schema.json", + "rules": { + "promise/always-return": "error", + "promise/no-return-wrap": "error", + "promise/param-names": "error", + "promise/catch-or-return": [ + "error", + { + "allowThen": true + } + ], + "promise/no-multiple-resolved": "error", + "promise/no-native": "off", + "promise/no-nesting": "error", + "promise/no-promise-in-callback": "error", + "promise/no-callback-in-promise": "error", + "promise/avoid-new": "off", + "promise/no-new-statics": "error", + "promise/no-return-in-finally": "error", + "promise/valid-params": "error", + "promise/prefer-await-to-callbacks": "off", + "promise/prefer-await-to-then": "off", + "promise/prefer-catch": "error", + "promise/spec-only": "error" + } +} diff --git a/eslint-configs/eslint-config-seekingalpha-base/rules/eslint-plugin-promise/oxlint-disabled.js b/eslint-configs/eslint-config-seekingalpha-base/rules/eslint-plugin-promise/oxlint-disabled.js new file mode 100644 index 00000000..41ef2ce7 --- /dev/null +++ b/eslint-configs/eslint-config-seekingalpha-base/rules/eslint-plugin-promise/oxlint-disabled.js @@ -0,0 +1,35 @@ +export const ESLintPluginPromiseDisabled = { + 'promise/always-return': 'off', + + 'promise/no-return-wrap': 'off', + + 'promise/param-names': 'off', + + 'promise/catch-or-return': 'off', + + 'promise/no-multiple-resolved': 'off', + + 'promise/no-native': 'off', + + 'promise/no-nesting': 'off', + + 'promise/no-promise-in-callback': 'off', + + 'promise/no-callback-in-promise': 'off', + + 'promise/avoid-new': 'off', + + 'promise/no-new-statics': 'off', + + 'promise/no-return-in-finally': 'off', + + 'promise/valid-params': 'off', + + 'promise/prefer-await-to-callbacks': 'off', + + 'promise/prefer-await-to-then': 'off', + + 'promise/prefer-catch': 'off', + + 'promise/spec-only': 'off', +}; diff --git a/eslint-configs/eslint-config-seekingalpha-base/rules/eslint/oxlint-config.json b/eslint-configs/eslint-config-seekingalpha-base/rules/eslint/oxlint-config.json new file mode 100644 index 00000000..82186711 --- /dev/null +++ b/eslint-configs/eslint-config-seekingalpha-base/rules/eslint/oxlint-config.json @@ -0,0 +1,326 @@ +{ + "$schema": "./node_modules/oxlint/configuration_schema.json", + "rules": { + "array-callback-return": "error", + "constructor-super": "error", + "for-direction": "error", + "no-async-promise-executor": "error", + "no-await-in-loop": "error", + "no-class-assign": "error", + "no-compare-neg-zero": "error", + "no-cond-assign": "error", + "no-const-assign": "error", + "no-constant-binary-expression": "error", + "no-constant-condition": "error", + "no-constructor-return": "error", + "no-control-regex": "error", + "no-debugger": "error", + "no-dupe-class-members": "error", + "no-dupe-else-if": "error", + "no-dupe-keys": "error", + "no-duplicate-case": "error", + "no-duplicate-imports": "off", + "no-empty-character-class": "error", + "no-empty-pattern": "error", + "no-ex-assign": "error", + "no-fallthrough": "error", + "no-func-assign": "error", + "no-import-assign": "error", + "no-inline-comments": "off", + "no-inner-declarations": "error", + "no-invalid-regexp": "error", + "no-irregular-whitespace": "error", + "no-loss-of-precision": "error", + "no-magic-numbers": "off", + "no-misleading-character-class": "error", + "no-new-native-nonconstructor": "error", + "no-obj-calls": "error", + "no-promise-executor-return": "error", + "no-prototype-builtins": "error", + "no-self-assign": [ + "error", + { + "props": false + } + ], + "no-self-compare": "error", + "no-setter-return": "error", + "no-sparse-arrays": "error", + "no-template-curly-in-string": "error", + "no-ternary": "off", + "no-this-before-super": "error", + "no-unassigned-vars": "error", + "no-unexpected-multiline": "error", + "no-unsafe-finally": "error", + "no-unsafe-negation": "error", + "no-unsafe-optional-chaining": [ + "error", + { + "disallowArithmeticOperators": true + } + ], + "no-unused-private-class-members": "error", + "no-unused-vars": [ + "error", + { + "args": "after-used", + "argsIgnorePattern": "[iI]gnored", + "caughtErrors": "all", + "caughtErrorsIgnorePattern": "[iI]gnored", + "ignoreRestSiblings": false, + "vars": "all", + "varsIgnorePattern": "[iI]gnored" + } + ], + "no-useless-backreference": "error", + "use-isnan": "error", + "valid-typeof": [ + "error", + { + "requireStringLiterals": true + } + ], + "accessor-pairs": [ + "error", + { + "setWithoutGet": true, + "getWithoutSet": false, + "enforceForClassMembers": true + } + ], + "arrow-body-style": ["error", "always"], + "block-scoped-var": "error", + "class-methods-use-this": "error", + "complexity": [ + "error", + { + "max": 10 + } + ], + "curly": "error", + "capitalized-comments": "off", + "default-case": [ + "error", + { + "commentPattern": "^skip\\sdefault" + } + ], + "default-case-last": "error", + "default-param-last": "error", + "eqeqeq": ["error", "always"], + "func-names": "off", + "func-style": [ + "error", + "expression", + { + "allowArrowFunctions": true + } + ], + "getter-return": [ + "error", + { + "allowImplicit": false + } + ], + "grouped-accessor-pairs": ["error", "getBeforeSet"], + "guard-for-in": "error", + "id-length": [ + "error", + { + "max": 50, + "properties": "always", + "exceptions": [] + } + ], + "init-declarations": "off", + "max-classes-per-file": ["error", 1], + "max-depth": ["error", 2], + "max-lines": "off", + "max-lines-per-function": [ + "error", + { + "max": 100, + "skipBlankLines": true, + "skipComments": true, + "IIFEs": true + } + ], + "max-nested-callbacks": ["error", 3], + "max-params": ["error", 4], + "max-statements": ["error", 20], + "new-cap": [ + "error", + { + "newIsCap": true, + "newIsCapExceptions": [], + "capIsNew": false, + "capIsNewExceptions": [], + "properties": true + } + ], + "no-alert": "error", + "no-array-constructor": "error", + "no-bitwise": "error", + "no-caller": "error", + "no-case-declarations": "error", + "no-console": "error", + "no-continue": "error", + "no-delete-var": "error", + "no-div-regex": "error", + "no-else-return": [ + "error", + { + "allowElseIf": false + } + ], + "no-empty": [ + "error", + { + "allowEmptyCatch": true + } + ], + "no-empty-function": "error", + "no-eq-null": "error", + "no-empty-static-block": "error", + "no-eval": "error", + "no-extend-native": "error", + "no-extra-bind": "error", + "no-extra-boolean-cast": "error", + "no-extra-label": "error", + "no-global-assign": [ + "error", + { + "exceptions": [] + } + ], + "no-implicit-coercion": "error", + "no-iterator": "error", + "no-label-var": "error", + "no-labels": "error", + "no-lone-blocks": "error", + "no-lonely-if": "error", + "no-loop-func": "error", + "no-multi-assign": "error", + "no-multi-str": "error", + "no-negated-condition": "error", + "no-nested-ternary": "error", + "no-new": "error", + "no-new-func": "error", + "no-new-wrappers": "error", + "no-nonoctal-decimal-escape": "error", + "no-object-constructor": "error", + "no-param-reassign": "error", + "no-plusplus": "error", + "no-proto": "error", + "no-redeclare": "error", + "no-regex-spaces": "error", + "no-restricted-globals": [ + "error", + { + "name": "event", + "message": "Use local parameter instead." + }, + { + "name": "fdescribe", + "message": "Do not commit fdescribe. Use describe instead." + }, + { + "name": "isFinite", + "message": "Use Number.isFinite instead." + }, + { + "name": "isNaN", + "message": "Use Number.isNaN instead" + } + ], + "no-restricted-imports": "error", + "no-return-assign": "error", + "no-script-url": "error", + "no-sequences": "error", + "no-shadow-restricted-names": "error", + "no-throw-literal": "error", + "no-undef": "error", + "no-undefined": "error", + "no-unneeded-ternary": [ + "error", + { + "defaultAssignment": false + } + ], + "no-unreachable": "error", + "no-unused-expressions": [ + "error", + { + "allowShortCircuit": false, + "allowTernary": false, + "allowTaggedTemplates": false + } + ], + "no-unused-labels": "error", + "no-useless-call": "error", + "no-useless-catch": "error", + "no-useless-computed-key": "error", + "no-useless-concat": "error", + "no-useless-constructor": "error", + "no-useless-escape": "error", + "no-useless-rename": [ + "error", + { + "ignoreDestructuring": false, + "ignoreImport": false, + "ignoreExport": false + } + ], + "no-useless-return": "error", + "no-var": "error", + "no-void": "error", + "no-warning-comments": "off", + "no-with": "error", + "operator-assignment": ["error", "never"], + "prefer-destructuring": [ + "error", + { + "VariableDeclarator": { + "array": false, + "object": true + }, + "AssignmentExpression": { + "array": true, + "object": true + } + }, + { + "enforceForRenamedProperties": false + } + ], + "prefer-exponentiation-operator": "error", + "prefer-numeric-literals": "error", + "prefer-object-has-own": "off", + "prefer-object-spread": "error", + "prefer-promise-reject-errors": [ + "error", + { + "allowEmptyReject": true + } + ], + "prefer-rest-params": "error", + "prefer-spread": "error", + "prefer-template": "error", + "preserve-caught-error": [ + "error", + { + "requireCatchParameter": false + } + ], + "radix": "error", + "require-await": "error", + "require-yield": "error", + "sort-imports": "off", + "sort-keys": "off", + "sort-vars": "off", + "symbol-description": "error", + "unicode-bom": "off", + "vars-on-top": "error", + "yoda": "error" + } +} diff --git a/eslint-configs/eslint-config-seekingalpha-base/rules/eslint/oxlint-disabled.js b/eslint-configs/eslint-config-seekingalpha-base/rules/eslint/oxlint-disabled.js new file mode 100644 index 00000000..57d2658d --- /dev/null +++ b/eslint-configs/eslint-config-seekingalpha-base/rules/eslint/oxlint-disabled.js @@ -0,0 +1,167 @@ +export const ESLintDisabled = { + 'array-callback-return': 'off', + 'constructor-super': 'off', + 'for-direction': 'off', + 'no-async-promise-executor': 'off', + 'no-await-in-loop': 'off', + 'no-class-assign': 'off', + 'no-compare-neg-zero': 'off', + 'no-cond-assign': 'off', + 'no-const-assign': 'off', + 'no-constant-binary-expression': 'off', + 'no-constant-condition': 'off', + 'no-constructor-return': 'off', + 'no-control-regex': 'off', + 'no-debugger': 'off', + 'no-dupe-class-members': 'off', + 'no-dupe-else-if': 'off', + 'no-dupe-keys': 'off', + 'no-duplicate-case': 'off', + 'no-duplicate-imports': 'off', + 'no-empty-character-class': 'off', + 'no-empty-pattern': 'off', + 'no-ex-assign': 'off', + 'no-fallthrough': 'off', + 'no-func-assign': 'off', + 'no-import-assign': 'off', + 'no-inline-comments': 'off', + 'no-inner-declarations': 'off', + 'no-invalid-regexp': 'off', + 'no-irregular-whitespace': 'off', + 'no-loss-of-precision': 'off', + 'no-magic-numbers': 'off', + 'no-misleading-character-class': 'off', + 'no-new-native-nonconstructor': 'off', + 'no-obj-calls': 'off', + 'no-promise-executor-return': 'off', + 'no-prototype-builtins': 'off', + 'no-self-assign': 'off', + 'no-self-compare': 'off', + 'no-setter-return': 'off', + 'no-sparse-arrays': 'off', + 'no-template-curly-in-string': 'off', + 'no-ternary': 'off', + 'no-this-before-super': 'off', + 'no-unassigned-vars': 'off', + 'no-unexpected-multiline': 'off', + 'no-unsafe-finally': 'off', + 'no-unsafe-negation': 'off', + 'no-unsafe-optional-chaining': 'off', + 'no-unused-private-class-members': 'off', + 'no-unused-vars': 'off', + 'no-useless-backreference': 'off', + 'use-isnan': 'off', + 'valid-typeof': 'off', + 'accessor-pairs': 'off', + 'arrow-body-style': 'off', + 'block-scoped-var': 'off', + 'capitalized-comments': 'off', + 'class-methods-use-this': 'off', + complexity: 'off', + curly: 'off', + 'default-case': 'off', + 'default-case-last': 'off', + 'default-param-last': 'off', + eqeqeq: 'off', + 'func-names': 'off', + 'func-style': 'off', + 'getter-return': 'off', + 'grouped-accessor-pairs': 'off', + 'guard-for-in': 'off', + 'id-length': 'off', + 'init-declarations': 'off', + 'max-classes-per-file': 'off', + 'max-depth': 'off', + 'max-lines': 'off', + 'max-lines-per-function': 'off', + 'max-nested-callbacks': 'off', + 'max-params': 'off', + 'max-statements': 'off', + 'new-cap': 'off', + 'no-alert': 'off', + 'no-array-constructor': 'off', + 'no-bitwise': 'off', + 'no-caller': 'off', + 'no-case-declarations': 'off', + 'no-console': 'off', + 'no-continue': 'off', + 'no-delete-var': 'off', + 'no-div-regex': 'off', + 'no-else-return': 'off', + 'no-empty': 'off', + 'no-empty-function': 'off', + 'no-eq-null': 'off', + 'no-empty-static-block': 'off', + 'no-eval': 'off', + 'no-extend-native': 'off', + 'no-extra-bind': 'off', + 'no-extra-boolean-cast': 'off', + 'no-extra-label': 'off', + 'no-global-assign': 'off', + 'no-implicit-coercion': 'off', + 'no-iterator': 'off', + 'no-label-var': 'off', + 'no-labels': 'off', + 'no-lone-blocks': 'off', + 'no-lonely-if': 'off', + 'no-loop-func': 'off', + 'no-multi-assign': 'off', + 'no-multi-str': 'off', + 'no-negated-condition': 'off', + 'no-nested-ternary': 'off', + 'no-new': 'off', + 'no-new-func': 'off', + 'no-new-wrappers': 'off', + 'no-nonoctal-decimal-escape': 'off', + 'no-object-constructor': 'off', + 'no-param-reassign': 'off', + 'no-plusplus': 'off', + 'no-proto': 'off', + 'no-redeclare': 'off', + 'no-regex-spaces': 'off', + 'no-restricted-globals': 'off', + 'no-restricted-imports': 'off', + 'no-return-assign': 'off', + 'no-script-url': 'off', + 'no-sequences': 'off', + 'no-shadow-restricted-names': 'off', + 'no-throw-literal': 'off', + 'no-undefined': 'off', + 'no-unneeded-ternary': 'off', + 'no-unreachable': 'off', + 'no-unused-expressions': 'off', + 'no-unused-labels': 'off', + 'no-useless-call': 'off', + 'no-useless-catch': 'off', + 'no-useless-computed-key': 'off', + 'no-useless-concat': 'off', + 'no-useless-constructor': 'off', + 'no-useless-escape': 'off', + 'no-useless-rename': 'off', + 'no-useless-return': 'off', + 'no-var': 'off', + 'no-void': 'off', + 'no-warning-comments': 'off', + 'no-with': 'off', + 'operator-assignment': 'off', + 'prefer-destructuring': 'off', + 'prefer-exponentiation-operator': 'off', + 'prefer-numeric-literals': 'off', + 'prefer-object-has-own': 'off', + 'prefer-object-spread': 'off', + 'prefer-promise-reject-errors': 'off', + 'prefer-rest-params': 'off', + 'prefer-spread': 'off', + 'prefer-template': 'off', + 'preserve-caught-error': 'off', + radix: 'off', + 'require-await': 'off', + 'require-yield': 'off', + 'sort-imports': 'off', + 'sort-keys': 'off', + 'sort-vars': 'off', + 'symbol-description': 'off', + 'unicode-bom': 'off', + 'vars-on-top': 'off', + yoda: 'off', +}; From cd5a4c0c5a13cb8dbc69ed3b827c49501fdaf68c Mon Sep 17 00:00:00 2001 From: Aleksey Kovalevsky Date: Mon, 26 Jan 2026 17:50:12 +0200 Subject: [PATCH 2/2] Update oxlint-config.json --- .../eslint-config-seekingalpha-base/oxlint-config.json | 1 + 1 file changed, 1 insertion(+) diff --git a/eslint-configs/eslint-config-seekingalpha-base/oxlint-config.json b/eslint-configs/eslint-config-seekingalpha-base/oxlint-config.json index 4a106bd1..a9132db0 100644 --- a/eslint-configs/eslint-config-seekingalpha-base/oxlint-config.json +++ b/eslint-configs/eslint-config-seekingalpha-base/oxlint-config.json @@ -1,5 +1,6 @@ { "$schema": "./node_modules/oxlint/configuration_schema.json", + "plugins": ["promise"], "extends": [ "./rules/eslint/oxlint-config.json", "./rules/eslint-plugin-promise/oxlint-config.json"