[EsLint] Don't use empty blocks
Bug: 397260638
Change-Id: Ibf4389ce952333a7af1877450ded87a480d2041f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6298125
Reviewed-by: Benedikt Meurer <[email protected]>
Commit-Queue: Nikolay Vitkov <[email protected]>
diff --git a/eslint.config.mjs b/eslint.config.mjs
index 0fc11dc..4d69718 100644
--- a/eslint.config.mjs
+++ b/eslint.config.mjs
@@ -174,6 +174,14 @@
},
],
+ 'no-empty': [
+ 'error',
+ {
+ allowEmptyCatch: true,
+ },
+ ],
+ 'no-lonely-if': 'error',
+
'no-empty-character-class': 'error',
'no-global-assign': 'error',
'no-implied-eval': 'error',