diff --git a/eslint-configs/eslint-config-seekingalpha-base/CHANGELOG.md b/eslint-configs/eslint-config-seekingalpha-base/CHANGELOG.md index 247d7405..a631b3f7 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.33.0 - 2025-12-20 + +- [new] expose eslint OXC config + ## 11.32.0 - 2025-12-13 - [deps] update `eslint` to version `9.39.2` diff --git a/eslint-configs/eslint-config-seekingalpha-base/oxc.js b/eslint-configs/eslint-config-seekingalpha-base/oxc.js new file mode 100644 index 00000000..9287b3f0 --- /dev/null +++ b/eslint-configs/eslint-config-seekingalpha-base/oxc.js @@ -0,0 +1,179 @@ +import config from './index.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', +}; + +const oxcConfig = { + ...config, + rules: { + ...config.rules, + ...OxcRules, + }, +}; + +export default oxcConfig; diff --git a/eslint-configs/eslint-config-seekingalpha-base/package.json b/eslint-configs/eslint-config-seekingalpha-base/package.json index fdcdfb18..66be9a2c 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.32.0", + "version": "11.33.0", "description": "SeekingAlpha's sharable base ESLint config", "main": "index.js", "type": "module", diff --git a/package.json b/package.json index cf52fe8e..0f894daa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "seekingalpha-javascript-style", - "version": "9.77.0", + "version": "9.78.0", "description": "Set of linting rules, guides and best practices for best Javascript code", "main": "index.js", "type": "module",