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

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-13 16:19:27 +04:00
parent 90014ad8f6
commit 55d7364ea2
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 9 additions and 1 deletions

View File

@ -222,7 +222,7 @@
- [ ] "no-whitespace-before-property" - [ ] "no-whitespace-before-property"
- [ ] "no-with" - [ ] "no-with"
- [ ] "nonblock-statement-body-position" - [ ] "nonblock-statement-body-position"
- [ ] "object-curly-newline" - [X] "object-curly-newline"
- [X] "object-curly-spacing" - [X] "object-curly-spacing"
- [ ] "object-property-newline" - [ ] "object-property-newline"
- [ ] "object-shorthand" - [ ] "object-shorthand"

View File

@ -108,6 +108,14 @@
"allowIndentationTabs": true "allowIndentationTabs": true
} }
], ],
"object-curly-newline": [
"error",
{
"consistent": true,
"minProperties": 2,
"multiline": true
}
],
"object-curly-spacing": [ "object-curly-spacing": [
"error", "error",
"always", "always",