fix(#4003): Remove unhandled promises

Add eslint rules to check for unhandled promises
Fix all existing unhandled promise issues
This commit is contained in:
Sidharth Vinod
2023-01-18 00:47:49 +05:30
parent 549483d19b
commit afe3f593e1
13 changed files with 504 additions and 371 deletions

View File

@@ -23,7 +23,7 @@ const lint = async (file: string): Promise<boolean> => {
return result.errorCount === 0;
};
(async () => {
const main = async () => {
const jisonFiles = await globby(['./packages/**/*.jison', '!./**/node_modules/**'], {
dot: true,
});
@@ -31,4 +31,6 @@ const lint = async (file: string): Promise<boolean> => {
if (lintResults.includes(false)) {
process.exit(1);
}
})();
};
void main();