Skip to content

Commit 6bbdd23

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 6c93390 commit 6bbdd23

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.eslintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,12 @@
284284
}
285285
],
286286
"no-trailing-spaces": "error",
287+
"no-multiple-empty-lines": ["error",
288+
{
289+
"max": 1,
290+
"maxEOF": 1
291+
}
292+
],
287293
"jsonc/comma-dangle": [
288294
"error",
289295
"always-multiline"

0 commit comments

Comments
 (0)