From 12083858784245b3d7c4b2d35b512a439f2cf3a9 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 a5c96317588..92a7ae17fb8 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -244,6 +244,12 @@ "maxEOF": 1 } ], + "comma-spacing": ["error", + { + "before": false, + "after": true + } + ], "jsonc/comma-dangle": [ "error", "always-multiline"