Skip to content

Commit a24b58c

Browse files
release: v0.8.0 (#144)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Boshen <Boshen@users.noreply.github.com>
1 parent 0d34fd0 commit a24b58c

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-oxlint",
3-
"version": "0.7.2",
3+
"version": "0.8.0",
44
"description": "Turn off all rules already supported by oxlint",
55
"type": "module",
66
"packageManager": "pnpm@9.7.1",

src/rules-by-category.ts

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ const styleRules = {
145145
'unicorn/filename-case': 'off',
146146
'unicorn/no-await-expression-member': 'off',
147147
'unicorn/no-unreadable-array-destructuring': 'off',
148-
'unicorn/prefer-array-flat-map': 'off',
149148
'unicorn/prefer-includes': 'off',
150149
'unicorn/prefer-logical-operator-over-ternary': 'off',
151150
'unicorn/prefer-modern-dom-apis': 'off',
@@ -246,11 +245,9 @@ const correctnessRules = {
246245
'jsdoc/require-property-type': 'off',
247246
'jsdoc/require-yields': 'off',
248247
'jsx-a11y/alt-text': 'off',
249-
'jsx-a11y/anchor-has-content': 'off',
250248
'jsx-a11y/anchor-is-valid': 'off',
251249
'jsx-a11y/aria-activedescendant-has-tabindex': 'off',
252250
'jsx-a11y/aria-role': 'off',
253-
'jsx-a11y/aria-unsupported-elements': 'off',
254251
'jsx-a11y/autocomplete-valid': 'off',
255252
'jsx-a11y/click-events-have-key-events': 'off',
256253
'jsx-a11y/heading-has-content': 'off',
@@ -262,12 +259,9 @@ const correctnessRules = {
262259
'jsx-a11y/mouse-events-have-key-events': 'off',
263260
'jsx-a11y/no-access-key': 'off',
264261
'jsx-a11y/no-distracting-elements': 'off',
265-
'jsx-a11y/no-redundant-roles': 'off',
266262
'jsx-a11y/prefer-tag-over-role': 'off',
267263
'jsx-a11y/role-has-required-aria-props': 'off',
268264
'jsx-a11y/role-supports-aria-props': 'off',
269-
'jsx-a11y/scope': 'off',
270-
'jsx-a11y/tabindex-no-positive': 'off',
271265
'nextjs/google-font-display': 'off',
272266
'nextjs/google-font-preconnect': 'off',
273267
'nextjs/inline-script-id': 'off',
@@ -349,6 +343,7 @@ const fixRules = {
349343
'jest/prefer-to-be': 'off',
350344
'jest/prefer-to-have-length': 'off',
351345
'jest/prefer-todo': 'off',
346+
'jsx-a11y/aria-unsupported-elements': 'off',
352347
'jsx-a11y/no-aria-hidden-on-focusable': 'off',
353348
'jsx-a11y/no-autofocus': 'off',
354349
'promise/no-new-statics': 'off',
@@ -372,9 +367,11 @@ const fixRules = {
372367
'unicorn/no-zero-fractions': 'off',
373368
'unicorn/number-literal-case': 'off',
374369
'unicorn/numeric-separators-style': 'off',
370+
'unicorn/prefer-array-flat-map': 'off',
375371
'unicorn/prefer-code-point': 'off',
376372
'unicorn/prefer-dom-node-append': 'off',
377373
'unicorn/prefer-node-protocol': 'off',
374+
'unicorn/prefer-optional-catch-binding': 'off',
378375
'unicorn/prefer-prototype-methods': 'off',
379376
'unicorn/prefer-string-replace-all': 'off',
380377
'unicorn/prefer-string-starts-ends-with': 'off',
@@ -391,12 +388,15 @@ const pendingRules = {
391388
'no-extra-boolean-cast': 'off',
392389
'no-fallthrough': 'off',
393390
'no-var': 'off',
391+
'jsx-a11y/no-redundant-roles': 'off',
392+
'jsx-a11y/scope': 'off',
393+
'jsx-a11y/tabindex-no-positive': 'off',
394+
'react/jsx-props-no-spread-multi': 'off',
394395
'unicorn/prefer-array-flat': 'off',
395396
'unicorn/prefer-array-some': 'off',
396397
'unicorn/prefer-date-now': 'off',
397398
'unicorn/prefer-modern-math-apis': 'off',
398399
'unicorn/prefer-native-coercion-functions': 'off',
399-
'unicorn/prefer-optional-catch-binding': 'off',
400400
'unicorn/prefer-regexp-test': 'off',
401401
'unicorn/prefer-set-size': 'off',
402402
'unicorn/prefer-string-slice': 'off',
@@ -430,6 +430,10 @@ const dangerousSuggestionRules = {
430430
'no-unused-vars': 'off',
431431
};
432432

433+
const conditionalSuggestionRules = {
434+
'jsx-a11y/anchor-has-content': 'off',
435+
};
436+
433437
export {
434438
pedanticRules,
435439
nurseryRules,
@@ -446,4 +450,5 @@ export {
446450
fixDangerousRules,
447451
suspiciousRules,
448452
dangerousSuggestionRules,
453+
conditionalSuggestionRules,
449454
};

src/rules-by-scope.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ const reactRules = {
265265
'react/jsx-no-target-blank': 'off',
266266
'react/jsx-no-undef': 'off',
267267
'react/jsx-no-useless-fragment': 'off',
268+
'react/jsx-props-no-spread-multi': 'off',
268269
'react/no-children-prop': 'off',
269270
'react/no-danger': 'off',
270271
'react/no-direct-mutation-state': 'off',

0 commit comments

Comments
 (0)