From: Evan You Date: Fri, 12 Jun 2020 19:59:05 +0000 (-0400) Subject: workflow: disable lint restrictions in tests X-Git-Tag: v3.0.0-beta.15~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f39ad0b53982a6650984bcc2629dad657e5181b3;p=thirdparty%2Fvuejs%2Fcore.git workflow: disable lint restrictions in tests --- diff --git a/.eslintrc.js b/.eslintrc.js index be764e2102..14641a8157 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: {