Skip to content

Commit dbcd5d0

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 64e022a commit dbcd5d0

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
@@ -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)