Jack Franklin
fd72c071cc
Enforce alignment of JSDoc comments
...
This CL adds the eslint-plugin-jsdoc plugin and enables just one rule,
`jsdoc/check-alignment`, which ensures that all the lines in a comment
are correctly aligned. For example:
```
/**
* foo
* bar
*/
```
Would fail the check and be corrected to:
```
/**
* foo
* bar
*/
```
DISABLE_THIRD_PARTY_CHECK=deliberate install + use of
eslint-plugin-jsdoc node_module
Bug: none
Change-Id: I969983cd550653654a334ede3409b8c850467245
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/4110906
Commit-Queue: Andres Olivares <andoli@chromium.org >
Reviewed-by: Andres Olivares <andoli@chromium.org >
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org >
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org >
2022-12-21 12:30:47 +00:00
Jack Franklin
3a80260722
Inline type imports in front_end
...
This CL enables the `inline_type_imports` rule for devtools-frontend,
and is the result of running the auto-fixer to update all imports
accordingly.
Bug: 1319340
Change-Id: I303256476fd4e94f4505bbf4355c0070ac101aa9
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3752799
Reviewed-by: Alex Rudenko <alexrudenko@chromium.org >
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org >
2022-07-13 09:26:00 +00:00
Jack Franklin
311b4a28a0
De-prototype #deepActiveElement
...
Removes `deepActiveElement` from the prototype and defines a util for
it.
Bug: 1050549
Change-Id: I0376ba0b3a00d82c070f2d4ada12350771046790
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3586910
Reviewed-by: Simon Zünd <szuend@chromium.org >
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org >
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org >
2022-04-19 11:12:54 +00:00
Tim van der Lippe
2d9a95ce7b
Suppress all existing promise races
...
To suppress the races, we mark these invocations with `void` per
the instructions of `no-floating-promises`. This explicitly marks
these statements as side-effect promises.
Engineers can later analyze these void statements and determine
whether the promise races are intentional or accidental.
R=jacktfranklin@chromium.org
Bug: 1239617
Change-Id: I6b7a24cf21029d6ff73b112b3e8255ebab8c60ec
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3366467
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org >
Commit-Queue: Tim Van der Lippe <tvanderlippe@chromium.org >
Auto-Submit: Tim Van der Lippe <tvanderlippe@chromium.org >
2022-01-04 16:08:08 +00:00
Kateryna Prokopenko
bec2a5c6bc
Use type-safe events for DatabaseQueryView
...
Bug: 1228674
Change-Id: If996ed14669886851ddf4c573e5deaa192fce7b4
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3162313
Reviewed-by: Simon Zünd <szuend@chromium.org >
Commit-Queue: Kateryna Prokopenko <kprokopenko@chromium.org >
2021-09-16 07:05:05 +00:00
Jan Scheffler
c633cbd38f
[Underscore Migration] Remove remaining comments
...
This patch is part of the underscore migration that adds the private
keyword to all properties that start with an underscore and removes the
underscore.
R=tvanderlippe@chromium.org
Bug:chromium:1207342
Change-Id: If448f839c30efc05dd980d934d8174b3495fd600
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3097683
Reviewed-by: Simon Zünd <szuend@chromium.org >
Commit-Queue: Simon Zünd <szuend@chromium.org >
Auto-Submit: Jan Scheffler <janscheffler@chromium.org >
2021-08-17 07:44:11 +00:00
Jan Scheffler
cd49c32674
[Underscore Migration] Migrate panels/application
...
This patch is part of the underscore migration that adds the private
keyword to all properties that start with an underscore and removes the
underscore.
R=tvanderlippe@chromium.org
Bug:chromium:1207342
Change-Id: Ib0ba7b50bf3193a647a81c6c702b24bd4a59b05f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3090585
Commit-Queue: Jan Scheffler <janscheffler@chromium.org >
Auto-Submit: Jan Scheffler <janscheffler@chromium.org >
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org >
2021-08-14 09:53:20 +00:00
Kriti Sapra
56daf78ddb
Updated no-multiple-empty-lines to only have 1 as max
...
DISABLE_THIRD_PARTY_CHECK=updated linting formatting
Bug: 1106746
Change-Id: I371bca95b7cf1e8b7eaa4f9e7c3860af4eedee3e
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3057042
Commit-Queue: Kriti Sapra <kritisapra@google.com >
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org >
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org >
2021-07-28 14:10:15 +00:00
Tim van der Lippe
877f04aa0e
Remove eslint-disable statements from type imports
...
We no longer use the no-unused-vars and instead use the version
of typescript-eslint. The latter can properly detect unused
type-import usages. Therefore, we can remove the eslint-disable
statements, which are essentially noops.
This CL is the result of replacing
```
import type (.*) // eslint-disable-line no-unused-vars
```
with
```
import type $1
```
R=jacktfranklin@chromium.org
Bug: none
Change-Id: I141edcb7125e414c405760af1e4058bfdc6e30f3
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3048473
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org >
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org >
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org >
2021-07-26 12:53:27 +00:00
Sigurd Schneider
2fa30328bc
Remove unnecessary casts from document.createElement
...
Back when closurejs still roamed the types of DevTools front-end,
casts were required to get the right HTMLElement subtype for
document.createElement. It turns out some of these casts still
lingered in the code-base, and this CL removes them.
Bug: chromium:1172300
Change-Id: Idd1856bad38e2d4e92e9cdff9a621ee767657f8c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2999486
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org >
Commit-Queue: Sigurd Schneider <sigurds@chromium.org >
2021-07-01 08:11:48 +00:00
Jack Franklin
a75ae7cbb3
Enforce import type when importing TS types.
...
Bug: none
Change-Id: I02ef1182143b7fe091ce92d59f04ac2188903e0d
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2886925
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org >
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org >
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org >
Reviewed-by: Mathias Bynens <mathias@chromium.org >
2021-05-11 14:00:22 +00:00
Tim van der Lippe
8499fe2ad0
Move data_grid to ui/legacy/components/data_grid
...
It also updates the ES Modules ESLint rule to allow for the import
from DataGrid to the legacy UI folder, as they are now nested.
R=aerotwist@chromium.org
Bug: 1187573
Change-Id: I8a6a577b10464216efafed10e62f24ca0c06e194
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2821870
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org >
Reviewed-by: Paul Lewis <aerotwist@chromium.org >
2021-04-12 17:21:23 +00:00
Tim van der Lippe
aa61faf631
Move ui to ui/legacy
...
R=jacktfranklin@chromium.org
Bug: 1187573
Change-Id: Ifc536ba79b0a324aa38e76aa294c73cd699c6536
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2810839
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org >
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org >
2021-04-07 16:06:59 +00:00
Tim van der Lippe
bb352e6a14
Move i18n to core/i18n
...
R=aerotwist@chromium.org
DISABLE_THIRD_PARTY_CHECK=i18n move
No-Presubmit: true
Bug: 1187573
Change-Id: I3dd02956bcf078e0e3b059240ea583b3a83c09b2
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2799756
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org >
Reviewed-by: Paul Lewis <aerotwist@chromium.org >
2021-04-01 18:31:44 +00:00
Tim van der Lippe
c59708f4cc
Move resources to panels/application
...
R=aerotwist@chromium.org
Bug: 1187573
Change-Id: Ief484b38797a540a955769c070fe411b40747c06
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2794549
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org >
Reviewed-by: Paul Lewis <aerotwist@chromium.org >
2021-03-31 15:44:02 +00:00