feat(eslint): Rule "new-cap"
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
7a65b14bef
commit
7ecc10853d
@ -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"
|
||||
|
@ -89,6 +89,14 @@
|
||||
"lines-around-directive": [
|
||||
"off"
|
||||
],
|
||||
"new-cap": [
|
||||
"error",
|
||||
{
|
||||
"capIsNew": true,
|
||||
"newIsCap": true,
|
||||
"properties": false
|
||||
}
|
||||
],
|
||||
"newline-after-var": [
|
||||
"off"
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user