feat(eslint): Rule "new-cap"

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

View File

@ -72,7 +72,7 @@
- [ ] "max-statements-per-line"
- [ ] "multiline-comment-style"
- [ ] "multiline-ternary"
- [ ] "new-cap"
- [X] "new-cap"
- [ ] "new-parens"
- [X] "newline-after-var"
- [X] "newline-before-return"

View File

@ -89,6 +89,14 @@
"lines-around-directive": [
"off"
],
"new-cap": [
"error",
{
"capIsNew": true,
"newIsCap": true,
"properties": false
}
],
"newline-after-var": [
"off"
],