feat(eslint): Rule "lines-around-comment"
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
2588edeee2
commit
1826f5a115
@ -58,7 +58,7 @@
|
|||||||
- [X] "keyword-spacing"
|
- [X] "keyword-spacing"
|
||||||
- [ ] "line-comment-position"
|
- [ ] "line-comment-position"
|
||||||
- [X] "linebreak-style"
|
- [X] "linebreak-style"
|
||||||
- [ ] "lines-around-comment"
|
- [X] "lines-around-comment"
|
||||||
- [X] "lines-around-directive"
|
- [X] "lines-around-directive"
|
||||||
- [X] "lines-between-class-members"
|
- [X] "lines-between-class-members"
|
||||||
- [ ] "max-classes-per-file"
|
- [ ] "max-classes-per-file"
|
||||||
|
@ -107,6 +107,23 @@
|
|||||||
"error",
|
"error",
|
||||||
"unix"
|
"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": [
|
"lines-around-directive": [
|
||||||
"off"
|
"off"
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user