build(ui): add eslint rules for async stuff

This commit is contained in:
psychedelicious 2024-07-31 14:16:02 +10:00
parent 1ddea87c35
commit fb2f6382b1

View File

@ -12,6 +12,10 @@ module.exports = {
'i18next/no-literal-string': 'error', 'i18next/no-literal-string': 'error',
// https://eslint.org/docs/latest/rules/no-console // https://eslint.org/docs/latest/rules/no-console
'no-console': 'error', '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: [ overrides: [
/** /**