Skip to content

Commit

Permalink
.eslintrc.json: enable comma-spacing plugin for json5 files
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alanorth committed Jul 19, 2023
1 parent d429e0b commit 1208385
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,12 @@
"maxEOF": 1
}
],
"comma-spacing": ["error",
{
"before": false,
"after": true
}
],
"jsonc/comma-dangle": [
"error",
"always-multiline"
Expand Down

0 comments on commit 1208385

Please sign in to comment.