Skip to content

Commit

Permalink
fix: fix eslint environment
Browse files Browse the repository at this point in the history
  • Loading branch information
limtingzhi committed May 28, 2024
1 parent 3f66bed commit 1cd30e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
sourceType: 'module',
},
env: {
'es2023': true,
'shared-node-browser': true,
},
rules: {},
Expand All @@ -25,6 +26,7 @@ module.exports = {
'**/*{.,_}{test,spec,stories,bench,fixture}.{js,jsx}', // tests where the extension or filename suffix denotes that it is a test
],
env: {
'es2023': true,
'jest': true,
'shared-node-browser': true,
},
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module.exports = {
].map(require.resolve),
env: {
'browser': true,
'es2023': true,
'shared-node-browser': true,
},
rules: {},
Expand Down
1 change: 1 addition & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
env: {
'es2023': true,
'node': true,
'shared-node-browser': false,
},
Expand Down

0 comments on commit 1cd30e4

Please sign in to comment.