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 860508e
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 @@ -23,6 +23,7 @@ export const presets: Record<string, Preset> = {
'replacements:middie-to-scoped',
'replacements:now-to-vercel',
'replacements:npm-run-all-to-maintenance-fork',
'replacements:eslint-plugin-node-to-maintenance-fork',
'replacements:parcel-css-to-lightningcss',
'replacements:passport-saml',
'replacements:react-query-devtools-to-scoped',
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 860508e

Please sign in to comment.