From 5e8571de80b071b2e331e217d2d07a4f9c42f425 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 15 Apr 2025 23:55:43 +0300 Subject: [PATCH] .eslintrc.json: use jsonc/no-irregular-whitespace The eslint-plugin-jsonc documentation recommends turning ESLint's own no-irregular-whitespace plugin off for JSON files in favor of its own jsonc/no-irregular-whitespace plugin. See: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-irregular-whitespace.html --- .eslintrc.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 5dfa03c90e..c6979890af 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -306,7 +306,10 @@ "plugin:jsonc/recommended-with-json5" ], "rules": { - "no-irregular-whitespace": "error", + // The ESLint core no-irregular-whitespace rule doesn't work well in JSON + // See: https://ota-meshi.github.io/eslint-plugin-jsonc/rules/no-irregular-whitespace.html + "no-irregular-whitespace": "off", + "jsonc/no-irregular-whitespace": "error", "no-trailing-spaces": "error", "jsonc/comma-dangle": [ "error",