Use Eslint to check the project error "Component name "Error" should always be multi-word" solution

Common solutions

I checked it on the Internet, and it is basically paste and copy. The solution is to directly cancel the Eslint verification. Basically, this method directly passes, and finally find a specific solution, see below.

Solution

Enter the .eslintrc.js file and set:

module.exports = {
    
    
  ……
  overrides: [
    {
    
    
      files: ['src/views/**/*.vue'],
      rules: {
    
    
        'vue/multi-word-component-names': 0,
      },
    },
  ]
}

Detailed solution

Jump: https://blog.csdn.net/weixin_35773751/article/details/123374456

Guess you like

Origin blog.csdn.net/weixin_35773751/article/details/123374365