We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
webpro
Learn more about funding links in repositories.
Report abuse
1 parent 67e9085 commit aa6e265Copy full SHA for aa6e265
packages/knip/src/plugins/cspell/index.ts
@@ -19,7 +19,7 @@ const config = [
19
];
20
21
const resolveConfig: ResolveConfig<CSpellConfig> = config => {
22
- return (config.import ?? []).map(toDeferResolve);
+ return [config?.import ?? []].flat().map(toDeferResolve);
23
};
24
25
export default {
packages/knip/src/plugins/cspell/types.ts
@@ -1,3 +1,3 @@
1
export type CSpellConfig = {
2
- import?: string[];
+ import?: string | string[];
3
0 commit comments