ESLint: clear(vue/comment- directive) 是什么鬼?
資深大佬 : shakukansp 0
vue 文件:<template src=”./detail-page.html”></template>
html 文件:<div>hello world</div>
eslint 会在最后报一个 ESLint: clear(vue/comment- directive)
大佬有話說 (4)
html 文件:<div>hello world</div>
eslint 会在最后报一个 ESLint: clear(vue/comment- directive)
这个报错也是升级 eslint 的包以后莫名出现的
好吧,一直以为只有 style 能写其他地方,如果 html 分离写,ide 的提示还有吗?
你那个 eslint 的错误说明在这,https://eslint.vuejs.org/rules/comment-directive.html 搜一下就有了
说明我看过了……摸不着头脑,搜了半天只有 segmentfault 的 1010000037552955 提到这个
共同点是都是 html 报错,但是那个问题没有正解
而且这 html 就一个标签里面一行 text
文档里的说明就是这个规则是支持检测在 template 下 disable next-line 这类功能的,但是我没注释(