@adamhl8/configs 0.15.16 → 0.15.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@ import { knipConfig } from "./knip.js";
|
|
|
2
2
|
import "./index.js";
|
|
3
3
|
const entries = knipConfig().entry;
|
|
4
4
|
const preprocess = (options) => {
|
|
5
|
-
const filteredConfigurationHints = [...options.configurationHints].filter((hint) => !(typeof hint.identifier === "string" &&
|
|
5
|
+
const filteredConfigurationHints = [...options.configurationHints].filter((hint) => !(entries.some((entry) => typeof hint.identifier === "string" && hint.identifier.includes(entry)) && hint.type === "entry-empty"));
|
|
6
6
|
options.configurationHints = new Set(filteredConfigurationHints);
|
|
7
7
|
const filteredUnlisted = Object.fromEntries(Object.entries(options.issues.unlisted).filter(([key]) => !key.includes("prettier")));
|
|
8
8
|
options.issues.unlisted = filteredUnlisted;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"knip-preprocessor.js","names":["preprocess: Preprocessor"],"sources":["../src/knip-preprocessor.ts"],"sourcesContent":["import type { Preprocessor } from \"knip\"\n\n// biome-ignore lint/plugin: ignore\nimport { knipConfig } from \"./index.ts\"\n\nconst entries = knipConfig().entry as string[]\n\nconst preprocess: Preprocessor = (options) => {\n // ignore the \"Refine entry pattern (no matches)\" configuration hints for entries in the base config\n const filteredConfigurationHints = [...options.configurationHints].filter(\n (hint) =>\n !(typeof hint.identifier === \"string\" &&
|
|
1
|
+
{"version":3,"file":"knip-preprocessor.js","names":["preprocess: Preprocessor"],"sources":["../src/knip-preprocessor.ts"],"sourcesContent":["import type { Preprocessor } from \"knip\"\n\n// biome-ignore lint/plugin: ignore\nimport { knipConfig } from \"./index.ts\"\n\nconst entries = knipConfig().entry as string[]\n\nconst preprocess: Preprocessor = (options) => {\n // ignore the \"Refine entry pattern (no matches)\" configuration hints for entries in the base config\n const filteredConfigurationHints = [...options.configurationHints].filter(\n (hint) =>\n !(\n entries.some((entry) => typeof hint.identifier === \"string\" && hint.identifier.includes(entry)) &&\n hint.type === \"entry-empty\"\n ),\n )\n options.configurationHints = new Set(filteredConfigurationHints)\n\n const filteredUnlisted = Object.fromEntries(\n Object.entries(options.issues.unlisted).filter(([key]) => !key.includes(\"prettier\")),\n )\n options.issues.unlisted = filteredUnlisted\n\n return options\n}\n\nexport default preprocess\n"],"mappings":";;AAKA,MAAM,UAAU,YAAY,CAAC;AAE7B,MAAMA,cAA4B,YAAY;CAE5C,MAAM,6BAA6B,CAAC,GAAG,QAAQ,mBAAmB,CAAC,QAChE,SACC,EACE,QAAQ,MAAM,UAAU,OAAO,KAAK,eAAe,YAAY,KAAK,WAAW,SAAS,MAAM,CAAC,IAC/F,KAAK,SAAS,eAEnB;AACD,SAAQ,qBAAqB,IAAI,IAAI,2BAA2B;CAEhE,MAAM,mBAAmB,OAAO,YAC9B,OAAO,QAAQ,QAAQ,OAAO,SAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,SAAS,WAAW,CAAC,CACrF;AACD,SAAQ,OAAO,WAAW;AAE1B,QAAO;;AAGT,IAAA,4BAAe"}
|
package/dist/tsconfig.base.json
CHANGED