Преглед изворни кода

chore: eslint rules overrides (#6729)

Co-authored-by: pengbo43 <pengbo43@jd.com>
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
pengbo пре 3 година
родитељ
комит
3a13074292
1 измењених фајлова са 8 додато и 0 уклоњено
  1. 8 0
      .eslintrc.js

+ 8 - 0
.eslintrc.js

@@ -69,6 +69,14 @@ module.exports = {
         'no-restricted-globals': ['error', ...NodeGlobals],
         'no-restricted-syntax': 'off'
       }
+    },
+    // Node scripts
+    {
+      files: ['scripts/**', './*.js', 'packages/**/index.js', 'packages/size-check/**'],
+      rules: {
+        'no-restricted-globals': 'off',
+        'no-restricted-syntax': 'off'
+      }
     }
   ]
 }