关于前端:eslint报错

36次阅读

共计 234 个字符,预计需要花费 1 分钟才能阅读完成。

文件:.eslintrc.js

Expected indentation of 2 spaces but found 4

减少:

module.exports = {
  rules: {'indent': ['off', 2]
  }
}

‘Vue’ is not defined

减少:

globals:{'Vue': true},~~~~

rule ‘vue/no-parsing-error’ was not found

'vue/no-parsing-error': [2,{'x-invalid-end-tag': false}]

正文完
 0