more lint fixes
This commit is contained in:
parent
3e545cdaa9
commit
67c073e4f2
7 changed files with 29 additions and 15 deletions
|
|
@ -43,7 +43,7 @@ export class FileLoader implements ConfigLoader {
|
|||
try {
|
||||
const content = await readFile(filepath, 'utf-8');
|
||||
return JSON.parse(content);
|
||||
} catch (error: any) {
|
||||
} catch (error: unknown) {
|
||||
// File not found is not an error (configs are optional)
|
||||
if (error.code === 'ENOENT') {
|
||||
return null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue