Skip to content

Commit

Permalink
Fix ESLint tests
Browse files Browse the repository at this point in the history
The upgrade to ESLint 7.0.0 broke our custom rule tests. It seems
we were affected by eslint/eslint#13293
after all.

R=jacktfranklin@chromium.org

Change-Id: I3dcf8b7e15f1bc6a26c2fa069f24241e87f07627
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2538840
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
  • Loading branch information
TimvdLippe authored and Commit Bot committed Nov 16, 2020
1 parent 97868bd commit 66f80d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/eslint_rules/lib/check_license_header.js
Expand Up @@ -187,7 +187,7 @@ module.exports = {
return;
}

const {leading: comments} = context.getComments(node.body[0]);
const comments = context.getSourceCode().getCommentsBefore(node.body[0]);

if (!comments || comments.length === 0) {
context.report({
Expand Down

0 comments on commit 66f80d9

Please sign in to comment.