Skip to content

Commit aa6e265

Browse files
committedOct 30, 2024
Flatten cspell import (fixes #825)
1 parent 67e9085 commit aa6e265

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎packages/knip/src/plugins/cspell/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const config = [
1919
];
2020

2121
const resolveConfig: ResolveConfig<CSpellConfig> = config => {
22-
return (config.import ?? []).map(toDeferResolve);
22+
return [config?.import ?? []].flat().map(toDeferResolve);
2323
};
2424

2525
export default {
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export type CSpellConfig = {
2-
import?: string[];
2+
import?: string | string[];
33
};

0 commit comments

Comments
 (0)
Please sign in to comment.