From dbcd5d0ccb3063b573ad4d61cb1db9b4fda9c975 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 15 Jun 2023 16:53:17 +0300 Subject: [PATCH] .eslintrc.json: enable comma-spacing plugin for json5 files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We want to avoid this: { // "bitstream.download.page.back": "Back" , "bitstream.download.page.back": "AtrĂ¡s" , } There is no need for the space before the comma. Note that we do not need this plugin to check for spaces after the comma because those will be highlighted by the other trailing whitespace checks. See: https://eslint.org/docs/latest/rules/comma-spacing --- .eslintrc.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.eslintrc.json b/.eslintrc.json index 4abbab9cab1..0f09b248163 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -252,6 +252,12 @@ "maxEOF": 1 } ], + "comma-spacing": ["error", + { + "before": false, + "after": true + } + ], "jsonc/comma-dangle": [ "error", "always-multiline"