Skip to content

Commit

Permalink
add knip issue info
Browse files Browse the repository at this point in the history
  • Loading branch information
bsokol-wl committed May 10, 2024
1 parent fd7f027 commit f7e3f98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/eslint/flat-config-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion knip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ const configureTsup: KnipTransformer = config => {

const configurePackage: KnipTransformer = config => {
return {
...config,
...config
};
};

Expand Down

0 comments on commit f7e3f98

Please sign in to comment.