From 15c298faf2e5ccd141d3f0868af626fac4e87f9a Mon Sep 17 00:00:00 2001 From: Wonsuk Choi Date: Thu, 1 Oct 2026 09:35:49 +0900 Subject: [PATCH 1/2] chore(tsconfig.json): add 'knip.ts' to 'include' for type-aware linting --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 22bbf5db639..af8366184b6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -29,5 +29,5 @@ "target": "ES2020", "types": ["node"] }, - "include": ["*.config.*"] + "include": ["*.config.*", "knip.ts"] } From 1fede280ac24c9fe4c9c0afec6d878ed07a30421 Mon Sep 17 00:00:00 2001 From: Wonsuk Choi Date: Thu, 1 Oct 2026 09:35:49 +0900 Subject: [PATCH 2/2] chore(knip): remove unnecessary nullish fallback for 'optionalDependencies' --- knip.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/knip.ts b/knip.ts index 2e962f87e2d..f3e8040d8a6 100644 --- a/knip.ts +++ b/knip.ts @@ -13,9 +13,9 @@ export default { ignore: ['scripts/prepack.js'], // Strict mode excludes optional dependencies. Read the declared names // so removing a declaration still causes an unlisted dependency error. - ignoreDependencies: Object.keys( - angularQuery.optionalDependencies ?? {}, - ).map((dependency) => `${dependency}!`), + ignoreDependencies: Object.keys(angularQuery.optionalDependencies).map( + (dependency) => `${dependency}!`, + ), }, 'packages/query-codemods': { entry: ['src/v4/**/*.cjs', 'src/v5/**/*.cjs'],