Skip to content

Commit a8c7cec

Browse files
committed
.eslintrc.json: enable comma-spacing plugin for json5 files
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
1 parent 61c32ce commit a8c7cec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.eslintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,12 @@
325325
"maxEOF": 1
326326
}
327327
],
328+
"comma-spacing": ["error",
329+
{
330+
"before": false,
331+
"after": true
332+
}
333+
],
328334
"jsonc/comma-dangle": [
329335
"error",
330336
"always-multiline"

0 commit comments

Comments
 (0)