diff --git a/packages/create-vite/template-react-ts/.eslintrc.cjs b/packages/create-vite/template-react-ts/.eslintrc.cjs index 4020bcbf409dd2..f40e7b08696a4d 100644 --- a/packages/create-vite/template-react-ts/.eslintrc.cjs +++ b/packages/create-vite/template-react-ts/.eslintrc.cjs @@ -1,5 +1,5 @@ module.exports = { - env: { browser: true, es2020: true }, + env: { browser: true, es2020: true, node:true }, extends: [ 'eslint:recommended', 'plugin:@typescript-eslint/recommended', diff --git a/packages/create-vite/template-react/.eslintrc.cjs b/packages/create-vite/template-react/.eslintrc.cjs index ec601b2ceaac71..0727e28a100758 100644 --- a/packages/create-vite/template-react/.eslintrc.cjs +++ b/packages/create-vite/template-react/.eslintrc.cjs @@ -1,5 +1,5 @@ module.exports = { - env: { browser: true, es2020: true }, + env: { browser: true, es2020: true, node:true }, extends: [ 'eslint:recommended', 'plugin:react/recommended',