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 }; };