From 6bbdd2306f0c8cdb70e2e741c736847339fe600c Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 15 Jun 2023 16:36:42 +0300 Subject: [PATCH] .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 --- .eslintrc.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.eslintrc.json b/.eslintrc.json index 6f1bc61fc59..e42ca720553 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -284,6 +284,12 @@ } ], "no-trailing-spaces": "error", + "no-multiple-empty-lines": ["error", + { + "max": 1, + "maxEOF": 1 + } + ], "jsonc/comma-dangle": [ "error", "always-multiline"