From: Thorsten Luenborg Date: Sat, 11 Feb 2023 22:43:37 +0000 (+0100) Subject: chore: enable node env support in eslint for script&config files X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Flinusborg%2Ffix-eslint-config-node;p=thirdparty%2Fvuejs%2Fcore.git chore: enable node env support in eslint for script&config files --- diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 5d096dd3ab..09a8af45d6 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -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'