From b57a273024a627980a6263f506e3925670b56b7b Mon Sep 17 00:00:00 2001 From: Yosuke Ota Date: Tue, 23 Jun 2020 11:27:56 +0900 Subject: [PATCH] Fixed CI failing when using ESLint 7.3. (#1217) --- tests/lib/rules/html-indent.js | 1 + tests/lib/rules/script-indent.js | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/lib/rules/html-indent.js b/tests/lib/rules/html-indent.js index d70b03957..316eb9257 100644 --- a/tests/lib/rules/html-indent.js +++ b/tests/lib/rules/html-indent.js @@ -78,6 +78,7 @@ function loadPatterns(additionalValid, additionalInvalid) { return Object.assign({}, pattern, { code, output, errors }) }) + .filter((invalid) => invalid.errors.length > 0) // Empty errors cannot be verified with eslint 7.3. .filter(Boolean) return { diff --git a/tests/lib/rules/script-indent.js b/tests/lib/rules/script-indent.js index 42497d2dd..865e73141 100644 --- a/tests/lib/rules/script-indent.js +++ b/tests/lib/rules/script-indent.js @@ -79,6 +79,7 @@ function loadPatterns(additionalValid, additionalInvalid) { return Object.assign({}, pattern, { code, output, errors }) }) + .filter((invalid) => invalid.errors.length > 0) // Empty errors cannot be verified with eslint 7.3. .filter(Boolean) return {