From b3b2f7088a90942976055020f5edbdfb01720b53 Mon Sep 17 00:00:00 2001 From: johnny1093 <46250921+jsmorabito@users.noreply.github.com> Date: Sat, 11 Jul 2026 10:03:28 -0400 Subject: [PATCH] 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. --- eslint.config.mts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/eslint.config.mts b/eslint.config.mts index 582df90..2060b36 100644 --- a/eslint.config.mts +++ b/eslint.config.mts @@ -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', + }, + }, );