]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: enable node env support in eslint for script&config files linusborg/fix-eslint-config-node 7690/head
authorThorsten Luenborg <t.luenborg@googlemail.com>
Sat, 11 Feb 2023 22:43:37 +0000 (23:43 +0100)
committerThorsten Luenborg <t.luenborg@googlemail.com>
Sat, 11 Feb 2023 22:43:37 +0000 (23:43 +0100)
.eslintrc.cjs

index 5d096dd3ab2367bbe066c9e182f1c9d2d263adbe..09a8af45d6c8f0ac75852c23a90f21e422997b02 100644 (file)
@@ -76,10 +76,13 @@ module.exports = {
     {
       files: [
         'scripts/**',
-        './*.js',
+        './*.{cjs,js,ts}',
         'packages/**/index.js',
         'packages/size-check/**'
       ],
+      env: {
+        node: true
+      },
       rules: {
         'no-restricted-globals': 'off',
         'no-restricted-syntax': 'off'