parsing error parseroptions.project has been set for @typescript-eslint/p
最编程
2024-06-29 17:40:28
...
报错内容:
点击ts文件,eslint不报错,点击vue文件eslint报错
Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: src\views\notification\index.vue.
The extension for the file (.vue) is non-standard. You should add "parserOptions.extraFileExtensions" to your config.
报错原因:
eslint配置文件.eslintrc.js没有对vue文件做解析,只对ts文件进行了解析配置
[图片]
解决方法:
方式一: 忽略vue文件
在.e...... 查看更多