diff --git a/package.json b/package.json index 555fedf..a709d69 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-oxlint", - "version": "0.9.0", + "version": "0.9.1", "description": "Turn off all rules already supported by oxlint", "type": "module", "packageManager": "pnpm@9.8.0", diff --git a/src/rules-by-category.ts b/src/rules-by-category.ts index 38b3786..e07ba2a 100644 --- a/src/rules-by-category.ts +++ b/src/rules-by-category.ts @@ -150,6 +150,7 @@ const styleRules = { 'unicorn/prefer-logical-operator-over-ternary': 'off', 'unicorn/prefer-modern-dom-apis': 'off', 'unicorn/prefer-reflect-apply': 'off', + 'vitest/prefer-each': 'off', }; const conditionalFixRules = { @@ -170,13 +171,16 @@ const conditionalFixRules = { '@typescript-eslint/prefer-function-type': 'off', 'unicorn/explicit-length-check': 'off', 'unicorn/no-nested-ternary': 'off', + 'unicorn/no-null': 'off', 'unicorn/no-single-promise-in-promise-methods': 'off', 'unicorn/no-unnecessary-await': 'off', 'unicorn/no-useless-fallback-in-spread': 'off', 'unicorn/no-useless-spread': 'off', + 'unicorn/prefer-array-flat': 'off', 'unicorn/prefer-dom-node-text-content': 'off', 'unicorn/prefer-query-selector': 'off', 'unicorn/prefer-spread': 'off', + 'unicorn/require-array-join-separator': 'off', }; const dangerousFixRules = { @@ -349,8 +353,10 @@ const fixRules = { 'jsx-a11y/aria-unsupported-elements': 'off', 'jsx-a11y/no-aria-hidden-on-focusable': 'off', 'jsx-a11y/no-autofocus': 'off', + 'jsx-a11y/no-redundant-roles': 'off', 'promise/no-new-statics': 'off', 'react/jsx-boolean-value': 'off', + 'react/jsx-props-no-spread-multi': 'off', '@typescript-eslint/array-type': 'off', '@typescript-eslint/ban-tslint-comment': 'off', '@typescript-eslint/consistent-type-definitions': 'off', @@ -365,23 +371,27 @@ const fixRules = { 'unicorn/no-hex-escape': 'off', 'unicorn/no-instanceof-array': 'off', 'unicorn/no-length-as-slice-end': 'off', - 'unicorn/no-null': 'off', 'unicorn/no-useless-promise-resolve-reject': 'off', 'unicorn/no-useless-undefined': 'off', 'unicorn/no-zero-fractions': 'off', 'unicorn/number-literal-case': 'off', 'unicorn/numeric-separators-style': 'off', 'unicorn/prefer-array-flat-map': 'off', + 'unicorn/prefer-array-some': 'off', 'unicorn/prefer-code-point': 'off', 'unicorn/prefer-dom-node-append': 'off', 'unicorn/prefer-node-protocol': 'off', 'unicorn/prefer-optional-catch-binding': 'off', 'unicorn/prefer-prototype-methods': 'off', + 'unicorn/prefer-regexp-test': 'off', + 'unicorn/prefer-set-size': 'off', 'unicorn/prefer-string-replace-all': 'off', + 'unicorn/prefer-string-slice': 'off', 'unicorn/prefer-string-starts-ends-with': 'off', 'unicorn/prefer-string-trim-start-end': 'off', 'unicorn/require-number-to-fixed-digits-argument': 'off', 'unicorn/switch-case-braces': 'off', + 'unicorn/text-encoding-identifier-case': 'off', 'vitest/no-import-node-test': 'off', 'vitest/prefer-to-be-falsy': 'off', 'vitest/prefer-to-be-truthy': 'off', @@ -392,22 +402,14 @@ const pendingRules = { 'no-extra-boolean-cast': 'off', 'no-fallthrough': 'off', 'no-var': 'off', - 'jsx-a11y/no-redundant-roles': 'off', 'jsx-a11y/scope': 'off', 'jsx-a11y/tabindex-no-positive': 'off', - 'react/jsx-props-no-spread-multi': 'off', 'unicorn/consistent-function-scoping': 'off', - 'unicorn/prefer-array-flat': 'off', - 'unicorn/prefer-array-some': 'off', 'unicorn/prefer-date-now': 'off', 'unicorn/prefer-modern-math-apis': 'off', 'unicorn/prefer-native-coercion-functions': 'off', - 'unicorn/prefer-regexp-test': 'off', - 'unicorn/prefer-set-size': 'off', - 'unicorn/prefer-string-slice': 'off', + 'unicorn/prefer-structured-clone': 'off', 'unicorn/prefer-type-error': 'off', - 'unicorn/require-array-join-separator': 'off', - 'unicorn/text-encoding-identifier-case': 'off', 'unicorn/throw-new-error': 'off', }; diff --git a/src/rules-by-scope.ts b/src/rules-by-scope.ts index 307db16..a758d58 100644 --- a/src/rules-by-scope.ts +++ b/src/rules-by-scope.ts @@ -414,6 +414,7 @@ const unicornRules = { 'unicorn/prefer-string-slice': 'off', 'unicorn/prefer-string-starts-ends-with': 'off', 'unicorn/prefer-string-trim-start-end': 'off', + 'unicorn/prefer-structured-clone': 'off', 'unicorn/prefer-type-error': 'off', 'unicorn/require-array-join-separator': 'off', 'unicorn/require-number-to-fixed-digits-argument': 'off', @@ -425,6 +426,7 @@ const unicornRules = { const vitestRules = { 'vitest/no-conditional-tests': 'off', 'vitest/no-import-node-test': 'off', + 'vitest/prefer-each': 'off', 'vitest/prefer-to-be-falsy': 'off', 'vitest/prefer-to-be-truthy': 'off', 'vitest/require-local-test-context-for-concurrent-snapshots': 'off',