From fb2f6382b1c40180112eda2d3e5efd56fa2efed4 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Wed, 31 Jul 2024 14:16:02 +1000 Subject: [PATCH] build(ui): add eslint rules for async stuff --- invokeai/frontend/web/.eslintrc.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/invokeai/frontend/web/.eslintrc.js b/invokeai/frontend/web/.eslintrc.js index 519e725fb4..6c409cb164 100644 --- a/invokeai/frontend/web/.eslintrc.js +++ b/invokeai/frontend/web/.eslintrc.js @@ -12,6 +12,10 @@ module.exports = { 'i18next/no-literal-string': 'error', // https://eslint.org/docs/latest/rules/no-console 'no-console': 'error', + // https://eslint.org/docs/latest/rules/no-promise-executor-return + 'no-promise-executor-return': 'error', + // https://eslint.org/docs/latest/rules/require-await + 'require-await': 'error', }, overrides: [ /**