From f7e3f98944f9de2e999d0d50c8ceb4860c3c1df9 Mon Sep 17 00:00:00 2001 From: Brian Sokol Date: Fri, 10 May 2024 15:53:29 -0500 Subject: [PATCH] add knip issue info --- docs/eslint/flat-config-migration.md | 6 ++++++ knip.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/eslint/flat-config-migration.md b/docs/eslint/flat-config-migration.md index 03ca5c29..428fa171 100644 --- a/docs/eslint/flat-config-migration.md +++ b/docs/eslint/flat-config-migration.md @@ -207,3 +207,9 @@ const config = concat( export default config; ``` + +## Known Issues + +### Knip and top level await + +Currently, Knip has [known issues](https://knip.dev/reference/known-issues#ts-config-files-using-esm-features) working with TypeScript projects that use ESM features. This means the top-level await used with the `concat` function breaks Knip. It should be disabled for eslint config files until a solution is found. diff --git a/knip.ts b/knip.ts index c4801afe..1067ef90 100644 --- a/knip.ts +++ b/knip.ts @@ -99,7 +99,7 @@ const configureTsup: KnipTransformer = config => { const configurePackage: KnipTransformer = config => { return { - ...config, + ...config }; };