mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 23:09:49 +02:00
fix(#4003): Remove unhandled promises
Add eslint rules to check for unhandled promises Fix all existing unhandled promise issues
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user