Skip to content

Commit a4302aa

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 6bbdd23 commit a4302aa

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
@@ -290,6 +290,12 @@
290290
"maxEOF": 1
291291
}
292292
],
293+
"comma-spacing": ["error",
294+
{
295+
"before": false,
296+
"after": true
297+
}
298+
],
293299
"jsonc/comma-dangle": [
294300
"error",
295301
"always-multiline"

0 commit comments

Comments
 (0)