Skip to content

Commit 1208385

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 d429e0b commit 1208385

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.eslintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,12 @@
244244
"maxEOF": 1
245245
}
246246
],
247+
"comma-spacing": ["error",
248+
{
249+
"before": false,
250+
"after": true
251+
}
252+
],
247253
"jsonc/comma-dangle": [
248254
"error",
249255
"always-multiline"

0 commit comments

Comments
 (0)