Skip to content

Commit

Permalink
feat: npm-plugin-node to npm-plugin-n
Browse files Browse the repository at this point in the history
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
  • Loading branch information
aladdin-add committed Jan 30, 2024
1 parent 88daaf5 commit 7efcf5a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/config/presets/internal/replacements.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const presets: Record<string, Preset> = {
'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',
Expand Down Expand Up @@ -181,6 +182,17 @@ export const presets: Record<string, Preset> = {
},
],
},
'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: [
Expand Down

0 comments on commit 7efcf5a

Please sign in to comment.