# jsonc/no-irregular-whitespace
disallow irregular whitespace
# 📖 Rule Details
This rule is aimed at catching invalid whitespace that is not a normal tab and space.
ESLint core no-irregular-whitespace (opens new window) rule don't work well in JSON. Turn off that rule in JSON files and use jsonc/no-irregular-whitespace
rule.
# 🔧 Options
Nothing.
{
"overrides": [
{
"files": ["*.json", "*.json5"],
"rules": {
"no-irregular-whitespace": "off",
"jsonc/no-irregular-whitespace": [
"error",
{
"skipStrings": true,
"skipComments": false,
"skipRegExps": false,
"skipTemplates": false
}
]
}
}
]
}
Same as no-irregular-whitespace (opens new window) rule option. See here (opens new window) for details.
# 👫 Related rules
# 🚀 Version
This rule was introduced in eslint-plugin-jsonc v2.5.0
# 🔍 Implementation
Taken with ❤️ from ESLint core (opens new window)