Skip to content

Commit b57a273

Browse files
authored
Fixed CI failing when using ESLint 7.3. (#1217)
1 parent f3224ba commit b57a273

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: tests/lib/rules/html-indent.js

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ function loadPatterns(additionalValid, additionalInvalid) {
7878

7979
return Object.assign({}, pattern, { code, output, errors })
8080
})
81+
.filter((invalid) => invalid.errors.length > 0) // Empty errors cannot be verified with eslint 7.3.
8182
.filter(Boolean)
8283

8384
return {

Diff for: tests/lib/rules/script-indent.js

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ function loadPatterns(additionalValid, additionalInvalid) {
7979

8080
return Object.assign({}, pattern, { code, output, errors })
8181
})
82+
.filter((invalid) => invalid.errors.length > 0) // Empty errors cannot be verified with eslint 7.3.
8283
.filter(Boolean)
8384

8485
return {

0 commit comments

Comments
 (0)