From d422395bce243aabb6e7ff2da4746712ec11f4c0 Mon Sep 17 00:00:00 2001 From: Claudio DeSouza Date: Thu, 16 Apr 2026 12:50:44 +0100 Subject: [PATCH] [cr149][WIP] Fixing `@typescript-eslint/no-explicit-any` warnings Chromium changes: https://chromium.googlesource.com/chromium/src/+/8f97262a2cc5aa37fcd710c3c141eb7f08c01f92 commit 8f97262a2cc5aa37fcd710c3c141eb7f08c01f92 Author: dpapad Date: Wed Apr 15 15:03:48 2026 -0700 WebUI: Enable @typescript-eslint/no-explicit-any where possible. Since there are too many violations across the codebase, enabling this check by default will take a while. Instead of waiting until all violations are fixed before the check is enabled anywhere, enabling it for all targets that already don't exhibit any violations. As the remaining offending targets are fixed they will be removed from the exception list to ensure they can no longer regress after being fixed. The new check is skipped on Ash-only WebUI targets for now. Bug: 494464740 Change-Id: Iadaa8718b1bb6e0188b80615cf2aff4ec3193588 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7763564 Reviewed-by: John Lee Commit-Queue: Demetrios Papadopoulos Cr-Commit-Position: refs/heads/main@{#1615435} --- patches/ui-webui-resources-tools-build_webui.gni.patch | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/patches/ui-webui-resources-tools-build_webui.gni.patch b/patches/ui-webui-resources-tools-build_webui.gni.patch index 03f59cd5122..d6ebe6192fe 100644 --- a/patches/ui-webui-resources-tools-build_webui.gni.patch +++ b/patches/ui-webui-resources-tools-build_webui.gni.patch @@ -27,7 +27,15 @@ index dc93e6525d54e270d5e9e1141e31d8359f24378f..297605755ead5259867c97f255a4a87b if (is_ash_webui) { enable_web_component_missing_deps = false } -@@ -826,7 +828,7 @@ template("build_webui") { +@@ -631,6 +633,7 @@ template("build_webui") { + "//ui/webui/resources/cr_components/searchbox", + "//ui/webui/resources/cr_elements", + "//ui/webui/resources/js", ++ "//brave/ui/webui/resources", + ] + + if (is_android) { +@@ -855,7 +858,7 @@ template("build_webui") { } if (!generate_grdp) {