diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 21:51:40 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 21:51:40 +0300 |
commit | 2bd897000434fd05ba2b136b800a7bee7099f2e8 (patch) | |
tree | faa3e204bb1ca7ab8df1758e252ff9666e53e3d8 | |
parent | e914d9f80e3bdde324a0c62cb144739be57c394f (diff) | |
download | eslint-config-2bd897000434fd05ba2b136b800a7bee7099f2e8.tar.xz eslint-config-2bd897000434fd05ba2b136b800a7bee7099f2e8.zip |
feat(eslint): Rule "no-multiple-empty-lines"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/default.json | 8 |
2 files changed, 9 insertions, 1 deletions
@@ -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" ], |