commit | 509c3d58cd5b9fe0cea5004eeb2b146eda6db70a | [log] [tgz] |
---|---|---|
author | Teresa Mao <temao@chromium.org> | Wed Feb 12 21:58:14 2025 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Feb 12 21:58:14 2025 |
tree | 94e3a99a39f697369026107ae8e942781dc2a222 | |
parent | d542f77704cac6d503415701e4213c61cc18d35a [diff] |
WebUI: Fix ESLint @typescript-eslint/no-unnecessary-type-assertion errors, part 1. The main focus of this CL is to eliminate the remaining non-null type casts for CrLitElements#shadowRoot in chrome/browser/resources. Additionally, this CL removes other unnecessary type assertion in files that contains CrLitElement. All changes can be identified by applying @typescript-eslint/no-unnecessary-type-assertion in ui/webui/resources/tools/eslint_ts.config_base.mjs locally. This CL is part of enabling build-time and type-aware ESLint checks in build_webui(), which will detect such violations moving forward. Bug: 393525665 Change-Id: I564b14e0ca2f7176030c92e274596ff5be24bcf0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6255497 Reviewed-by: Demetrios Papadopoulos <dpapad@chromium.org> Commit-Queue: Teresa Mao <temao@chromium.org> Cr-Commit-Position: refs/heads/main@{#1419539}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.