Skip to content


disallow irregular whitespace

📖 Rule Details

This rule is aimed at catching invalid whitespace that is not a normal tab and space.

Now loading...

ESLint core no-irregular-whitespace rule don't work well in JSON. Turn off that rule in JSON files and use jsonc/no-irregular-whitespace rule.

🔧 Options


  "overrides": [
      "files": ["*.json", "*.json5"],
      "rules": {
        "no-irregular-whitespace": "off",
        "jsonc/no-irregular-whitespace": [
            "skipStrings": true,
            "skipComments": false,
            "skipRegExps": false,
            "skipTemplates": false

Same as no-irregular-whitespace rule option. See here for details.

🚀 Version

This rule was introduced in eslint-plugin-jsonc v2.5.0

🔍 Implementation

Taken with ❤️ from ESLint core