summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 22:12:04 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 22:12:04 +0300
commit21abdcaf6343c562ad6cea87fa185e0a0e720663 (patch)
tree7c1308b2d60c9f4e42d9d718e2cf82f0368024aa
parent84ac571426f145744fb3bda6e1e2a33538e69923 (diff)
downloadeslint-config-21abdcaf6343c562ad6cea87fa185e0a0e720663.tar.xz
eslint-config-21abdcaf6343c562ad6cea87fa185e0a0e720663.zip
feat(eslint): Rule "lines-between-class-members"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json7
2 files changed, 8 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 6f90534..4c21c1d 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -60,7 +60,7 @@
- [X] "linebreak-style"
- [ ] "lines-around-comment"
- [X] "lines-around-directive"
-- [ ] "lines-between-class-members"
+- [X] "lines-between-class-members"
- [ ] "max-classes-per-file"
- [ ] "max-depth"
- [ ] "max-len"
diff --git a/src/rules/default.json b/src/rules/default.json
index 71f73a1..6e6a96a 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -110,6 +110,13 @@
"lines-around-directive": [
"off"
],
+ "lines-between-class-members": [
+ "error",
+ "always",
+ {
+ "exceptAfterSingleLine": false
+ }
+ ],
"max-statements": [
"off"
],