]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
workflow: disable lint restrictions in tests
authorEvan You <yyx990803@gmail.com>
Fri, 12 Jun 2020 19:59:05 +0000 (15:59 -0400)
committerEvan You <yyx990803@gmail.com>
Fri, 12 Jun 2020 19:59:05 +0000 (15:59 -0400)
.eslintrc.js

index be764e2102044bdfdb46d38030fc5cd3027d2242..14641a8157dbde00af415d5299c330ee65386c1c 100644 (file)
@@ -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: {