ESLint不断返回在vueJS中找不到规则'eslint linebreak-style'的定义

问题描述

无论我尝试了多少,vueJS都会不断返回

http://eslint.org/docs/rules/eslint%20linebreak-style  Definition for rule 'eslint linebreak-style' was not found
  src\components\Register.vue:1:1
  <template>
   ^

这是到目前为止已采取的步骤。 在

src \ components \ Register.vue:1:1

我包括了这个

/ *禁用eslint * /

位于脚本的顶部,但这仍然可以阻止它失败。 同样在VS Code中,我将其从

CRLF

LF

,然后运行npm run lint -- --fix,但仍不能解决问题。 我也编辑了

.eslintrc.js

在不同阶段添加所有这些"linebreak-style": 0, 这也是 //["error",(process.platform === "win32" ? "windows" : "unix")],// https://stackoverflow.com/q/39114446/2771889 这也是"eslint linebreak-style": ["error","windows"],,但都是有用的。

我还将上述代码添加到了

node_modules \ eslint-config-airbnb-base \ rules \ style.js

但ESLint仍然拒绝离开。

注意:我正在使用Windows 8.1

我还能做什么解决这个问题。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...