Skip to content

Commit

Permalink
fix: 'module' is not defined eslint error in template-react & templat…
Browse files Browse the repository at this point in the history
…e-react-ts (fix vitejs#13517)
  • Loading branch information
winterlood committed Jun 19, 2023
1 parent 711dd80 commit 63899b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/create-vite/template-react-ts/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
2 changes: 1 addition & 1 deletion packages/create-vite/template-react/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
env: { browser: true, es2020: true },
env: { browser: true, es2020: true, node:true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
Expand Down

1 comment on commit 63899b2

@Sauce101
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should tell ESLint to recognize the "module" keyword in the context of node.js modules.
Thanks.

Please sign in to comment.