From 6e3d1046b4b057b5f57214e72f2fad220488d6e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=AF=E7=84=B6?= Date: Mon, 29 Jan 2024 13:52:59 +0800 Subject: [PATCH] feat: npm-plugin-node to npm-plugin-n it was forked from eslint-plugin-node v11.1.0. as the original repository seems no longer maintained. repo link: github.com/eslint-community/eslint-plugin-n npm link: https://www.npmjs.com/package/eslint-plugin-n related discussion: mysticatea/eslint-plugin-node#300 --- lib/config/presets/internal/replacements.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/config/presets/internal/replacements.ts b/lib/config/presets/internal/replacements.ts index d04968eec0d672f..6098436cfa8903e 100644 --- a/lib/config/presets/internal/replacements.ts +++ b/lib/config/presets/internal/replacements.ts @@ -14,6 +14,7 @@ export const presets: Record = { 'replacements:babel-eslint-to-eslint-parser', 'replacements:containerbase', 'replacements:cucumber-to-scoped', + 'replacements:eslint-plugin-node-to-maintenance-fork', 'replacements:fastify-to-scoped', 'replacements:hapi-to-scoped', 'replacements:jade-to-pug', @@ -181,6 +182,17 @@ export const presets: Record = { }, ], }, + 'eslint-plugin-node-to-maintenance-fork': { + description: 'Maintenance fork of `eslint-plugin-node`', + packageRules: [ + { + matchDatasources: ['npm'], + matchPackageNames: ['eslint-plugin-node'], + replacementName: 'eslint-plugin-n', + replacementVersion: '15.7.0', + }, + ], + }, 'fastify-to-scoped': { description: '`fastify` packages became scoped.', packageRules: [