diff --git a/lib/configs/base.js b/lib/configs/base.js index 2b25cd6..c7cab4d 100644 --- a/lib/configs/base.js +++ b/lib/configs/base.js @@ -10,6 +10,9 @@ module.exports = { node: true, es2021: true, }, + parserOptions: { + sourceType: "module" // 如果你的代码是 ECMAScript 模块 + }, globals: { AHAPP: 'readonly', AHJavascriptBridge: 'readonly', diff --git a/package.json b/package.json index be7a4b8..ee94eef 100644 --- a/package.json +++ b/package.json @@ -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": {