From f39ad0b53982a6650984bcc2629dad657e5181b3 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 12 Jun 2020 15:59:05 -0400 Subject: [PATCH] workflow: disable lint restrictions in tests --- .eslintrc.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index be764e21..14641a81 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -18,6 +18,14 @@ module.exports = { ] }, overrides: [ + // tests, no restrictions (runs in Node / jest with jsdom) + { + files: ['**/__tests__/**'], + rules: { + 'no-restricted-globals': 'off', + 'no-restricted-syntax': 'off' + } + }, // Packages targeting DOM { files: ['packages/{vue,runtime-dom}/**'], @@ -33,7 +41,7 @@ module.exports = { 'no-restricted-syntax': 'off' } }, - // Private package, no syntax restrictions + // Private package, browser only + no syntax restrictions { files: ['packages/template-explorer/**'], rules: {