You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Invalid Options:
- 'plugins' doesn't add plugins to configuration to load. Please use the 'overrideConfig.plugins' option instead
at processOptions (/Users/abc/Desktop/kinron/opt/github/tdesign-mobile-react/node_modules/eslint/lib/eslint/eslint.js:294:15)
at new ESLint (/Users/abc/Desktop/kinron/opt/github/tdesign-mobile-react/node_modules/eslint/lib/eslint/eslint.js:441:34)
at Object.e.newESLintClass (/Users/abc/.vscode/extensions/dbaeumer.vscode-eslint-2.2.2/server/out/eslintServer.js:1:167243)
at Ce (/Users/abc/.vscode/extensions/dbaeumer.vscode-eslint-2.2.2/server/out/eslintServer.js:1:186299)
at /Users/abc/.vscode/extensions/dbaeumer.vscode-eslint-2.2.2/server/out/eslintServer.js:1:180305
at /Users/abc/.vscode/extensions/dbaeumer.vscode-eslint-2.2.2/server/out/eslintServer.js:1:181582
问题产生的操作过程
# 下载项目
git clone git@github.com:TDesignOteam/tdesign-mobile-react.git
# 安装 submodule
git submodule init
git submodule update
## 安装 package
npm i
cd docs && npm i && cd ..
cd src/_common && npm i && cd ../../
eslint报错信息:
问题产生的操作过程
然后vscode的eslint插件就一直报一个错误
该错误当前的定位
node_modules/eslint/lib/eslint/eslint.js 270行 出现报错信息,plugins 不能为数组,否则会抱这个错误。
当前 plugins 打印出来的值是 [ 'html' ],是一个数组值,但是不知道这个值是从哪个传进来的。
如果将plugins在源码里面强制重新复制为 空对象,则 eslint 运行正常
影响这个结果的可能的文件是 src/_common/test/script/jest.unit.config.js. 20行
The text was updated successfully, but these errors were encountered: