From 5debb851587321e8bc693dca37af9cd37b04b01d Mon Sep 17 00:00:00 2001 From: oxc-bot Date: Wed, 27 Nov 2024 03:41:09 +0800 Subject: [PATCH] release: v0.13.2 (#260) Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action --------- Co-authored-by: Boshen Co-authored-by: Alexander S. --- package.json | 4 +- pnpm-lock.yaml | 74 +++++++++++++------------- src/__snapshots__/configs.spec.ts.snap | 19 +++++++ src/generated/rules-by-category.ts | 6 +++ src/generated/rules-by-scope.ts | 6 +++ 5 files changed, 70 insertions(+), 39 deletions(-) diff --git a/package.json b/package.json index 97dbb72..bce34e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-oxlint", - "version": "0.13.1", + "version": "0.13.2", "description": "Turn off all rules already supported by oxlint", "type": "module", "types": "./dist/index.d.ts", @@ -64,7 +64,7 @@ "husky": "^9.1.6", "lint-staged": "^15.2.10", "memfs": "^4.14.0", - "oxlint": "^0.13.1", + "oxlint": "^0.13.2", "prettier": "^3.3.3", "scule": "^1.3.0", "shelljs": "^0.8.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d308eb8..b086fbd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -49,8 +49,8 @@ importers: specifier: ^4.14.0 version: 4.14.0 oxlint: - specifier: ^0.13.1 - version: 0.13.1 + specifier: ^0.13.2 + version: 0.13.2 prettier: specifier: ^3.3.3 version: 3.3.3 @@ -462,43 +462,43 @@ packages: '@oxc-node/core@0.0.15': resolution: {integrity: sha512-g8ip2dUKtxfZ5IqROmZbHz7OY/+GOG4dnhqgQezlYXCufUcWA+0GM+FqI0ZzA50njUFKCTAHXRiN+BqJPy4trA==} - '@oxlint/darwin-arm64@0.13.1': - resolution: {integrity: sha512-r2lMzuOhEO1j4NQe/A7kBcziuHvx2PZzCz3ip1eI6zUrwKqRtHZF3e9EdU0M2VLVV+1Mt1rJIYqHo4lXC3TCdw==} + '@oxlint/darwin-arm64@0.13.2': + resolution: {integrity: sha512-Jbi2UX1xTFTpH/D6n15RzDSG/44oJ0FwrHWl96TsdD3PAOGxmm8LgcrsCU4d22TSN7ShDFB8y34MYplduRzhfA==} cpu: [arm64] os: [darwin] - '@oxlint/darwin-x64@0.13.1': - resolution: {integrity: sha512-kQa5MAOlBx9F5nBs1S5dk7ZUJ8wWKxPPQ2OvjZpqKCGQe5YlMEPWdTJK21SmNIf/V0WOUV3PIexZwVJ2kzuMrQ==} + '@oxlint/darwin-x64@0.13.2': + resolution: {integrity: sha512-ulA2vpNIM14VWJua6BjgX6l8nrjY8Un0uLqBLgELyDHMfpnC0HfrB2mR9PC9tRhb7+BEbgDLWTRs2aTV64eprw==} cpu: [x64] os: [darwin] - '@oxlint/linux-arm64-gnu@0.13.1': - resolution: {integrity: sha512-zrN/1LvHq+s8CBi1u59tR/xVC0rb9ONJAXXTwfnf2QM3lbCjFXi8sgFDcffL6KoMzVrZwwIK+qFnbl7daHaqvA==} + '@oxlint/linux-arm64-gnu@0.13.2': + resolution: {integrity: sha512-iwguvPnIx/yIMc2IrwLeRflEFwyn+gcsNR8le5aX5DvQfHiB3/3x5JxOVl7Nd93lLsOg8RyVr2E11CxV10rKWw==} cpu: [arm64] os: [linux] - '@oxlint/linux-arm64-musl@0.13.1': - resolution: {integrity: sha512-TWG/dCh6WBi9OfO+rJJ45smLvFShy/6ZwOg7f2MWTcfkEKdCLJP+bkVwZFVwB+WndBFAMk45lyli83uaHJfNpg==} + '@oxlint/linux-arm64-musl@0.13.2': + resolution: {integrity: sha512-YJVvVyuvUobgCmiE47kBwN6dymLcQBG5/NsEaCbVyYw5HQJN7Ywp/x4suaF4c6M9ItPCnLxEZ4Lwu5TkrkU3vQ==} cpu: [arm64] os: [linux] - '@oxlint/linux-x64-gnu@0.13.1': - resolution: {integrity: sha512-lk9X72DJ5EZpDpc4fM+O+Qk5GuZ37LHeHhUNzjQ01uywwGVCkW2cDmTKIs/PYfxcDA53bwW/Ddsljn71BLtWoA==} + '@oxlint/linux-x64-gnu@0.13.2': + resolution: {integrity: sha512-w78gjd3ZJ+ahByS5gmN0jxFn/+G3W/oBJbyGFOuteXYcJwLj6JIyS0VhpMKxuAdFNCnsjJeDHSbdWaCV6VkA3A==} cpu: [x64] os: [linux] - '@oxlint/linux-x64-musl@0.13.1': - resolution: {integrity: sha512-Hb8wiT6KnyljDeMN7exSRRTkKH1n/8pczqWkPT5fCklahs721/z+vnxp49U5yvDdrD1LyppFKieEnKKg4uWtOw==} + '@oxlint/linux-x64-musl@0.13.2': + resolution: {integrity: sha512-yedk6KQT3jtBzpzExo3Ib7NwfuugaaFKvk/EzXEojMQ5aYh6CNhmVmm+adzwBp4YyOeXQZxSPHQ1LcNwDCUJIA==} cpu: [x64] os: [linux] - '@oxlint/win32-arm64@0.13.1': - resolution: {integrity: sha512-Z3sHxYSGz+ZByScbe01Tqv9DEIr4ve/mgrFPFMxL0ve18CAnMe/2Psxj4A+T/BW4zINXdQyeiPkcWDNX+eUEQg==} + '@oxlint/win32-arm64@0.13.2': + resolution: {integrity: sha512-KZvJ3uMWSCwkZtvOcO+K4mLmYU/jIcHUb00s8aPasG1taflbjINsq9ZUUj5LNigcDwJRZGUwNcvY5KuQ+E9WtQ==} cpu: [arm64] os: [win32] - '@oxlint/win32-x64@0.13.1': - resolution: {integrity: sha512-9BKvquGa9nloHEXXNPnro7inzbX6BNFun9+ti9LvWEn1uNL/m6mmfMbwEmqXeDaeJACuQB3/9te1DRNUOE5ULw==} + '@oxlint/win32-x64@0.13.2': + resolution: {integrity: sha512-G8FM8RTJRMt2dPRJ/TXhqIEu9k00vRAoh3DSV2r3o+jD8FZDBZXOgoDn2D0F9HqgFLEOVTxpfalmWntyk2hmyw==} cpu: [x64] os: [win32] @@ -1504,8 +1504,8 @@ packages: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} - oxlint@0.13.1: - resolution: {integrity: sha512-XkH9kzbWv9VWiVF76GFij33ZCVCznRItZc50kAIoVdqWpPYjvZk4oc71fKIfxoLxChB+ZNwU2PmsHLBDXAmhuw==} + oxlint@0.13.2: + resolution: {integrity: sha512-R7wXUspM75TeEXaAFLmuPH0W3h5B5r6BNtOvkcnVddD3BWbBiEOWe9bCqt4+te0l8wQ4a0/XLCGrJroxFFeajg==} engines: {node: '>=14.*'} hasBin: true @@ -2337,28 +2337,28 @@ snapshots: '@oxc-node/core-win32-ia32-msvc': 0.0.15 '@oxc-node/core-win32-x64-msvc': 0.0.15 - '@oxlint/darwin-arm64@0.13.1': + '@oxlint/darwin-arm64@0.13.2': optional: true - '@oxlint/darwin-x64@0.13.1': + '@oxlint/darwin-x64@0.13.2': optional: true - '@oxlint/linux-arm64-gnu@0.13.1': + '@oxlint/linux-arm64-gnu@0.13.2': optional: true - '@oxlint/linux-arm64-musl@0.13.1': + '@oxlint/linux-arm64-musl@0.13.2': optional: true - '@oxlint/linux-x64-gnu@0.13.1': + '@oxlint/linux-x64-gnu@0.13.2': optional: true - '@oxlint/linux-x64-musl@0.13.1': + '@oxlint/linux-x64-musl@0.13.2': optional: true - '@oxlint/win32-arm64@0.13.1': + '@oxlint/win32-arm64@0.13.2': optional: true - '@oxlint/win32-x64@0.13.1': + '@oxlint/win32-x64@0.13.2': optional: true '@pkgjs/parseargs@0.11.0': @@ -3397,16 +3397,16 @@ snapshots: type-check: 0.4.0 word-wrap: 1.2.5 - oxlint@0.13.1: + oxlint@0.13.2: optionalDependencies: - '@oxlint/darwin-arm64': 0.13.1 - '@oxlint/darwin-x64': 0.13.1 - '@oxlint/linux-arm64-gnu': 0.13.1 - '@oxlint/linux-arm64-musl': 0.13.1 - '@oxlint/linux-x64-gnu': 0.13.1 - '@oxlint/linux-x64-musl': 0.13.1 - '@oxlint/win32-arm64': 0.13.1 - '@oxlint/win32-x64': 0.13.1 + '@oxlint/darwin-arm64': 0.13.2 + '@oxlint/darwin-x64': 0.13.2 + '@oxlint/linux-arm64-gnu': 0.13.2 + '@oxlint/linux-arm64-musl': 0.13.2 + '@oxlint/linux-x64-gnu': 0.13.2 + '@oxlint/linux-x64-musl': 0.13.2 + '@oxlint/win32-arm64': 0.13.2 + '@oxlint/win32-x64': 0.13.2 p-limit@2.3.0: dependencies: diff --git a/src/__snapshots__/configs.spec.ts.snap b/src/__snapshots__/configs.spec.ts.snap index f5ae997..3ed1717 100644 --- a/src/__snapshots__/configs.spec.ts.snap +++ b/src/__snapshots__/configs.spec.ts.snap @@ -490,6 +490,9 @@ exports[`contains all the oxlint rules 1`] = ` "jsx-a11y/alt-text": [ 0, ], + "jsx-a11y/anchor-ambiguous-text": [ + 0, + ], "jsx-a11y/anchor-has-content": [ 0, ], @@ -657,6 +660,10 @@ exports[`contains all the oxlint rules 1`] = ` "no-duplicate-case": [ 0, ], + "no-duplicate-imports": [ + 0, + {}, + ], "no-else-return": [ 0, { @@ -775,6 +782,9 @@ exports[`contains all the oxlint rules 1`] = ` "no-obj-calls": [ 0, ], + "no-object-constructor": [ + 0, + ], "no-plusplus": [ 0, {}, @@ -971,6 +981,9 @@ exports[`contains all the oxlint rules 1`] = ` "react/jsx-no-duplicate-props": [ 0, ], + "react/jsx-no-script-url": [ + 0, + ], "react/jsx-no-target-blank": [ 0, ], @@ -1283,6 +1296,9 @@ exports[`contains all the oxlint rules 1`] = ` "unicorn/prefer-native-coercion-functions": [ 0, ], + "unicorn/prefer-negative-index": [ + 0, + ], "unicorn/prefer-node-protocol": [ 0, ], @@ -1304,6 +1320,9 @@ exports[`contains all the oxlint rules 1`] = ` "unicorn/prefer-regexp-test": [ 0, ], + "unicorn/prefer-set-has": [ + 0, + ], "unicorn/prefer-set-size": [ 0, ], diff --git a/src/generated/rules-by-category.ts b/src/generated/rules-by-category.ts index f7f565c..e07ff31 100644 --- a/src/generated/rules-by-category.ts +++ b/src/generated/rules-by-category.ts @@ -12,6 +12,7 @@ const pedanticRules = { 'no-fallthrough': 'off', 'no-inner-declarations': 'off', 'no-new-wrappers': 'off', + 'no-object-constructor': 'off', 'no-prototype-builtins': 'off', 'no-redeclare': 'off', 'no-self-compare': 'off', @@ -106,6 +107,7 @@ const restrictionRules = { 'import/unambiguous': 'off', 'jsdoc/check-access': 'off', 'jsdoc/empty-tags': 'off', + 'jsx-a11y/anchor-ambiguous-text': 'off', 'node/no-new-require': 'off', 'promise/catch-or-return': 'off', 'promise/spec-only': 'off', @@ -144,6 +146,7 @@ const styleRules = { 'guard-for-in': 'off', 'max-params': 'off', 'no-continue': 'off', + 'no-duplicate-imports': 'off', 'no-label-var': 'off', 'no-magic-numbers': 'off', 'no-multi-str': 'off', @@ -234,6 +237,7 @@ const styleRules = { 'unicorn/prefer-includes': 'off', 'unicorn/prefer-logical-operator-over-ternary': 'off', 'unicorn/prefer-modern-dom-apis': 'off', + 'unicorn/prefer-negative-index': 'off', 'unicorn/prefer-optional-catch-binding': 'off', 'unicorn/prefer-reflect-apply': 'off', 'unicorn/prefer-spread': 'off', @@ -422,6 +426,7 @@ const perfRules = { 'react-perf/jsx-no-new-array-as-prop': 'off', 'react-perf/jsx-no-new-function-as-prop': 'off', 'react-perf/jsx-no-new-object-as-prop': 'off', + 'unicorn/prefer-set-has': 'off', } as const; const suspiciousRules = { @@ -438,6 +443,7 @@ const suspiciousRules = { 'promise/no-promise-in-callback': 'off', 'react/iframe-missing-sandbox': 'off', 'react/jsx-no-comment-textnodes': 'off', + 'react/jsx-no-script-url': 'off', 'react/react-in-jsx-scope': 'off', 'react/style-prop-object': 'off', '@typescript-eslint/no-confusing-non-null-assertion': 'off', diff --git a/src/generated/rules-by-scope.ts b/src/generated/rules-by-scope.ts index e77241e..598204a 100644 --- a/src/generated/rules-by-scope.ts +++ b/src/generated/rules-by-scope.ts @@ -36,6 +36,7 @@ const eslintRules = { 'no-dupe-else-if': 'off', 'no-dupe-keys': 'off', 'no-duplicate-case': 'off', + 'no-duplicate-imports': 'off', 'no-else-return': 'off', 'no-empty': 'off', 'no-empty-character-class': 'off', @@ -65,6 +66,7 @@ const eslintRules = { 'no-new-wrappers': 'off', 'no-nonoctal-decimal-escape': 'off', 'no-obj-calls': 'off', + 'no-object-constructor': 'off', 'no-plusplus': 'off', 'no-proto': 'off', 'no-prototype-builtins': 'off', @@ -207,6 +209,7 @@ const jsdocRules = { const jsxA11yRules = { 'jsx-a11y/alt-text': 'off', + 'jsx-a11y/anchor-ambiguous-text': 'off', 'jsx-a11y/anchor-has-content': 'off', 'jsx-a11y/anchor-is-valid': 'off', 'jsx-a11y/aria-activedescendant-has-tabindex': 'off', @@ -285,6 +288,7 @@ const reactRules = { 'react/jsx-key': 'off', 'react/jsx-no-comment-textnodes': 'off', 'react/jsx-no-duplicate-props': 'off', + 'react/jsx-no-script-url': 'off', 'react/jsx-no-target-blank': 'off', 'react/jsx-no-undef': 'off', 'react/jsx-no-useless-fragment': 'off', @@ -436,6 +440,7 @@ const unicornRules = { 'unicorn/prefer-modern-dom-apis': 'off', 'unicorn/prefer-modern-math-apis': 'off', 'unicorn/prefer-native-coercion-functions': 'off', + 'unicorn/prefer-negative-index': 'off', 'unicorn/prefer-node-protocol': 'off', 'unicorn/prefer-number-properties': 'off', 'unicorn/prefer-optional-catch-binding': 'off', @@ -443,6 +448,7 @@ const unicornRules = { 'unicorn/prefer-query-selector': 'off', 'unicorn/prefer-reflect-apply': 'off', 'unicorn/prefer-regexp-test': 'off', + 'unicorn/prefer-set-has': 'off', 'unicorn/prefer-set-size': 'off', 'unicorn/prefer-spread': 'off', 'unicorn/prefer-string-raw': 'off',