Commit 11e8f26
no-imperative-dom-api: Inline local variables definition in template
By default we refer to the variable by name, but the variable definition would be removed if all it's references are processed.
Bug: 407751147
Change-Id: I0088e34c630c420868ff4e206a10dd68efaf4fdf
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6438846
Auto-Submit: Danil Somsikov <[email protected]>
Reviewed-by: Philip Pfaffe <[email protected]>
Commit-Queue: Philip Pfaffe <[email protected]>1 parent 45f5c04 commit 11e8f26
File tree
2 files changed
+7
-1
lines changed- scripts/eslint_rules
- lib/no-imperative-dom-api
- tests
2 files changed
+7
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
433 | 433 | | |
434 | 434 | | |
435 | 435 | | |
| 436 | + | |
| 437 | + | |
436 | 438 | | |
437 | 439 | | |
438 | 440 | | |
| |||
442 | 444 | | |
443 | 445 | | |
444 | 446 | | |
| 447 | + | |
445 | 448 | | |
446 | 449 | | |
447 | 450 | | |
| |||
0 commit comments