Skip to content

Commit d429e0b

Browse files
committed
.eslintrc.json: enforce limit on empty lines in json5
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
1 parent b70acb5 commit d429e0b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.eslintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@
238238
"no-irregular-whitespace": "off",
239239
"jsonc/no-irregular-whitespace": "error",
240240
"no-trailing-spaces": "error",
241+
"no-multiple-empty-lines": ["error",
242+
{
243+
"max": 1,
244+
"maxEOF": 1
245+
}
246+
],
241247
"jsonc/comma-dangle": [
242248
"error",
243249
"always-multiline"

0 commit comments

Comments
 (0)