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 Aug 10, 2023
1 parent 64e022a commit dbcd5d0
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 @@ -252,6 +252,12 @@
"maxEOF": 1
}
],
"comma-spacing": ["error",
{
"before": false,
"after": true
}
],
"jsonc/comma-dangle": [
"error",
"always-multiline"
Expand Down

0 comments on commit dbcd5d0

Please sign in to comment.