[eslint] Reenable no-floating-promise (#1153)

This plugin has been fixed upstream to be compatible with ESLint 9.0.

Hence we can partially revert #1144 to reenable it as part of our lint
checks.
This commit is contained in:
Maksim Ivanov
2024-06-11 17:32:26 +02:00
committed by GitHub
parent d8f9b25732
commit aca1a059ae
+3
View File
@@ -2,6 +2,8 @@ env:
browser: true browser: true
es2020: true es2020: true
extends: eslint:recommended extends: eslint:recommended
plugins:
- no-floating-promise
rules: rules:
# Disabled as the linter doesn't understand Closure Compiler style imports # Disabled as the linter doesn't understand Closure Compiler style imports
# ("goog.require") and Closure Library's global symbols. # ("goog.require") and Closure Library's global symbols.
@@ -54,6 +56,7 @@ rules:
prefer-promise-reject-errors: error prefer-promise-reject-errors: error
semi-style: error semi-style: error
semi: error semi: error
no-floating-promise/no-floating-promise: error
overrides: overrides:
# Parse specific files as ES Modules (the standard parser would fail). # Parse specific files as ES Modules (the standard parser would fail).
- files: - files: