lint: defer depend/ban-dependencies for package.json build tooling

Scope off depend/ban-dependencies for package.json specifically
(JSON has no comment syntax, so an inline eslint-disable isn't
possible here). builtin-modules/node-fetch/npm-run-all are dev-only
build tooling with replacement risk and no end-user impact; tracked
as a follow-up rather than swapped in this branch.
This commit is contained in:
johnny1093 2026-07-11 10:03:28 -04:00
parent 3555762598
commit b3b2f7088a

View file

@ -74,4 +74,16 @@ export default defineConfig(
'obsidianmd/prefer-create-el': 'off',
},
},
{
files: ['package.json'],
rules: {
// builtin-modules, node-fetch, and npm-run-all are flagged as
// having more modern replacements. They're dev-only build
// tooling (used from scripts/, never bundled into main.js), so
// swapping them carries build-breakage risk for no end-user
// benefit. Deferred to a dedicated follow-up rather than bundled
// into this lint-cleanup branch.
'depend/ban-dependencies': 'off',
},
},
);