diff --git a/.eslintrc.json b/.eslintrc.json index 3cef2e6425e..6f1bc61fc59 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -272,7 +272,17 @@ "plugin:jsonc/recommended-with-json5" ], "rules": { - "no-irregular-whitespace": "error", + // ESLint core no-irregular-whitespace rule doesn't work well in JSON + "no-irregular-whitespace": "off", + "jsonc/no-irregular-whitespace": [ + "error", + { + "skipStrings": true, + "skipComments": false, + "skipRegExps": true, + "skipTemplates": false + } + ], "no-trailing-spaces": "error", "jsonc/comma-dangle": [ "error",