Disable @typescript-eslint/no-implicit-any-catch

(Strict mode in TS 4.4 enables useUnknownInCatchVariables, so this is redundant.)
This commit is contained in:
Max Isom 2021-12-03 10:36:06 -05:00
parent b52f9253c2
commit 70a55e9a2e
No known key found for this signature in database
GPG key ID: 25C9B1A7F6798880
2 changed files with 4 additions and 3 deletions

View file

@ -63,7 +63,8 @@
"new-cap": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unused-vars-experimental": "error",
"@typescript-eslint/prefer-readonly-parameter-types": "off"
"@typescript-eslint/prefer-readonly-parameter-types": "off",
"@typescript-eslint/no-implicit-any-catch": "off"
}
},
"husky": {

View file

@ -65,8 +65,8 @@ export default class FileCacheProvider {
await fs.rename(tmpPath, finalPath);
await FileCache.create({hash, bytes: stats.size, accessedAt: new Date()});
} catch (e: unknown) {
debug(`Caught error trying to move a finished cache file: ${String(e)}`);
} catch (error) {
debug('Errored when moving a finished cache file:', error);
}
}