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"
|
||||
- [ ] "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"
|
||||
|
@ -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"
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user