Skip to content

Commit

Permalink
.eslintrc.json: enforce limit on empty lines in json5
Browse files Browse the repository at this point in the history
Only allow one blank line in json5 files as well as a max of one
line at the end of the file.

See: https://eslint.org/docs/latest/rules/no-multiple-empty-lines
  • Loading branch information
alanorth committed Apr 15, 2024
1 parent 6c93390 commit 6bbdd23
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 @@ -284,6 +284,12 @@
}
],
"no-trailing-spaces": "error",
"no-multiple-empty-lines": ["error",
{
"max": 1,
"maxEOF": 1
}
],
"jsonc/comma-dangle": [
"error",
"always-multiline"
Expand Down

0 comments on commit 6bbdd23

Please sign in to comment.