From b4562e38c3eaf9d9281279986f4c97f0d1523bc9 Mon Sep 17 00:00:00 2001 From: oxc-bot Date: Mon, 30 Dec 2024 16:13:02 +0800 Subject: [PATCH] release: v0.15.4 (#293) Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Boshen --- package.json | 4 +- pnpm-lock.yaml | 74 +++++++++++++------------- src/__snapshots__/configs.spec.ts.snap | 37 ++++++++++--- src/generated/rules-by-category.ts | 10 +++- src/generated/rules-by-scope.ts | 10 +++- 5 files changed, 86 insertions(+), 49 deletions(-) diff --git a/package.json b/package.json index 4f6cb3c..8df760d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-oxlint", - "version": "0.15.3", + "version": "0.15.4", "description": "Turn off all rules already supported by oxlint", "type": "module", "types": "./dist/index.d.ts", @@ -66,7 +66,7 @@ "husky": "^9.1.6", "lint-staged": "^15.2.10", "memfs": "^4.14.0", - "oxlint": "^0.15.3", + "oxlint": "^0.15.4", "prettier": "^3.3.3", "scule": "^1.3.0", "shelljs": "^0.8.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6bbe67a..b686050 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -52,8 +52,8 @@ importers: specifier: ^4.14.0 version: 4.14.1 oxlint: - specifier: ^0.15.3 - version: 0.15.3 + specifier: ^0.15.4 + version: 0.15.4 prettier: specifier: ^3.3.3 version: 3.4.2 @@ -609,43 +609,43 @@ packages: '@oxc-node/core@0.0.15': resolution: {integrity: sha512-g8ip2dUKtxfZ5IqROmZbHz7OY/+GOG4dnhqgQezlYXCufUcWA+0GM+FqI0ZzA50njUFKCTAHXRiN+BqJPy4trA==} - '@oxlint/darwin-arm64@0.15.3': - resolution: {integrity: sha512-6isglmWrI3XxNR+V2KDURRg8bo3JpoTGUs1BqEuwZISz0tIEU5kVZ3Zba4vNz6Rp79lfA18ueYTB5NKonWaYOg==} + '@oxlint/darwin-arm64@0.15.4': + resolution: {integrity: sha512-auE1N8ph15Xq7XtSzi3Jxv2oCiWtOBNcbM1I8wrCKWBHHeAZmWlkUpPAOpAeyGuKJBHw8Sz4BXQhV3GD7hu+1A==} cpu: [arm64] os: [darwin] - '@oxlint/darwin-x64@0.15.3': - resolution: {integrity: sha512-wKn+eITIIpcXPU7hiWVHezAKONT/Vz6q9TUZFiYQFytF7sGAt0APZshe5tbjGTZ8XTR6wQ5wDETwdornHXCNFg==} + '@oxlint/darwin-x64@0.15.4': + resolution: {integrity: sha512-o66/bAL+rLrAu89e12Ep6u5xKTyadu4ozFW1vAHYQayd7ywMosOsv/Hg8WM0EnwH/sRpV4u6qdWQKsIjr2UOXw==} cpu: [x64] os: [darwin] - '@oxlint/linux-arm64-gnu@0.15.3': - resolution: {integrity: sha512-AZUOtb3OfK8xDZJfk60AwgTKEpa6zJdvjrwuk8Qqz4tPqLJpk4KSJmfNMzbYzy689m27ur+ix1p/7JAxwvckRg==} + '@oxlint/linux-arm64-gnu@0.15.4': + resolution: {integrity: sha512-xQbojI9hMKhEM/R19flpZs1m7YCcPM8/8taYPRcHOheU/wZOdfyBWjSd5IfgcNBX1xKsX52dAg+lMOyrPH98Nw==} cpu: [arm64] os: [linux] - '@oxlint/linux-arm64-musl@0.15.3': - resolution: {integrity: sha512-HIeyrgE11KFkSRpVjBRWOux78OITDqlOiC8plC2RDrLvSj205MaA1GYYyIMMv/FuyWdGMOAHOetn5vWbyJJctQ==} + '@oxlint/linux-arm64-musl@0.15.4': + resolution: {integrity: sha512-wZoACdMUi8oKha1KzUmz57eWY93fcjf7YtnQvGtiOYjj0rziZnAoTbLxpYsdb9+1aGKbAY8grHlsgKjVmFAU5g==} cpu: [arm64] os: [linux] - '@oxlint/linux-x64-gnu@0.15.3': - resolution: {integrity: sha512-cDHQaDCpuqFFYTohM+xw4120hzBSWaOVIZqq0ROUEX/qi+nnR9XMKE/fJf8xiHJznFlV6ANsiMLY939uur8OKw==} + '@oxlint/linux-x64-gnu@0.15.4': + resolution: {integrity: sha512-gMydrqLGRoRpY+nqjGBCenymKjqhcIuix6h1yMQ+IXiS2Togmda/vBRAje5rVZUehj8wt5NK2O2lt0C/pZkvJQ==} cpu: [x64] os: [linux] - '@oxlint/linux-x64-musl@0.15.3': - resolution: {integrity: sha512-6PVIi0XXhlpFoBh0k2fP9wioU8MiktkqnYHxOv7EM7HggjAzpRMJqQmgwWcww3RU5R7T4wnZNzrUPPqI7+Ejmw==} + '@oxlint/linux-x64-musl@0.15.4': + resolution: {integrity: sha512-2sfJs/IN4xTo2U62YlvcwsKJNntowxd4TXZMsx42mT1NhovGJXHBpFOq5a9WvZkeQUVR5sUbqr/UgGzGxG0+gA==} cpu: [x64] os: [linux] - '@oxlint/win32-arm64@0.15.3': - resolution: {integrity: sha512-CAvFXTZ6pwHHMHTmRgev/QcS4vD2UeH4e68DxgslPrib6ivTGz2EvtVbrVuVsuS27WQuKTy06e9RW339dk4pHg==} + '@oxlint/win32-arm64@0.15.4': + resolution: {integrity: sha512-NNK4hLQoyPlOkdFB0fCGrnKERwor+KSVLqW354p+pC+2IZfVLBUJi6k5E7sFoBi/32+s+5oqJ6zBJok2xLM4+Q==} cpu: [arm64] os: [win32] - '@oxlint/win32-x64@0.15.3': - resolution: {integrity: sha512-sXBPSxDoOELlkUbjXfXqlfig3jw67ylrZn+URke/TZMknY1uNEsFTg9+89t8km65eC8SZSE9rnZVyjK8iaEJXA==} + '@oxlint/win32-x64@0.15.4': + resolution: {integrity: sha512-28d0qB+pUrCfZl79PWPukncE+csAN4QrjXhE04LE47wr5nydPP3B57mlaq9Ui6FJ/PsDpvlX1dZsfrmLKN15bQ==} cpu: [x64] os: [win32] @@ -1664,8 +1664,8 @@ packages: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} - oxlint@0.15.3: - resolution: {integrity: sha512-kOAt0EC/oluYTcfRu6yg8+QkYMq6uibvEW+hx5nKsX320+VYEw1ChNBRcfSLCtJwA+k6X/CGxk2MN2Nddw70sQ==} + oxlint@0.15.4: + resolution: {integrity: sha512-73z4T/GEiBSzcCbAoTkZyAWTkBLSFXxESBSLYl1O+h3kZxdtUYO6z+TVkHegrt5ApriCb4Y2GvATsHPfGBcoIw==} engines: {node: '>=14.*'} hasBin: true @@ -2609,28 +2609,28 @@ snapshots: '@oxc-node/core-win32-ia32-msvc': 0.0.15 '@oxc-node/core-win32-x64-msvc': 0.0.15 - '@oxlint/darwin-arm64@0.15.3': + '@oxlint/darwin-arm64@0.15.4': optional: true - '@oxlint/darwin-x64@0.15.3': + '@oxlint/darwin-x64@0.15.4': optional: true - '@oxlint/linux-arm64-gnu@0.15.3': + '@oxlint/linux-arm64-gnu@0.15.4': optional: true - '@oxlint/linux-arm64-musl@0.15.3': + '@oxlint/linux-arm64-musl@0.15.4': optional: true - '@oxlint/linux-x64-gnu@0.15.3': + '@oxlint/linux-x64-gnu@0.15.4': optional: true - '@oxlint/linux-x64-musl@0.15.3': + '@oxlint/linux-x64-musl@0.15.4': optional: true - '@oxlint/win32-arm64@0.15.3': + '@oxlint/win32-arm64@0.15.4': optional: true - '@oxlint/win32-x64@0.15.3': + '@oxlint/win32-x64@0.15.4': optional: true '@pkgjs/parseargs@0.11.0': @@ -3701,16 +3701,16 @@ snapshots: type-check: 0.4.0 word-wrap: 1.2.5 - oxlint@0.15.3: + oxlint@0.15.4: optionalDependencies: - '@oxlint/darwin-arm64': 0.15.3 - '@oxlint/darwin-x64': 0.15.3 - '@oxlint/linux-arm64-gnu': 0.15.3 - '@oxlint/linux-arm64-musl': 0.15.3 - '@oxlint/linux-x64-gnu': 0.15.3 - '@oxlint/linux-x64-musl': 0.15.3 - '@oxlint/win32-arm64': 0.15.3 - '@oxlint/win32-x64': 0.15.3 + '@oxlint/darwin-arm64': 0.15.4 + '@oxlint/darwin-x64': 0.15.4 + '@oxlint/linux-arm64-gnu': 0.15.4 + '@oxlint/linux-arm64-musl': 0.15.4 + '@oxlint/linux-x64-gnu': 0.15.4 + '@oxlint/linux-x64-musl': 0.15.4 + '@oxlint/win32-arm64': 0.15.4 + '@oxlint/win32-x64': 0.15.4 p-limit@2.3.0: dependencies: diff --git a/src/__snapshots__/configs.spec.ts.snap b/src/__snapshots__/configs.spec.ts.snap index b5774c5..742a653 100644 --- a/src/__snapshots__/configs.spec.ts.snap +++ b/src/__snapshots__/configs.spec.ts.snap @@ -256,9 +256,6 @@ exports[`contains all the oxlint rules 1`] = ` "import/max-dependencies": [ 0, ], - "import/named": [ - 0, - ], "import/namespace": [ 0, ], @@ -565,6 +562,9 @@ exports[`contains all the oxlint rules 1`] = ` "jsx-a11y/no-distracting-elements": [ 0, ], + "jsx-a11y/no-noninteractive-tabindex": [ + 0, + ], "jsx-a11y/no-redundant-roles": [ 0, ], @@ -731,6 +731,9 @@ exports[`contains all the oxlint rules 1`] = ` 0, {}, ], + "no-extra-label": [ + 0, + ], "no-fallthrough": [ 0, { @@ -777,15 +780,34 @@ exports[`contains all the oxlint rules 1`] = ` "no-label-var": [ 0, ], + "no-labels": [ + 0, + { + "allowLoop": false, + "allowSwitch": false, + }, + ], "no-loss-of-precision": [ 0, ], "no-magic-numbers": [ 0, ], + "no-multi-assign": [ + 0, + { + "ignoreNonDeclaration": false, + }, + ], "no-multi-str": [ 0, ], + "no-negated-condition": [ + 0, + ], + "no-nested-ternary": [ + 0, + ], "no-new": [ 0, ], @@ -954,6 +976,9 @@ exports[`contains all the oxlint rules 1`] = ` "prefer-object-has-own": [ 0, ], + "prefer-rest-params": [ + 0, + ], "prefer-spread": [ 0, ], @@ -1216,9 +1241,6 @@ exports[`contains all the oxlint rules 1`] = ` "unicorn/no-magic-array-flat-depth": [ 0, ], - "unicorn/no-negated-condition": [ - 0, - ], "unicorn/no-negation-in-equality-check": [ 0, ], @@ -1427,6 +1449,9 @@ exports[`contains all the oxlint rules 1`] = ` "requireStringLiterals": false, }, ], + "vars-on-top": [ + 0, + ], "vitest/consistent-test-it": [ 0, ], diff --git a/src/generated/rules-by-category.ts b/src/generated/rules-by-category.ts index 3e95913..1c3e8e6 100644 --- a/src/generated/rules-by-category.ts +++ b/src/generated/rules-by-category.ts @@ -11,6 +11,7 @@ const pedanticRules = { 'no-else-return': 'off', 'no-fallthrough': 'off', 'no-inner-declarations': 'off', + 'no-negated-condition': 'off', 'no-new-wrappers': 'off', 'no-object-constructor': 'off', 'no-prototype-builtins': 'off', @@ -48,7 +49,6 @@ const pedanticRules = { 'unicorn/no-hex-escape': 'off', 'unicorn/no-instanceof-array': 'off', 'unicorn/no-lonely-if': 'off', - 'unicorn/no-negated-condition': 'off', 'unicorn/no-negation-in-equality-check': 'off', 'unicorn/no-new-buffer': 'off', 'unicorn/no-object-as-default-parameter': 'off', @@ -151,9 +151,13 @@ const styleRules = { 'max-params': 'off', 'no-continue': 'off', 'no-duplicate-imports': 'off', + 'no-extra-label': 'off', 'no-label-var': 'off', + 'no-labels': 'off', 'no-magic-numbers': 'off', + 'no-multi-assign': 'off', 'no-multi-str': 'off', + 'no-nested-ternary': 'off', 'no-new-func': 'off', 'no-return-assign': 'off', 'no-script-url': 'off', @@ -162,9 +166,11 @@ const styleRules = { 'prefer-exponentiation-operator': 'off', 'prefer-numeric-literals': 'off', 'prefer-object-has-own': 'off', + 'prefer-rest-params': 'off', 'prefer-spread': 'off', 'sort-imports': 'off', 'sort-keys': 'off', + 'vars-on-top': 'off', yoda: 'off', 'import/first': 'off', 'import/no-named-default': 'off', @@ -319,7 +325,6 @@ const correctnessRules = { 'use-isnan': 'off', 'valid-typeof': 'off', 'import/default': 'off', - 'import/named': 'off', 'import/namespace': 'off', 'jest/expect-expect': 'off', 'jest/no-conditional-expect': 'off', @@ -361,6 +366,7 @@ const correctnessRules = { 'jsx-a11y/no-aria-hidden-on-focusable': 'off', 'jsx-a11y/no-autofocus': 'off', 'jsx-a11y/no-distracting-elements': 'off', + 'jsx-a11y/no-noninteractive-tabindex': 'off', 'jsx-a11y/no-redundant-roles': 'off', 'jsx-a11y/prefer-tag-over-role': 'off', 'jsx-a11y/role-has-required-aria-props': 'off', diff --git a/src/generated/rules-by-scope.ts b/src/generated/rules-by-scope.ts index 3c751d8..c0c0c79 100644 --- a/src/generated/rules-by-scope.ts +++ b/src/generated/rules-by-scope.ts @@ -48,6 +48,7 @@ const eslintRules = { 'no-ex-assign': 'off', 'no-extend-native': 'off', 'no-extra-boolean-cast': 'off', + 'no-extra-label': 'off', 'no-fallthrough': 'off', 'no-func-assign': 'off', 'no-global-assign': 'off', @@ -57,9 +58,13 @@ const eslintRules = { 'no-irregular-whitespace': 'off', 'no-iterator': 'off', 'no-label-var': 'off', + 'no-labels': 'off', 'no-loss-of-precision': 'off', 'no-magic-numbers': '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-native-nonconstructor': 'off', @@ -104,6 +109,7 @@ const eslintRules = { 'prefer-exponentiation-operator': 'off', 'prefer-numeric-literals': 'off', 'prefer-object-has-own': 'off', + 'prefer-rest-params': 'off', 'prefer-spread': 'off', radix: 'off', 'require-await': 'off', @@ -115,6 +121,7 @@ const eslintRules = { 'unicode-bom': 'off', 'use-isnan': 'off', 'valid-typeof': 'off', + 'vars-on-top': 'off', yoda: 'off', } as const; @@ -122,7 +129,6 @@ const importRules = { 'import/default': 'off', 'import/first': 'off', 'import/max-dependencies': 'off', - 'import/named': 'off', 'import/namespace': 'off', 'import/no-amd': 'off', 'import/no-commonjs': 'off', @@ -234,6 +240,7 @@ const jsxA11yRules = { 'jsx-a11y/no-aria-hidden-on-focusable': 'off', 'jsx-a11y/no-autofocus': 'off', 'jsx-a11y/no-distracting-elements': 'off', + 'jsx-a11y/no-noninteractive-tabindex': 'off', 'jsx-a11y/no-redundant-roles': 'off', 'jsx-a11y/prefer-tag-over-role': 'off', 'jsx-a11y/role-has-required-aria-props': 'off', @@ -407,7 +414,6 @@ const unicornRules = { 'unicorn/no-length-as-slice-end': 'off', 'unicorn/no-lonely-if': 'off', 'unicorn/no-magic-array-flat-depth': 'off', - 'unicorn/no-negated-condition': 'off', 'unicorn/no-negation-in-equality-check': 'off', 'unicorn/no-nested-ternary': 'off', 'unicorn/no-new-array': 'off',