1、Parsing error: Cannot read file ‘c:\users\xxx\desktop\demo\tsconfig.json‘
解决方案:将下列代码放到.eslintrc.js中
parserOptions: {
tsconfigRootDir: __dirname,
}
2、安装eslint后格式化各种报错
解决方案:
vscode 搜索、安装插件 prettier。配置prettier.eslintIntegration 为true 。完美解决
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容