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 Apr 15, 2024
1 parent 6bbdd23 commit a4302aa
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 @@ -290,6 +290,12 @@
"maxEOF": 1
}
],
"comma-spacing": ["error",
{
"before": false,
"after": true
}
],
"jsonc/comma-dangle": [
"error",
"always-multiline"
Expand Down

0 comments on commit a4302aa

Please sign in to comment.