vue/no-irregular-whitespace
disallow irregular whitespace in
.vuefiles
📖 Rule Details
The vue/no-irregular-whitespace rule catches invalid whitespace that is not a normal tab or space. Some of these characters may cause issues in modern browsers, and others are hard to spot when debugging. The vue/no-irregular-whitespace rule is similar to the core no-irregular-whitespace rule, but it applies to the source code in .vue files.
🔧 Options
js
{
"vue/no-irregular-whitespace": ["error", {
"skipStrings": true,
"skipComments": false,
"skipRegExps": false,
"skipTemplates": false,
"skipHTMLAttributeValues": false,
"skipHTMLTextContents": false
}]
}skipStrings: iftrue, allows any whitespace characters in string literals. defaulttrueskipComments: iftrue, allows any whitespace characters in comments. defaultfalseskipRegExps: iftrue, allows any whitespace characters in regular expression literals. defaultfalseskipTemplates: iftrue, allows any whitespace characters in template literals. defaultfalseskipHTMLAttributeValues: iftrue, allows any whitespace characters in HTML attribute values. defaultfalseskipHTMLTextContents: iftrue, allows any whitespace characters in HTML text contents. defaultfalse
"skipStrings": true (default)
"skipStrings": false
"skipComments": true
"skipRegExps": true
"skipTemplates": true
"skipHTMLAttributeValues": true
"skipHTMLTextContents": true
📚 Further Reading
🚀 Version
This rule was introduced in eslint-plugin-vue v6.1.0
🔍 Implementation
Taken with ❤️ from ESLint core