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
  }
}
阅读 10.1k
2 个回答
新手上路,请多包涵
  1. 删node_modules
  2. 升级eslint
  3. 升级eslint-loader
新手上路,请多包涵

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

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏