From 80fc64c004d4314d91923a2ecde2931f9906ecc6 Mon Sep 17 00:00:00 2001 From: oxc-bot Date: Thu, 21 Nov 2024 23:26:15 +0800 Subject: [PATCH] release: v0.13.0 (#253) 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 | 9 ++-- src/generated/configs-by-scope.ts | 6 --- src/generated/rules-by-category.ts | 3 +- src/generated/rules-by-scope.ts | 7 +-- 6 files changed, 49 insertions(+), 54 deletions(-) diff --git a/package.json b/package.json index 0bc86b5..33484fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-oxlint", - "version": "0.12.0", + "version": "0.13.0", "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.12.0", + "oxlint": "^0.13.0", "prettier": "^3.3.3", "scule": "^1.3.0", "shelljs": "^0.8.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6b3e43d..31587cd 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.12.0 - version: 0.12.0 + specifier: ^0.13.0 + version: 0.13.0 prettier: specifier: ^3.3.3 version: 3.3.3 @@ -466,43 +466,43 @@ packages: '@oxc-node/core@0.0.15': resolution: {integrity: sha512-g8ip2dUKtxfZ5IqROmZbHz7OY/+GOG4dnhqgQezlYXCufUcWA+0GM+FqI0ZzA50njUFKCTAHXRiN+BqJPy4trA==} - '@oxlint/darwin-arm64@0.12.0': - resolution: {integrity: sha512-UydkjcAImpmBn8JYaMPg0zJrwgWJMGvJagvCnyPfyiBRWAN83Kq+BDgJZgIq+2Te6kvlnoiHWNJKVJmpy0f0BA==} + '@oxlint/darwin-arm64@0.13.0': + resolution: {integrity: sha512-TFVi4gWKmn4oUoaS6AUU6cvlA+xLCIHQWA27LdnyfmRDerxHSWaG4yPNq9bvhDAeeEWqid5+TR5ndu4WRhEr5A==} cpu: [arm64] os: [darwin] - '@oxlint/darwin-x64@0.12.0': - resolution: {integrity: sha512-bxLyiAiHzXB56w7cf50YNPpZlK+PMxA8GgHutRSoNK/Z/BR/xsibNLs/9YNUnjHB+PF19+EbIRtJxoHjmbRr8g==} + '@oxlint/darwin-x64@0.13.0': + resolution: {integrity: sha512-ihbegvRXcED2Bgz9Lt4AGFoNfvh/tUZPrFR5DZ3Hn8muab+PEFfXXXKcelSDpTB4za5bDXz6dZcAUUfQUWPwxg==} cpu: [x64] os: [darwin] - '@oxlint/linux-arm64-gnu@0.12.0': - resolution: {integrity: sha512-jVkmfoMjPKFDIZySmpykwrCmx5xhpLJdMpUAR8ycEkFRJFp5qKLWZd6cEjiMb7gxmWN6qcCvDVTF/zEs3aRpyQ==} + '@oxlint/linux-arm64-gnu@0.13.0': + resolution: {integrity: sha512-k4r03/29d+IdcT30B6H5TpWT7bFrkqbRrFQ5VS6GX5ISN0yRdagu4Q08sDimCTTXvg5H9Z/sHmxbw7tbjGGW4w==} cpu: [arm64] os: [linux] - '@oxlint/linux-arm64-musl@0.12.0': - resolution: {integrity: sha512-8VdV1nKYDj7AFaw1a03Ih43/+pUS/hhMZbTFLRMpvlVp1cPtdB77c+bl/OdiJ/BwNTzLIzr/GrospwCoEJkQKg==} + '@oxlint/linux-arm64-musl@0.13.0': + resolution: {integrity: sha512-m+LFHCwNydIrGHDz1VPTaQsZewaqYadKhzyjsw4TRf0g5fxeEC4tkv6MI80D2S//QO6DJi8VcnPfVqGWoS5vQQ==} cpu: [arm64] os: [linux] - '@oxlint/linux-x64-gnu@0.12.0': - resolution: {integrity: sha512-MacAt8N4XU5DeoHcseXLom/z+B0seecCz8vGAH4ppF2EH49o7NbN7VvFsw2nZ2QNO/4vw+pdS1BHXLTr9lY6zQ==} + '@oxlint/linux-x64-gnu@0.13.0': + resolution: {integrity: sha512-Kixb9MXi5muDKsrNo5k7TANEE3DuUUSKIgoBN68LbX4n2owjCsq/gnzVjQ/rDK0vFn0JQMxMXWjBZvV64ybXMQ==} cpu: [x64] os: [linux] - '@oxlint/linux-x64-musl@0.12.0': - resolution: {integrity: sha512-/ZBDJ9wpUE6bB05nniQl29kD5vJUMg6n75LdHD8F6ThXfsHGI/n7Je3gzggnXokgf9UQpTUPWrWlfEuWVCBMag==} + '@oxlint/linux-x64-musl@0.13.0': + resolution: {integrity: sha512-wCCsesDf05G0bjXMrxAvH36Cl4q0oavR3fo4N5NJyyrRdZ+feAZSsfaHRpvlqkJyUM3vhP6emKrXzIN5fp22dw==} cpu: [x64] os: [linux] - '@oxlint/win32-arm64@0.12.0': - resolution: {integrity: sha512-hY1ya9dv8VY8113YSSDfMs/989aFmoA2fIZco8uxTxIEVl9nGY6tDtpgKZqUIiGrrMbDO8BBb1G5jsekmfexbA==} + '@oxlint/win32-arm64@0.13.0': + resolution: {integrity: sha512-xO6oZ+0yjYuEviKqRUVWMuYvzYqJDHd0IcBss8J2o45OS9SH+mNNk5gZJm9uKbDdmFZcDn2OlZxAiygVMxHt9g==} cpu: [arm64] os: [win32] - '@oxlint/win32-x64@0.12.0': - resolution: {integrity: sha512-NHLJolo4sZk3nu/bPNuaJ+6p5DdHoRuZAjyuSO6CnLgpmZcYqx7LgngA/x2oB/bLgi4Hv9twjHjODc5Ce5o14g==} + '@oxlint/win32-x64@0.13.0': + resolution: {integrity: sha512-NiiaQ/AD1ILQ8cXRxdjE/dRMCRABFbelSYqoFrrklV2Y7hwtF0Law48GvM5ysQbz/NHVpQpnVNQOQ3cevywn3w==} cpu: [x64] os: [win32] @@ -1521,8 +1521,8 @@ packages: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} - oxlint@0.12.0: - resolution: {integrity: sha512-M0vWq8KYtp4vpweRxcdCiVO8QFwzoRyp5bWTMrEL/0Z+GDKCMJltac7H3T3T09FIiktOZLvID733d7OcKk/caw==} + oxlint@0.13.0: + resolution: {integrity: sha512-YUwybs9U5siS54Q+vVkxMQXiNF6LHeLRxihj6toUFwrYSxL1wsV6HUiAS8Vig+USDIGoEDdGBgpq29iwWDjYHw==} engines: {node: '>=14.*'} hasBin: true @@ -2363,28 +2363,28 @@ snapshots: '@oxc-node/core-win32-ia32-msvc': 0.0.15 '@oxc-node/core-win32-x64-msvc': 0.0.15 - '@oxlint/darwin-arm64@0.12.0': + '@oxlint/darwin-arm64@0.13.0': optional: true - '@oxlint/darwin-x64@0.12.0': + '@oxlint/darwin-x64@0.13.0': optional: true - '@oxlint/linux-arm64-gnu@0.12.0': + '@oxlint/linux-arm64-gnu@0.13.0': optional: true - '@oxlint/linux-arm64-musl@0.12.0': + '@oxlint/linux-arm64-musl@0.13.0': optional: true - '@oxlint/linux-x64-gnu@0.12.0': + '@oxlint/linux-x64-gnu@0.13.0': optional: true - '@oxlint/linux-x64-musl@0.12.0': + '@oxlint/linux-x64-musl@0.13.0': optional: true - '@oxlint/win32-arm64@0.12.0': + '@oxlint/win32-arm64@0.13.0': optional: true - '@oxlint/win32-x64@0.12.0': + '@oxlint/win32-x64@0.13.0': optional: true '@pkgjs/parseargs@0.11.0': @@ -3440,16 +3440,16 @@ snapshots: type-check: 0.4.0 word-wrap: 1.2.5 - oxlint@0.12.0: + oxlint@0.13.0: optionalDependencies: - '@oxlint/darwin-arm64': 0.12.0 - '@oxlint/darwin-x64': 0.12.0 - '@oxlint/linux-arm64-gnu': 0.12.0 - '@oxlint/linux-arm64-musl': 0.12.0 - '@oxlint/linux-x64-gnu': 0.12.0 - '@oxlint/linux-x64-musl': 0.12.0 - '@oxlint/win32-arm64': 0.12.0 - '@oxlint/win32-x64': 0.12.0 + '@oxlint/darwin-arm64': 0.13.0 + '@oxlint/darwin-x64': 0.13.0 + '@oxlint/linux-arm64-gnu': 0.13.0 + '@oxlint/linux-arm64-musl': 0.13.0 + '@oxlint/linux-x64-gnu': 0.13.0 + '@oxlint/linux-x64-musl': 0.13.0 + '@oxlint/win32-arm64': 0.13.0 + '@oxlint/win32-x64': 0.13.0 p-limit@2.3.0: dependencies: diff --git a/src/__snapshots__/configs.spec.ts.snap b/src/__snapshots__/configs.spec.ts.snap index 58a42d1..719af67 100644 --- a/src/__snapshots__/configs.spec.ts.snap +++ b/src/__snapshots__/configs.spec.ts.snap @@ -155,6 +155,9 @@ exports[`contains all the oxlint rules 1`] = ` "@typescript-eslint/no-redeclare": [ 0, ], + "@typescript-eslint/no-require-imports": [ + 0, + ], "@typescript-eslint/no-this-alias": [ 0, ], @@ -1012,6 +1015,9 @@ exports[`contains all the oxlint rules 1`] = ` "react/jsx-props-no-spread-multi": [ 0, ], + "react/no-array-index-key": [ + 0, + ], "react/no-children-prop": [ 0, ], @@ -1101,9 +1107,6 @@ exports[`contains all the oxlint rules 1`] = ` "symbol-description": [ 0, ], - "tree-shaking/no-side-effects-in-initialization": [ - 0, - ], "unicode-bom": [ 0, "never", diff --git a/src/generated/configs-by-scope.ts b/src/generated/configs-by-scope.ts index 6d172b0..0f084b4 100644 --- a/src/generated/configs-by-scope.ts +++ b/src/generated/configs-by-scope.ts @@ -62,11 +62,6 @@ const reactPerfConfig = { rules: rules.reactPerfRules, }; -const treeShakingConfig = { - name: 'oxlint/tree-shaking', - rules: rules.treeShakingRules, -}; - const unicornConfig = { name: 'oxlint/unicorn', rules: rules.unicornRules, @@ -90,7 +85,6 @@ const configByScope = { 'flat/react': reactConfig, 'flat/react-hooks': reactHooksConfig, 'flat/react-perf': reactPerfConfig, - 'flat/tree-shaking': treeShakingConfig, 'flat/unicorn': unicornConfig, 'flat/vitest': vitestConfig, }; diff --git a/src/generated/rules-by-category.ts b/src/generated/rules-by-category.ts index 4b12897..72b09c4 100644 --- a/src/generated/rules-by-category.ts +++ b/src/generated/rules-by-category.ts @@ -90,7 +90,6 @@ const nurseryRules = { 'react-hooks/exhaustive-deps': 'off', 'react/require-render-return': 'off', 'react-hooks/rules-of-hooks': 'off', - 'tree-shaking/no-side-effects-in-initialization': 'off', '@typescript-eslint/consistent-type-imports': 'off', } as const; @@ -137,6 +136,7 @@ const restrictionRules = { '@typescript-eslint/no-namespace': 'off', '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'off', '@typescript-eslint/no-non-null-assertion': 'off', + '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-var-requires': 'off', '@typescript-eslint/prefer-literal-enum-member': 'off', 'unicorn/no-abusive-eslint-disable': 'off', @@ -432,6 +432,7 @@ const correctnessRules = { const perfRules = { 'no-await-in-loop': 'off', + 'react/no-array-index-key': 'off', 'react-perf/jsx-no-jsx-as-prop': 'off', 'react-perf/jsx-no-new-array-as-prop': 'off', 'react-perf/jsx-no-new-function-as-prop': 'off', diff --git a/src/generated/rules-by-scope.ts b/src/generated/rules-by-scope.ts index ef0a546..00256be 100644 --- a/src/generated/rules-by-scope.ts +++ b/src/generated/rules-by-scope.ts @@ -151,6 +151,7 @@ const typescriptRules = { '@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'off', '@typescript-eslint/no-non-null-asserted-optional-chain': 'off', '@typescript-eslint/no-non-null-assertion': 'off', + '@typescript-eslint/no-require-imports': 'off', '@typescript-eslint/no-this-alias': 'off', '@typescript-eslint/no-unnecessary-type-constraint': 'off', '@typescript-eslint/no-unsafe-declaration-merging': 'off', @@ -347,6 +348,7 @@ const reactRules = { 'react/jsx-no-undef': 'off', 'react/jsx-no-useless-fragment': 'off', 'react/jsx-props-no-spread-multi': 'off', + 'react/no-array-index-key': 'off', 'react/no-children-prop': 'off', 'react/no-danger': 'off', 'react/no-danger-with-children': 'off', @@ -378,10 +380,6 @@ const reactPerfRules = { 'react-perf/jsx-no-new-object-as-prop': 'off', } as const; -const treeShakingRules = { - 'tree-shaking/no-side-effects-in-initialization': 'off', -} as const; - const unicornRules = { 'unicorn/catch-error-name': 'off', 'unicorn/consistent-empty-array-spread': 'off', @@ -498,7 +496,6 @@ export { reactRules, reactHooksRules, reactPerfRules, - treeShakingRules, unicornRules, vitestRules, };