feat(eslint): Rule "object-shorthand"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-14 02:16:26 +04:00
parent ccea0635e4
commit 46abf32d58
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 5 additions and 1 deletions

View File

@ -225,7 +225,7 @@
- [X] "object-curly-newline"
- [X] "object-curly-spacing"
- [X] "object-property-newline"
- [ ] "object-shorthand"
- [X] "object-shorthand"
- [X] "one-var"
- [ ] "one-var-declaration-per-line"
- [ ] "operator-assignment"

View File

@ -384,6 +384,10 @@
"allowAllPropertiesOnSameLine": false
}
],
"object-shorthand": [
"error",
"consistent-as-needed"
],
"one-var": [
"error",
"never"