From 015e2f03690717728c5722f80ed8244293b09dfd Mon Sep 17 00:00:00 2001 From: ntnyq Date: Mon, 12 Aug 2024 20:45:26 +0800 Subject: [PATCH] fix: migrate plugin eslint-comments (#577) --- package.json | 2 +- pnpm-lock.yaml | 30 +++++++++++++++--------------- src/plugins.ts | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index 871b78d285..a37947ad7d 100644 --- a/package.json +++ b/package.json @@ -98,6 +98,7 @@ "dependencies": { "@antfu/install-pkg": "^0.3.3", "@clack/prompts": "^0.7.0", + "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0", "@stylistic/eslint-plugin": "^2.6.2", "@typescript-eslint/eslint-plugin": "^8.0.1", "@typescript-eslint/parser": "^8.0.1", @@ -107,7 +108,6 @@ "eslint-merge-processors": "^0.1.0", "eslint-plugin-antfu": "^2.3.4", "eslint-plugin-command": "^0.2.3", - "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-import-x": "^3.1.0", "eslint-plugin-jsdoc": "^50.0.0", "eslint-plugin-jsonc": "^2.16.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 94dc3549ff..c2a2f6539e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -17,6 +17,9 @@ importers: '@clack/prompts': specifier: ^0.7.0 version: 0.7.0 + '@eslint-community/eslint-plugin-eslint-comments': + specifier: ^4.3.0 + version: 4.3.0(eslint-ts-patch@9.5.0-0) '@stylistic/eslint-plugin': specifier: ^2.6.2 version: 2.6.2(eslint-ts-patch@9.5.0-0)(typescript@5.5.4) @@ -44,9 +47,6 @@ importers: eslint-plugin-command: specifier: ^0.2.3 version: 0.2.3(eslint-ts-patch@9.5.0-0) - eslint-plugin-eslint-comments: - specifier: ^3.2.0 - version: 3.2.0(eslint-ts-patch@9.5.0-0) eslint-plugin-import-x: specifier: ^3.1.0 version: 3.1.0(eslint-ts-patch@9.5.0-0)(typescript@5.5.4) @@ -870,6 +870,12 @@ packages: cpu: [x64] os: [win32] + '@eslint-community/eslint-plugin-eslint-comments@4.3.0': + resolution: {integrity: sha512-6e93KtgsndNkvwCCa07LOQJSwzzLLxwrFll3+huyFoiiQXWG0KBcmo0Q1bVgYQQDLfWOOZl2VPBsXqZL6vHIBQ==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 + '@eslint-community/eslint-utils@4.4.0': resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -1808,12 +1814,6 @@ packages: peerDependencies: eslint: '>=8' - eslint-plugin-eslint-comments@3.2.0: - resolution: {integrity: sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==} - engines: {node: '>=6.5.0'} - peerDependencies: - eslint: '>=4.19.1' - eslint-plugin-format@0.1.2: resolution: {integrity: sha512-ZrcO3aiumgJ6ENAv65IWkPjtW77ML/5mp0YrRK0jdvvaZJb+4kKWbaQTMr/XbJo6CtELRmCApAziEKh7L2NbdQ==} peerDependencies: @@ -3848,6 +3848,12 @@ snapshots: '@esbuild/win32-x64@0.23.0': optional: true + '@eslint-community/eslint-plugin-eslint-comments@4.3.0(eslint-ts-patch@9.5.0-0)': + dependencies: + escape-string-regexp: 4.0.0 + eslint: eslint-ts-patch@9.5.0-0 + ignore: 5.3.1 + '@eslint-community/eslint-utils@4.4.0(eslint-ts-patch@9.5.0-0)': dependencies: eslint: eslint-ts-patch@9.5.0-0 @@ -5040,12 +5046,6 @@ snapshots: eslint: eslint-ts-patch@9.5.0-0 eslint-compat-utils: 0.1.2(eslint-ts-patch@9.5.0-0) - eslint-plugin-eslint-comments@3.2.0(eslint-ts-patch@9.5.0-0): - dependencies: - escape-string-regexp: 1.0.5 - eslint: eslint-ts-patch@9.5.0-0 - ignore: 5.3.1 - eslint-plugin-format@0.1.2(eslint-ts-patch@9.5.0-0): dependencies: '@dprint/formatter': 0.3.0 diff --git a/src/plugins.ts b/src/plugins.ts index aedc22bc6a..f9abd14a9c 100644 --- a/src/plugins.ts +++ b/src/plugins.ts @@ -2,7 +2,7 @@ // @ts-nocheck export { default as pluginAntfu } from 'eslint-plugin-antfu' -export { default as pluginComments } from 'eslint-plugin-eslint-comments' +export { default as pluginComments } from '@eslint-community/eslint-plugin-eslint-comments' export * as pluginImport from 'eslint-plugin-import-x' export { default as pluginNode } from 'eslint-plugin-n' export { default as pluginUnicorn } from 'eslint-plugin-unicorn'