# vue/no-irregular-whitespace
disallow irregular whitespace
# 📖 Rule Details
vue/no-irregular-whitespace
rule is aimed at catching invalid whitespace that is not a normal tab and space. Some of these characters may cause issues in modern browsers and others will be a debugging issue to spot.
vue/no-irregular-whitespace
rule is the similar rule as core no-irregular-whitespace (opens new window) rule but it applies to the source code in .vue.
# 🔧 Options
{
"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. defaulttrue
skipComments
: iftrue
, allows any whitespace characters in comments. defaultfalse
skipRegExps
: iftrue
, allows any whitespace characters in regular expression literals. defaultfalse
skipTemplates
: iftrue
, allows any whitespace characters in template literals. defaultfalse
skipHTMLAttributeValues
: iftrue
, allows any whitespace characters in HTML attribute values. defaultfalse
skipHTMLTextContents
: 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 (opens new window)