0

未知报错信息,无论是.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
  }
}
1 个回答
0

撰写答案

推广链接