Skip to content

Commit

Permalink
fix: base add parserOptions type module
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxudong13804 committed Feb 1, 2024
1 parent 10976c5 commit c3da9bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/configs/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ module.exports = {
node: true,
es2021: true,
},
parserOptions: {
sourceType: "module" // 如果你的代码是 ECMAScript 模块
},
globals: {
AHAPP: 'readonly',
AHJavascriptBridge: 'readonly',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@afuteam/eslint-plugin-fe",
"version": "2.0.3",
"version": "2.0.4",
"description": "AfuTeam ESLint Plugin",
"main": "./lib/index.js",
"exports": {
Expand Down

0 comments on commit c3da9bf

Please sign in to comment.