diff --git a/knip.json b/knip.json index e76b8e29c..9d85ac674 100644 --- a/knip.json +++ b/knip.json @@ -1,8 +1,14 @@ { "$schema": "https://unpkg.com/knip@latest/schema.json", - "entry": ["src/index.ts!", "test/**/*.ts!", "test/**/*.tsx!"], + "entry": [ + "src/index.ts!", + "test/**/*.ts!", + "test/**/*.tsx!", + "src/tests/*.ts!" + ], "ignore": ["test/cases/fixes/importExtensions/*"], "ignoreBinaries": ["typestat"], + "ignoreDependencies": ["react", "prop-types"], "ignoreExportsUsedInFile": { "interface": true, "type": true diff --git a/package.json b/package.json index 64b4d99cd..d24874a1e 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "eslint-plugin-regexp": "3.1.0", "eslint-plugin-yml": "3.3.2", "husky": "9.1.7", - "knip": "6.9.0", + "knip": "6.11.0", "lint-staged": "16.4.0", "markdownlint": "0.40.0", "markdownlint-cli": "0.48.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f4fc1a662..2f2c4bc19 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -88,8 +88,8 @@ importers: specifier: 9.1.7 version: 9.1.7 knip: - specifier: 6.9.0 - version: 6.9.0(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0) + specifier: 6.11.0 + version: 6.11.0(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0) lint-staged: specifier: 16.4.0 version: 16.4.0 @@ -2473,8 +2473,8 @@ packages: keyv@4.5.4: resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==} - knip@6.9.0: - resolution: {integrity: sha512-2GLjxteBwmsSA3Z5sJZpPDaNPBIMnlm4/9Nx4CZadEK7YccJZ2/4kwKgPWhVYEqxhwhD0WO4txWXNGTO/Odkkg==} + knip@6.11.0: + resolution: {integrity: sha512-84PTlN8Q5smLpTbzs8smTVh8PMbTDXtw0tFksXq/m6auGFC/KSzJykKFmnYh3As38kiWDkoDBvdTTyKk5M1TAQ==} engines: {node: ^20.19.0 || >=22.12.0} hasBin: true @@ -5708,7 +5708,7 @@ snapshots: dependencies: json-buffer: 3.0.1 - knip@6.9.0(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0): + knip@6.11.0(@emnapi/core@1.10.0)(@emnapi/runtime@1.10.0): dependencies: fdir: 6.5.0(picomatch@4.0.4) formatly: 0.3.0