直接使用eslint --fix --ext .js,.ts,.vue,.nvue src
,.vue文件的代码检查正常,但是.nvue文件的代码规范检查报错比较奇怪,直接对</template>、</script>、</style>
等代码报错"error clear vue/comment-directive",应该如何对.nvue文件也配置eslint的代码规范检查呢?
![m***@126.com](https://img-cdn-tc.dcloud.net.cn/account/identicon/a7e76e154f4983a0668e8dec493fcfbe.png)
m***@126.com
- 发布:2022-06-27 12:11
- 更新:2023-09-11 09:31
- 阅读:616
1 个回复
1***@qq.com
一年过去了,请问您有解决方案吗?