[eslint] Enable useful rules

@typescript-eslint/no-inferrable-types Simplifies the code and makes
type be more specific.

@typescript-eslint/return-await In theory more performant, but also
provides better debugging experience.

@typescript-eslint/ban-ts-comment Disallow all but ts-expect-error, as
else the error may get fixed not remove and later mask unrelated issues

Bug: 397260638
Change-Id: I09f268eb9157336635c378fa76546a4196e448e9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6281149
Reviewed-by: Victor Porof <victorporof@chromium.org>
Commit-Queue: Nikolay Vitkov <nvitkov@chromium.org>
Auto-Submit: Nikolay Vitkov <nvitkov@chromium.org>
This commit is contained in:
Nikolay Vitkov
2025-02-19 10:49:41 -08:00
committed by Devtools-frontend LUCI CQ
parent dcf675078d
commit d36860c0b4
346 changed files with 1331 additions and 1314 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ class Templates:
* ): void,
* }}
*/
// @ts-ignore typedef
// @ts-expect-error typedef
export let InspectorBackendAPI;
/**