diff --git a/package.json b/package.json index aafcdb6..d3ba9f6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-oxlint", - "version": "0.15.5", + "version": "0.15.6", "description": "Turn off all rules already supported by oxlint", "type": "module", "types": "./dist/index.d.ts", @@ -65,7 +65,7 @@ "husky": "^9.1.6", "lint-staged": "^15.2.10", "memfs": "^4.14.0", - "oxlint": "^0.15.5", + "oxlint": "^0.15.6", "prettier": "^3.3.3", "scule": "^1.3.0", "shelljs": "^0.8.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1eeb1d6..7f3f194 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.5 - version: 0.15.5 + specifier: ^0.15.6 + version: 0.15.6 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.5': - resolution: {integrity: sha512-LqUh/+iRwj2mIDMqiYOjf2nx/BjpMVY+2PQvpOgSd2mNXrudD02KUTNCVSTAhUuGe86SYQblFgBz2cYfbTUa9A==} + '@oxlint/darwin-arm64@0.15.6': + resolution: {integrity: sha512-Oyx21zpBMttAykoL3VSXM4ScfO0OygKAVFJlRFzh14CF4pnMQRcQ8fIH38BXy6wdE3YyZ9ml1ZspsCwguqb/3A==} cpu: [arm64] os: [darwin] - '@oxlint/darwin-x64@0.15.5': - resolution: {integrity: sha512-3AdgAKrZsZ1Tk4XW5GosNKfRk5tdAzYgZl/9lJSCJr2I5mN6hrTn/WTIJv4tJrLlQbFsD++5R5HCQblp9vfFNg==} + '@oxlint/darwin-x64@0.15.6': + resolution: {integrity: sha512-fNjxp7MBflKYyvvYgvjvAaCnVdYE3QZkscNhd8ygMko4yFErzPnvPong04QhvNN/cSxrL74nowMHrijPxZbm6Q==} cpu: [x64] os: [darwin] - '@oxlint/linux-arm64-gnu@0.15.5': - resolution: {integrity: sha512-iKqoRSn+aIYqku99xBFzhZFaRXTIpFhFIh37MFjzhPvvVN5qQjxBzvePfuI1eTVuttviELKP5eR5sSUP2aDKxw==} + '@oxlint/linux-arm64-gnu@0.15.6': + resolution: {integrity: sha512-/yLShYUGVQV/lCxKDEKaZr5+QQm68NKuFkLcB3z0Qcd45BVdpa/0HGoOpOL7mexo+zxZkRQSGn7x2idVYv2Tng==} cpu: [arm64] os: [linux] - '@oxlint/linux-arm64-musl@0.15.5': - resolution: {integrity: sha512-pYNCI9iqPcma8hIuJb/v40mOjuWtJjYaOxbDvSecjtKb9EFqZu9A9WDhgg766S+8o1Iit72LLtSq7q0cyh7+ww==} + '@oxlint/linux-arm64-musl@0.15.6': + resolution: {integrity: sha512-S0i/xb/TEep2CjZ11D4BxifsaX2a1LyuxW1hFcREMebtXJjpZMFfCNR7Cnwk7tp6eWiXLo3DJ/6iPLkxV6iivg==} cpu: [arm64] os: [linux] - '@oxlint/linux-x64-gnu@0.15.5': - resolution: {integrity: sha512-jDrA5vSdEhKov1aMFvWLzFpuGneVhryLXTqcbqdUzZOe1Ss1S2XhRabHwLlhDRemCA4Id7fdgZ5qCNrzhUsTdQ==} + '@oxlint/linux-x64-gnu@0.15.6': + resolution: {integrity: sha512-BNSRAn2SMF2/TVpQ/Y/Sg4emXia3Kfihu2apVFLyRj2h2lJCB0g/Us3gjRux2AoD4KkdlMJiqY/Tnaz2xMq49w==} cpu: [x64] os: [linux] - '@oxlint/linux-x64-musl@0.15.5': - resolution: {integrity: sha512-eS4ANgxQCNnGG1aeQ28cUTr/3iitFF9TBK1BfTn3+WW3Nvkfcxo+u2L5tKEq+cxytHuu9hqEpTn1AvNyAH3MQw==} + '@oxlint/linux-x64-musl@0.15.6': + resolution: {integrity: sha512-BUv/dJIBXeinL2vgy1CvzwqbvnDfydU10urbofOF8XXob6AmDewZSIr3ctDvd5qJisR7oEhAuxH4+rPkKnmjEw==} cpu: [x64] os: [linux] - '@oxlint/win32-arm64@0.15.5': - resolution: {integrity: sha512-oJPS+dTlwgVoSb6ieH/4MP+LPxZUMPsUr5k0YLpisMEEfccGXLaGzWKfzgi5dzlOsN6EUr2NgcFaqpa8tRiq8w==} + '@oxlint/win32-arm64@0.15.6': + resolution: {integrity: sha512-keVVbVxWBZ4myHlokg1JDQ0Fw2+iXMJSwbM3yr5SXXtMm7UgNaO3fGVAFA4Kv9OovhVCpfeqZy63gIgSv/w3oA==} cpu: [arm64] os: [win32] - '@oxlint/win32-x64@0.15.5': - resolution: {integrity: sha512-rvk3CN0U37w7OlLvkD1TqqcLvoQdWVtTAF5KckuASOeYo/0cuzNFIvo/7cHYmvewQXuYULxvUHGTzxWYSmVPjQ==} + '@oxlint/win32-x64@0.15.6': + resolution: {integrity: sha512-onKba1QPlcX6sVBMp8KqsAmjgZfaanFZcYGYl6o6q6dzuZSLuKWCPyn/OeJ1PYryYVsbDKZYaCzLoBLrY13MqQ==} cpu: [x64] os: [win32] @@ -1664,8 +1664,8 @@ packages: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} - oxlint@0.15.5: - resolution: {integrity: sha512-hpckVhX+oiDyxYk7rwHqxZAmtOAQxQbkvxGM9NTQ3dTQC8X/5zcoBA9cZdrjVENA2TXrjg7l2qmkkzX7seteoQ==} + oxlint@0.15.6: + resolution: {integrity: sha512-LiDI0mIzvnL/oQq7AyAganWAKtk/RaiOKdACnzeJDe64gWp7c+0y3T554IvfWd/9kVt5awlvyg5eRRp67PaxNA==} 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.5': + '@oxlint/darwin-arm64@0.15.6': optional: true - '@oxlint/darwin-x64@0.15.5': + '@oxlint/darwin-x64@0.15.6': optional: true - '@oxlint/linux-arm64-gnu@0.15.5': + '@oxlint/linux-arm64-gnu@0.15.6': optional: true - '@oxlint/linux-arm64-musl@0.15.5': + '@oxlint/linux-arm64-musl@0.15.6': optional: true - '@oxlint/linux-x64-gnu@0.15.5': + '@oxlint/linux-x64-gnu@0.15.6': optional: true - '@oxlint/linux-x64-musl@0.15.5': + '@oxlint/linux-x64-musl@0.15.6': optional: true - '@oxlint/win32-arm64@0.15.5': + '@oxlint/win32-arm64@0.15.6': optional: true - '@oxlint/win32-x64@0.15.5': + '@oxlint/win32-x64@0.15.6': 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.5: + oxlint@0.15.6: optionalDependencies: - '@oxlint/darwin-arm64': 0.15.5 - '@oxlint/darwin-x64': 0.15.5 - '@oxlint/linux-arm64-gnu': 0.15.5 - '@oxlint/linux-arm64-musl': 0.15.5 - '@oxlint/linux-x64-gnu': 0.15.5 - '@oxlint/linux-x64-musl': 0.15.5 - '@oxlint/win32-arm64': 0.15.5 - '@oxlint/win32-x64': 0.15.5 + '@oxlint/darwin-arm64': 0.15.6 + '@oxlint/darwin-x64': 0.15.6 + '@oxlint/linux-arm64-gnu': 0.15.6 + '@oxlint/linux-arm64-musl': 0.15.6 + '@oxlint/linux-x64-gnu': 0.15.6 + '@oxlint/linux-x64-musl': 0.15.6 + '@oxlint/win32-arm64': 0.15.6 + '@oxlint/win32-x64': 0.15.6 p-limit@2.3.0: dependencies: diff --git a/src/__snapshots__/configs.spec.ts.snap b/src/__snapshots__/configs.spec.ts.snap index 1449efe..2ebe850 100644 --- a/src/__snapshots__/configs.spec.ts.snap +++ b/src/__snapshots__/configs.spec.ts.snap @@ -809,6 +809,9 @@ exports[`contains all the oxlint rules 1`] = ` "allowSwitch": false, }, ], + "no-lone-blocks": [ + 0, + ], "no-loss-of-precision": [ 0, ], @@ -1425,6 +1428,9 @@ 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 9cccbb5..5897c77 100644 --- a/src/generated/rules-by-category.ts +++ b/src/generated/rules-by-category.ts @@ -155,6 +155,7 @@ const styleRules = { 'no-multi-assign': 'off', 'no-nested-ternary': 'off', 'no-labels': 'off', + 'no-lone-blocks': 'off', 'no-duplicate-imports': 'off', 'no-continue': 'off', 'no-label-var': 'off', @@ -246,6 +247,7 @@ const styleRules = { 'unicorn/no-zero-fractions': 'off', 'unicorn/number-literal-case': 'off', 'unicorn/numeric-separators-style': 'off', + 'unicorn/prefer-spread': 'off', 'unicorn/prefer-array-flat-map': 'off', 'unicorn/prefer-dom-node-text-content': 'off', 'unicorn/prefer-includes': 'off', diff --git a/src/generated/rules-by-scope.ts b/src/generated/rules-by-scope.ts index f2964d8..a1a93ac 100644 --- a/src/generated/rules-by-scope.ts +++ b/src/generated/rules-by-scope.ts @@ -17,6 +17,7 @@ const eslintRules = { 'no-multi-assign': 'off', 'no-nested-ternary': 'off', 'no-labels': 'off', + 'no-lone-blocks': 'off', 'no-object-constructor': 'off', 'no-duplicate-imports': 'off', 'no-alert': 'off', @@ -439,6 +440,7 @@ const unicornRules = { 'unicorn/no-zero-fractions': 'off', 'unicorn/number-literal-case': 'off', 'unicorn/numeric-separators-style': 'off', + 'unicorn/prefer-spread': 'off', 'unicorn/prefer-add-event-listener': 'off', 'unicorn/prefer-array-flat': 'off', 'unicorn/prefer-array-flat-map': 'off',