feat(eslint): Rule "object-curly-spacing"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-13 15:31:49 +04:00
parent 2ffee5d7a3
commit 053bd64fa4
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 9 additions and 1 deletions

View File

@ -223,7 +223,7 @@
- [ ] "no-with"
- [ ] "nonblock-statement-body-position"
- [ ] "object-curly-newline"
- [ ] "object-curly-spacing"
- [X] "object-curly-spacing"
- [ ] "object-property-newline"
- [ ] "object-shorthand"
- [X] "one-var"

View File

@ -64,6 +64,14 @@
"allowIndentationTabs": true
}
],
"object-curly-spacing": [
"error",
"always",
{
"arraysInObjects": false,
"objectsInObjects": false
}
],
"one-var": [
"error",
"never"