First find the .eslintrc.js file
Then add the following configuration in the rules
" vue/html-self-closing " : [ " error " ,{ " html " : { " void " : " never " , " normal " : " any " , " component " : " any " }, " svg " : " always " , " math " : " always " }]
ok, solve the problem perfectly
The complete configuration is as follows
rules: { ' no-console ' : process.env.NODE_ENV === ' production ' ? ' error ' : ' off ' , ' no-debugger ' : process.env.NODE_ENV === ' production ' ? ' error ' : ' off ' , ' generator-star-spacing ' : ' off ' , " vue/html-self-closing " :[ " error ",{ " html " : { " void " : " never " , " normal " : " any " , " component " : " any " }, " svg " : " always " , " math " : " always " }] }
Similar Posts:
- How to Solve Eslint syntax error in Vue project
- Expected indentation of 8 spaces but found [How to Solve]
- Windows / Android / IOS / Linux platform h265 streaming media player easyplayer.js deployment error
- Error reporting of console.log in eslint
- [Solved] Vue3+ts+eslint Error: warning Unexpected any. Specify a different type, warning Delete `·` , Missing return type on function, Require statement not part of import statement
- How to Solve error: Unexpected console statement (no-console)
- [Solved] ESLint Error: Line 10 exceeds the maximum line length of 100
- Webpack 4 : ERROR in Entry module not found: Error: Can’t resolve ‘./src’
- Function of double slash in XPath / / double slash
- [Solved] ESLint: ‘React’ was used before it was defined.(no-use-before-define)