vscode开启eslint校验以后,出现未知报错

未知报错信息,无论是.vue文件还是.js文件都会报这三个错,并且无论文件开始输入什么内容也都会报这个错
image.png

Definition for rule 'no-async-promise-executor' was not foundeslint(no-async-promise-executor)
Definition for rule 'no-misleading-character-class' was not foundeslint(no-misleading-character-class)
Definition for rule 'no-useless-catch' was not foundeslint(no-useless-catch)

eslint配置规则

module.exports = {
  env: {
    browser: true,
    es6: true
  },
  extends: [
    'plugin:vue/essential',
    'standard'
  ],
  parserOptions: {
    ecmaVersion: 2018,
    sourceType: 'module'
  },
  plugins: [
    'vue'
  ],
  rules: {
    "no-var": 2,
    "no-async-promise-executor":2
  }
}
阅读 612
评论 更新于 2019-11-09
    3 个回答
    ili
    • 1
    • 新人请关照
    1. 删node_modules
    2. 升级eslint
    3. 升级eslint-loader
    评论 赞赏 2019-11-22
      wayne_529
      • 2
      • 新人请关照

      遇到了一样的问题,有解决吗

      评论 赞赏 1月21日
        撰写回答

        登录后参与交流、获取后续更新提醒