Skip to content

Commit 553419c

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 6c62a0b commit 553419c

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
@@ -252,6 +252,12 @@
252252
"maxEOF": 1
253253
}
254254
],
255+
"comma-spacing": ["error",
256+
{
257+
"before": false,
258+
"after": true
259+
}
260+
],
255261
"jsonc/comma-dangle": [
256262
"error",
257263
"always-multiline"

0 commit comments

Comments
 (0)