summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json17
2 files changed, 18 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 02dc0ff..933ce94 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -58,7 +58,7 @@
- [X] "keyword-spacing"
- [ ] "line-comment-position"
- [X] "linebreak-style"
-- [ ] "lines-around-comment"
+- [X] "lines-around-comment"
- [X] "lines-around-directive"
- [X] "lines-between-class-members"
- [ ] "max-classes-per-file"
diff --git a/src/rules/default.json b/src/rules/default.json
index f0e2ab2..a97ecf8 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -107,6 +107,23 @@
"error",
"unix"
],
+ "lines-around-comment": [
+ "error",
+ {
+ "afterBlockComment": false,
+ "afterLineComment": false,
+ "allowArrayEnd": false,
+ "allowArrayStart": true,
+ "allowBlockEnd": false,
+ "allowBlockStart": true,
+ "allowClassEnd": false,
+ "allowClassStart": true,
+ "allowObjectEnd": false,
+ "allowObjectStart": true,
+ "beforeBlockComment": true,
+ "beforeLineComment": false
+ }
+ ],
"lines-around-directive": [
"off"
],