Update
This commit is contained in:
@ -11,6 +11,10 @@ export function defineConfig(config: Linter.Config): Linter.Config;
|
||||
export function defineConfig(config: Linter.Config[]): Linter.Config[];
|
||||
|
||||
export function defineConfig(config: Linter.Config | Linter.Config[]) {
|
||||
if (!config || (Array.isArray(config) && config.some(c => !c))) {
|
||||
console.trace();
|
||||
throw new Error('Config cannot be empty');
|
||||
}
|
||||
return config;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user