Skip to content

Commit 45402c1

Browse files
Lightning00BladeDevtools-frontend LUCI CQ
authored andcommitted
[eslint] Fix deprecation warning
Bug: none Change-Id: Id6d1534aaaf10dd63057fbe337f9b22e67598f94 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6429835 Auto-Submit: Nikolay Vitkov <[email protected]> Commit-Queue: Simon Zünd <[email protected]> Reviewed-by: Simon Zünd <[email protected]>
1 parent 3eb2f86 commit 45402c1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/test/run_lint_check.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,11 @@ async function runESLint(scriptFiles) {
101101
);
102102
if (usedDeprecatedRules.length) {
103103
console.log('Used deprecated rules:');
104-
for (const { ruleId, replaceBy } of usedDeprecatedRules) {
104+
for (const { ruleId, replacedBy } of usedDeprecatedRules) {
105105
console.log(
106-
` Rule ${ruleId} can be replaced with ${replaceBy ?? 'none'}`,
106+
` Rule ${ruleId} can be replaced with ${
107+
replacedBy.join(',') ?? 'none'
108+
}`,
107109
);
108110
}
109111
}

0 commit comments

Comments
 (0)