From 2bd897000434fd05ba2b136b800a7bee7099f2e8 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 22:51:40 +0400 Subject: feat(eslint): Rule "no-multiple-empty-lines" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/default.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 59371bc..fd16a37 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -146,7 +146,7 @@ - [ ] "no-multi-assign" - [X] "no-multi-spaces" - [ ] "no-multi-str" -- [ ] "no-multiple-empty-lines" +- [X] "no-multiple-empty-lines" - [X] "no-native-reassign" - [ ] "no-negated-condition" - [X] "no-negated-in-lhs" diff --git a/src/rules/default.json b/src/rules/default.json index 7e77f6e..d9d03f4 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -131,6 +131,14 @@ "ignoreEOLComments": false } ], + "no-multiple-empty-lines": [ + "error", + { + "max": 1, + "maxBOF": 1, + "maxEOF": 1 + } + ], "no-native-reassign": [ "off" ], -- cgit v1.2.3