From e57ba886bb3810519ae6c7fe6af0c0f01363c302 Mon Sep 17 00:00:00 2001 From: oxc-bot Date: Sun, 1 Dec 2024 17:08:50 +0800 Subject: [PATCH] release: v0.14.0 (#271) 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 | 21 +++++--- src/generated/rules-by-category.ts | 7 ++- src/generated/rules-by-scope.ts | 7 ++- 5 files changed, 64 insertions(+), 49 deletions(-) diff --git a/package.json b/package.json index a91a280..fa057bd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-oxlint", - "version": "0.13.2", + "version": "0.14.0", "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.13.2", + "oxlint": "^0.14.0", "prettier": "^3.3.3", "scule": "^1.3.0", "shelljs": "^0.8.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2ae6c8a..9884106 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -52,8 +52,8 @@ importers: specifier: ^4.14.0 version: 4.14.0 oxlint: - specifier: ^0.13.2 - version: 0.13.2 + specifier: ^0.14.0 + version: 0.14.0 prettier: specifier: ^3.3.3 version: 3.3.3 @@ -465,43 +465,43 @@ packages: '@oxc-node/core@0.0.15': resolution: {integrity: sha512-g8ip2dUKtxfZ5IqROmZbHz7OY/+GOG4dnhqgQezlYXCufUcWA+0GM+FqI0ZzA50njUFKCTAHXRiN+BqJPy4trA==} - '@oxlint/darwin-arm64@0.13.2': - resolution: {integrity: sha512-Jbi2UX1xTFTpH/D6n15RzDSG/44oJ0FwrHWl96TsdD3PAOGxmm8LgcrsCU4d22TSN7ShDFB8y34MYplduRzhfA==} + '@oxlint/darwin-arm64@0.14.0': + resolution: {integrity: sha512-TnGzzJ5BWfj4d3GYdtiMNrCswr00i/f3UwUL5gD71J67nyMAagYwyJI5atCV8LKoa9DJnuc7//HfuPHhQoNKdA==} cpu: [arm64] os: [darwin] - '@oxlint/darwin-x64@0.13.2': - resolution: {integrity: sha512-ulA2vpNIM14VWJua6BjgX6l8nrjY8Un0uLqBLgELyDHMfpnC0HfrB2mR9PC9tRhb7+BEbgDLWTRs2aTV64eprw==} + '@oxlint/darwin-x64@0.14.0': + resolution: {integrity: sha512-MUbf9R2CjTuPQD+HOk9V+Aq05aWlzr2jj8cnIMUDiiwX2hTkprJKcoXyAIJp/OCDd1ufHpo9n7fKTyYtpJUFzA==} cpu: [x64] os: [darwin] - '@oxlint/linux-arm64-gnu@0.13.2': - resolution: {integrity: sha512-iwguvPnIx/yIMc2IrwLeRflEFwyn+gcsNR8le5aX5DvQfHiB3/3x5JxOVl7Nd93lLsOg8RyVr2E11CxV10rKWw==} + '@oxlint/linux-arm64-gnu@0.14.0': + resolution: {integrity: sha512-ofWwFpdD8to59cjOVE+fgIS+uJLX5VbJkkYB2MCpahdzffiWTTvZCVU2TSDJxVr8VpXrF1E8SWDnmHNHzke4bg==} cpu: [arm64] os: [linux] - '@oxlint/linux-arm64-musl@0.13.2': - resolution: {integrity: sha512-YJVvVyuvUobgCmiE47kBwN6dymLcQBG5/NsEaCbVyYw5HQJN7Ywp/x4suaF4c6M9ItPCnLxEZ4Lwu5TkrkU3vQ==} + '@oxlint/linux-arm64-musl@0.14.0': + resolution: {integrity: sha512-yypOsNETNE/8DQELHbw34It1Ab0HxfIooNjmK4YrJBCbVYqr6HOl/oHHb/KauZrAAfoABOMPu5G1igyXNgPvlg==} cpu: [arm64] os: [linux] - '@oxlint/linux-x64-gnu@0.13.2': - resolution: {integrity: sha512-w78gjd3ZJ+ahByS5gmN0jxFn/+G3W/oBJbyGFOuteXYcJwLj6JIyS0VhpMKxuAdFNCnsjJeDHSbdWaCV6VkA3A==} + '@oxlint/linux-x64-gnu@0.14.0': + resolution: {integrity: sha512-E9ZSFo+phvUKM9+pjKCxx6GeT+DfWK8fPxupCpFljWD0zgZQKiXv1FY5+TOPjJqI7aMjLfGuC5VfGjVRgs87Ug==} cpu: [x64] os: [linux] - '@oxlint/linux-x64-musl@0.13.2': - resolution: {integrity: sha512-yedk6KQT3jtBzpzExo3Ib7NwfuugaaFKvk/EzXEojMQ5aYh6CNhmVmm+adzwBp4YyOeXQZxSPHQ1LcNwDCUJIA==} + '@oxlint/linux-x64-musl@0.14.0': + resolution: {integrity: sha512-MmtNF/g0u15smzyYJd5QGlyhAU8V6ZMQrFAXGhoRo5AfWzbNyOOUFmJVNLa/yvs4F+1m7oEfaegxk3BeVyufPQ==} cpu: [x64] os: [linux] - '@oxlint/win32-arm64@0.13.2': - resolution: {integrity: sha512-KZvJ3uMWSCwkZtvOcO+K4mLmYU/jIcHUb00s8aPasG1taflbjINsq9ZUUj5LNigcDwJRZGUwNcvY5KuQ+E9WtQ==} + '@oxlint/win32-arm64@0.14.0': + resolution: {integrity: sha512-67dJ57QImulc8qu9xuF5NsQAHvwr1N3Fpy1j/gaGZE973pEVoW9fFO88tnmY2L5SjWf9o3nHwti1tlU99JuOlw==} cpu: [arm64] os: [win32] - '@oxlint/win32-x64@0.13.2': - resolution: {integrity: sha512-G8FM8RTJRMt2dPRJ/TXhqIEu9k00vRAoh3DSV2r3o+jD8FZDBZXOgoDn2D0F9HqgFLEOVTxpfalmWntyk2hmyw==} + '@oxlint/win32-x64@0.14.0': + resolution: {integrity: sha512-fw8IEW7osGYIgfEMEW4AqPg1q8/kZd0cpO51ixvekVOuhZNC8PX8Wdx97U+XTowOFrkCcr3+szR9PZEjKyR1FQ==} cpu: [x64] os: [win32] @@ -1510,8 +1510,8 @@ packages: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} - oxlint@0.13.2: - resolution: {integrity: sha512-R7wXUspM75TeEXaAFLmuPH0W3h5B5r6BNtOvkcnVddD3BWbBiEOWe9bCqt4+te0l8wQ4a0/XLCGrJroxFFeajg==} + oxlint@0.14.0: + resolution: {integrity: sha512-S0jZRxWPwgDEtLbpJfCVaMeK5/E7wvp6lYJdukwrmeLMRelgh9DjQzl2RBrSjHfmm2R6IcUwzpQ9h8BvqDH7ww==} engines: {node: '>=14.*'} hasBin: true @@ -2343,28 +2343,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.2': + '@oxlint/darwin-arm64@0.14.0': optional: true - '@oxlint/darwin-x64@0.13.2': + '@oxlint/darwin-x64@0.14.0': optional: true - '@oxlint/linux-arm64-gnu@0.13.2': + '@oxlint/linux-arm64-gnu@0.14.0': optional: true - '@oxlint/linux-arm64-musl@0.13.2': + '@oxlint/linux-arm64-musl@0.14.0': optional: true - '@oxlint/linux-x64-gnu@0.13.2': + '@oxlint/linux-x64-gnu@0.14.0': optional: true - '@oxlint/linux-x64-musl@0.13.2': + '@oxlint/linux-x64-musl@0.14.0': optional: true - '@oxlint/win32-arm64@0.13.2': + '@oxlint/win32-arm64@0.14.0': optional: true - '@oxlint/win32-x64@0.13.2': + '@oxlint/win32-x64@0.14.0': optional: true '@pkgjs/parseargs@0.11.0': @@ -3405,16 +3405,16 @@ snapshots: type-check: 0.4.0 word-wrap: 1.2.5 - oxlint@0.13.2: + oxlint@0.14.0: optionalDependencies: - '@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 + '@oxlint/darwin-arm64': 0.14.0 + '@oxlint/darwin-x64': 0.14.0 + '@oxlint/linux-arm64-gnu': 0.14.0 + '@oxlint/linux-arm64-musl': 0.14.0 + '@oxlint/linux-x64-gnu': 0.14.0 + '@oxlint/linux-x64-musl': 0.14.0 + '@oxlint/win32-arm64': 0.14.0 + '@oxlint/win32-x64': 0.14.0 p-limit@2.3.0: dependencies: diff --git a/src/__snapshots__/configs.spec.ts.snap b/src/__snapshots__/configs.spec.ts.snap index 3ed1717..db0d0e3 100644 --- a/src/__snapshots__/configs.spec.ts.snap +++ b/src/__snapshots__/configs.spec.ts.snap @@ -77,6 +77,9 @@ exports[`contains all the oxlint rules 1`] = ` "@typescript-eslint/ban-types": [ 0, ], + "@typescript-eslint/consistent-generic-constructors": [ + 0, + ], "@typescript-eslint/consistent-indexed-object-style": [ 0, ], @@ -128,6 +131,9 @@ exports[`contains all the oxlint rules 1`] = ` "@typescript-eslint/no-import-type-side-effects": [ 0, ], + "@typescript-eslint/no-inferrable-types": [ + 0, + ], "@typescript-eslint/no-loss-of-precision": [ 0, ], @@ -167,6 +173,9 @@ exports[`contains all the oxlint rules 1`] = ` "@typescript-eslint/no-unsafe-function-type": [ 0, ], + "@typescript-eslint/no-unused-expressions": [ + 0, + ], "@typescript-eslint/no-unused-vars": [ 0, ], @@ -244,9 +253,6 @@ exports[`contains all the oxlint rules 1`] = ` "import/first": [ 0, ], - "import/import-no-namespace": [ - 0, - ], "import/max-dependencies": [ 0, ], @@ -280,6 +286,9 @@ exports[`contains all the oxlint rules 1`] = ` "import/no-named-as-default-member": [ 0, ], + "import/no-namespace": [ + 0, + ], "import/no-self-import": [ 0, ], @@ -911,6 +920,9 @@ exports[`contains all the oxlint rules 1`] = ` "prefer-object-has-own": [ 0, ], + "prefer-spread": [ + 0, + ], "promise/avoid-new": [ 0, ], @@ -1326,9 +1338,6 @@ exports[`contains all the oxlint rules 1`] = ` "unicorn/prefer-set-size": [ 0, ], - "unicorn/prefer-spread": [ - 0, - ], "unicorn/prefer-string-raw": [ 0, ], diff --git a/src/generated/rules-by-category.ts b/src/generated/rules-by-category.ts index e07ff31..a241ba3 100644 --- a/src/generated/rules-by-category.ts +++ b/src/generated/rules-by-category.ts @@ -124,6 +124,7 @@ const restrictionRules = { '@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-unused-expressions': 'off', '@typescript-eslint/no-var-requires': 'off', '@typescript-eslint/prefer-literal-enum-member': 'off', 'unicorn/no-abusive-eslint-disable': 'off', @@ -158,10 +159,11 @@ const styleRules = { 'prefer-exponentiation-operator': 'off', 'prefer-numeric-literals': 'off', 'prefer-object-has-own': 'off', + 'prefer-spread': 'off', 'sort-imports': 'off', 'sort-keys': 'off', 'import/first': 'off', - 'import/import-no-namespace': 'off', + 'import/no-namespace': 'off', 'jest/consistent-test-it': 'off', 'jest/max-expects': 'off', 'jest/max-nested-describe': 'off', @@ -211,11 +213,13 @@ const styleRules = { '@typescript-eslint/adjacent-overload-signatures': 'off', '@typescript-eslint/array-type': 'off', '@typescript-eslint/ban-tslint-comment': 'off', + '@typescript-eslint/consistent-generic-constructors': 'off', '@typescript-eslint/consistent-indexed-object-style': 'off', '@typescript-eslint/consistent-type-definitions': 'off', '@typescript-eslint/default-param-last': 'off', '@typescript-eslint/max-params': 'off', '@typescript-eslint/no-empty-interface': 'off', + '@typescript-eslint/no-inferrable-types': 'off', '@typescript-eslint/no-magic-numbers': 'off', '@typescript-eslint/prefer-for-of': 'off', '@typescript-eslint/prefer-function-type': 'off', @@ -240,7 +244,6 @@ const styleRules = { 'unicorn/prefer-negative-index': 'off', 'unicorn/prefer-optional-catch-binding': 'off', 'unicorn/prefer-reflect-apply': 'off', - 'unicorn/prefer-spread': 'off', 'unicorn/prefer-string-raw': 'off', 'unicorn/prefer-string-trim-start-end': 'off', 'unicorn/prefer-structured-clone': 'off', diff --git a/src/generated/rules-by-scope.ts b/src/generated/rules-by-scope.ts index 598204a..fc19d3d 100644 --- a/src/generated/rules-by-scope.ts +++ b/src/generated/rules-by-scope.ts @@ -103,6 +103,7 @@ const eslintRules = { 'prefer-exponentiation-operator': 'off', 'prefer-numeric-literals': 'off', 'prefer-object-has-own': 'off', + 'prefer-spread': 'off', radix: 'off', 'require-await': 'off', 'require-yield': 'off', @@ -118,7 +119,6 @@ const eslintRules = { const importRules = { 'import/default': 'off', 'import/first': 'off', - 'import/import-no-namespace': 'off', 'import/max-dependencies': 'off', 'import/named': 'off', 'import/namespace': 'off', @@ -130,6 +130,7 @@ const importRules = { 'import/no-dynamic-require': 'off', 'import/no-named-as-default': 'off', 'import/no-named-as-default-member': 'off', + 'import/no-namespace': 'off', 'import/no-self-import': 'off', 'import/no-webpack-loader-syntax': 'off', 'import/unambiguous': 'off', @@ -325,6 +326,7 @@ const typescriptRules = { '@typescript-eslint/ban-ts-comment': 'off', '@typescript-eslint/ban-tslint-comment': 'off', '@typescript-eslint/ban-types': 'off', + '@typescript-eslint/consistent-generic-constructors': 'off', '@typescript-eslint/consistent-indexed-object-style': 'off', '@typescript-eslint/consistent-type-definitions': 'off', '@typescript-eslint/default-param-last': 'off', @@ -342,6 +344,7 @@ const typescriptRules = { '@typescript-eslint/no-extra-non-null-assertion': 'off', '@typescript-eslint/no-extraneous-class': 'off', '@typescript-eslint/no-import-type-side-effects': 'off', + '@typescript-eslint/no-inferrable-types': 'off', '@typescript-eslint/no-loss-of-precision': 'off', '@typescript-eslint/no-magic-numbers': 'off', '@typescript-eslint/no-misused-new': 'off', @@ -355,6 +358,7 @@ const typescriptRules = { '@typescript-eslint/no-unnecessary-type-constraint': 'off', '@typescript-eslint/no-unsafe-declaration-merging': 'off', '@typescript-eslint/no-unsafe-function-type': 'off', + '@typescript-eslint/no-unused-expressions': 'off', '@typescript-eslint/no-unused-vars': 'off', '@typescript-eslint/no-useless-constructor': 'off', '@typescript-eslint/no-useless-empty-export': 'off', @@ -450,7 +454,6 @@ const unicornRules = { 'unicorn/prefer-regexp-test': 'off', 'unicorn/prefer-set-has': 'off', 'unicorn/prefer-set-size': 'off', - 'unicorn/prefer-spread': 'off', 'unicorn/prefer-string-raw': 'off', 'unicorn/prefer-string-replace-all': 'off', 'unicorn/prefer-string-slice': 'off',