简体   繁体   English

vue/comment-directive 清除 eslint-plugin-vue

[英]vue/comment-directive clear eslint-plugin-vue

When I name the vue component List.vue I got the following error:当我将 vue 组件命名为List.vue时,出现以下错误: 在此处输入图像描述

After I change the name to Lists.vue , the error disappears:将名称更改为Lists.vue后,错误消失: 在此处输入图像描述

Why is it happening?为什么会这样?

got it.I finally Understand.it is because previously I had a file name List.Vue because of File Name In Casing I got this error.明白了。我终于明白了。这是因为以前我有一个文件名 List.Vue,因为 File Name In Casing 我得到了这个错误。 Solution is To Make A new Components with new name.There are others solutions but this work for me.解决方案是使用新名称制作新组件。还有其他解决方案,但这对我有用。

if you want to disable this validation set the "vue/comment-directive" to 0如果要禁用此验证,请将“vue/comment-directive”设置为 0

"vue/comment-directive" to 0 “vue/评论指令”为 0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM