From 7300c69c55db26261b3b36b0ec8389154b2a5543 Mon Sep 17 00:00:00 2001 From: oxc-bot Date: Wed, 11 Dec 2024 05:00:57 +0800 Subject: [PATCH] release: v0.15.0 (#280) 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 | 80 +++++--------------------- src/__snapshots__/configs.spec.ts.snap | 6 ++ src/generated/rules-by-category.ts | 2 + src/generated/rules-by-scope.ts | 2 + 5 files changed, 25 insertions(+), 69 deletions(-) diff --git a/package.json b/package.json index a2d7fa8..c715e6f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-plugin-oxlint", - "version": "0.14.1", + "version": "0.15.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.14.1", + "oxlint": "^0.15.0", "prettier": "^3.3.3", "scule": "^1.3.0", "shelljs": "^0.8.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3c97af4..670a864 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.14.1 - version: 0.14.1 + specifier: ^0.15.0 + version: 0.15.0 prettier: specifier: ^3.3.3 version: 3.4.2 @@ -609,46 +609,16 @@ packages: '@oxc-node/core@0.0.15': resolution: {integrity: sha512-g8ip2dUKtxfZ5IqROmZbHz7OY/+GOG4dnhqgQezlYXCufUcWA+0GM+FqI0ZzA50njUFKCTAHXRiN+BqJPy4trA==} - '@oxlint/darwin-arm64@0.14.1': - resolution: {integrity: sha512-P76G8QCHOkLm+8HYk2/5uR4sPnx6uxE5Y8ik8dgCV0XjrNR+/Sg8v2aQ1BmWeEnPGkBXTt1VSECO9BdT1HVeDw==} - cpu: [arm64] - os: [darwin] - - '@oxlint/darwin-x64@0.14.1': - resolution: {integrity: sha512-bFsNkDtiDEhBKsX2DGLGCVhaRSDP2VgnNHOejjVnLK2LURvOglHMrp4NXxxtHArPAfiP6oezja6q8GmsQbcZ4w==} - cpu: [x64] - os: [darwin] - - '@oxlint/linux-arm64-gnu@0.14.1': - resolution: {integrity: sha512-OWJY1qxJgsaLyQvh97MdpI2Mr8FD90ssGw8o0rG63lWIc3PJESmq9NKU0ZwwUbPbbEpKmwdG3aiZRjh4G1k0cQ==} - cpu: [arm64] - os: [linux] - - '@oxlint/linux-arm64-musl@0.14.1': - resolution: {integrity: sha512-GPbggyGQV4+5JzpA7l+1liPHkzCDB9ZyPLcHpRtNJJfTQ60JnBww4l3eR7LCukiAor6Sxmlbl+t1OZGjL3zUUA==} - cpu: [arm64] - os: [linux] - - '@oxlint/linux-x64-gnu@0.14.1': - resolution: {integrity: sha512-4ug2y9fEa2MB4wAFfITkm1oJ2m14YjWQaKxKN9bRazPng2k3wivVAvwc6tKj866HftZxXo3FlOIrE1YP6BxcSw==} - cpu: [x64] - os: [linux] - - '@oxlint/linux-x64-musl@0.14.1': - resolution: {integrity: sha512-bsG5ZxFWKml6BQMHbusvNsEU3O0a5BurlrtdXyxlOBZyrWyG6v3pcXM+NX4YT8gaeoK71iCH5I+ymwI9KOwO/w==} + '@oxlint/linux-x64-gnu@0.15.0': + resolution: {integrity: sha512-e/KSj4fg5EFdK/bJLJjGRzaw2KZdYgr2mTt3k9HF9YIGl0UnBoX5h+q0hJ9scDTNNailT8qytvOjuiUhyJpAPA==} cpu: [x64] os: [linux] - '@oxlint/win32-arm64@0.14.1': - resolution: {integrity: sha512-Soc3kRTqz++kleXz+Y4IlfiGY+cwXlOiLCVwcRMAnY+TSaP4h2tPXN/cbOypsE7PPq2/kk7JPGUaEKZ/i4G23A==} + '@oxlint/win32-arm64@0.15.0': + resolution: {integrity: sha512-Hms4Ld6uAOKpbLq27MUqQzffxd71+pK96mzK3YULrkASzIa7AZdtNlRBqfqVRuXCiuxPxT6PhfcriURwsvD/YA==} cpu: [arm64] os: [win32] - '@oxlint/win32-x64@0.14.1': - resolution: {integrity: sha512-qyjlv5XPxKJ1g9F4ZpNP0m/I2tgHj4lebmyAveaLos3RZWut983WaK3abq4Mr74mIiwfyLA67/m2khG5aXYN2Q==} - cpu: [x64] - os: [win32] - '@pkgjs/parseargs@0.11.0': resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} @@ -1664,8 +1634,8 @@ packages: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} - oxlint@0.14.1: - resolution: {integrity: sha512-FwcjPfQu806ibSv73Y9tUM8ezUyd811dp3JwEEOC/dIAgd93egRsRNnFauuAq/WuTjIDv73tbr9hB8MziH31Eg==} + oxlint@0.15.0: + resolution: {integrity: sha512-hIED9mcs8c0dnNuQEzXRPXOo09HoOVh60LSD48EQHwcHlcFheMfW5OkLWQvinDkG/1n5qt+zWopQGaKFgmtXPw==} engines: {node: '>=14.*'} hasBin: true @@ -2609,28 +2579,10 @@ snapshots: '@oxc-node/core-win32-ia32-msvc': 0.0.15 '@oxc-node/core-win32-x64-msvc': 0.0.15 - '@oxlint/darwin-arm64@0.14.1': - optional: true - - '@oxlint/darwin-x64@0.14.1': - optional: true - - '@oxlint/linux-arm64-gnu@0.14.1': - optional: true - - '@oxlint/linux-arm64-musl@0.14.1': - optional: true - - '@oxlint/linux-x64-gnu@0.14.1': - optional: true - - '@oxlint/linux-x64-musl@0.14.1': - optional: true - - '@oxlint/win32-arm64@0.14.1': + '@oxlint/linux-x64-gnu@0.15.0': optional: true - '@oxlint/win32-x64@0.14.1': + '@oxlint/win32-arm64@0.15.0': optional: true '@pkgjs/parseargs@0.11.0': @@ -3701,16 +3653,10 @@ snapshots: type-check: 0.4.0 word-wrap: 1.2.5 - oxlint@0.14.1: + oxlint@0.15.0: optionalDependencies: - '@oxlint/darwin-arm64': 0.14.1 - '@oxlint/darwin-x64': 0.14.1 - '@oxlint/linux-arm64-gnu': 0.14.1 - '@oxlint/linux-arm64-musl': 0.14.1 - '@oxlint/linux-x64-gnu': 0.14.1 - '@oxlint/linux-x64-musl': 0.14.1 - '@oxlint/win32-arm64': 0.14.1 - '@oxlint/win32-x64': 0.14.1 + '@oxlint/linux-x64-gnu': 0.15.0 + '@oxlint/win32-arm64': 0.15.0 p-limit@2.3.0: dependencies: diff --git a/src/__snapshots__/configs.spec.ts.snap b/src/__snapshots__/configs.spec.ts.snap index b681586..f10aa49 100644 --- a/src/__snapshots__/configs.spec.ts.snap +++ b/src/__snapshots__/configs.spec.ts.snap @@ -161,6 +161,9 @@ exports[`contains all the oxlint rules 1`] = ` "@typescript-eslint/no-require-imports": [ 0, ], + "@typescript-eslint/no-restricted-imports": [ + 0, + ], "@typescript-eslint/no-this-alias": [ 0, ], @@ -828,6 +831,9 @@ exports[`contains all the oxlint rules 1`] = ` "no-restricted-globals": [ 0, ], + "no-restricted-imports": [ + 0, + ], "no-return-assign": [ 0, "except-parens", diff --git a/src/generated/rules-by-category.ts b/src/generated/rules-by-category.ts index cb482ca..de9027a 100644 --- a/src/generated/rules-by-category.ts +++ b/src/generated/rules-by-category.ts @@ -155,6 +155,7 @@ const styleRules = { 'no-magic-numbers': 'off', 'no-multi-str': 'off', 'no-new-func': 'off', + 'no-restricted-imports': 'off', 'no-return-assign': 'off', 'no-script-url': 'off', 'no-template-curly-in-string': 'off', @@ -225,6 +226,7 @@ const styleRules = { '@typescript-eslint/no-empty-interface': 'off', '@typescript-eslint/no-inferrable-types': 'off', '@typescript-eslint/no-magic-numbers': 'off', + '@typescript-eslint/no-restricted-imports': 'off', '@typescript-eslint/prefer-for-of': 'off', '@typescript-eslint/prefer-function-type': 'off', '@typescript-eslint/prefer-namespace-keyword': 'off', diff --git a/src/generated/rules-by-scope.ts b/src/generated/rules-by-scope.ts index 3e3d201..d1e2967 100644 --- a/src/generated/rules-by-scope.ts +++ b/src/generated/rules-by-scope.ts @@ -73,6 +73,7 @@ const eslintRules = { 'no-redeclare': 'off', 'no-regex-spaces': 'off', 'no-restricted-globals': 'off', + 'no-restricted-imports': 'off', 'no-return-assign': 'off', 'no-script-url': 'off', 'no-self-assign': 'off', @@ -360,6 +361,7 @@ const typescriptRules = { '@typescript-eslint/no-non-null-assertion': 'off', '@typescript-eslint/no-redeclare': 'off', '@typescript-eslint/no-require-imports': 'off', + '@typescript-eslint/no-restricted-imports': 'off', '@typescript-eslint/no-this-alias': 'off', '@typescript-eslint/no-unnecessary-type-constraint': 'off', '@typescript-eslint/no-unsafe-declaration-merging': 'off',