eslint报错

文件:.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
      }]

你可能感兴趣的:(eslint报错)