发布于 1周前

eslint报错 Expected indentation of 2 spaces but found 4

文件:.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
      }]
©2020 edoou.com   京ICP备16001874号-3