feat(eslint): Rule "one-var"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-13 15:15:37 +04:00
parent 50dc1d4fec
commit a9bbe9301d
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 5 additions and 1 deletions

View File

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

View File

@ -60,6 +60,10 @@
"allowIndentationTabs": true
}
],
"one-var": [
"error",
"never"
],
"prefer-reflect": [
"off"
],