feat(eslint): Rule "id-length"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-13 16:46:47 +04:00
parent 2529229c18
commit 443af8609f
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 9 additions and 1 deletions

View File

@ -47,7 +47,7 @@
- [ ] "guard-for-in"
- [ ] "handle-callback-err"
- [ ] "id-blacklist"
- [ ] "id-length"
- [X] "id-length"
- [ ] "id-match"
- [ ] "implicit-arrow-linebreak"
- [X] "indent"

View File

@ -29,6 +29,14 @@
"error",
"always"
],
"id-length": [
"warn",
{
"max": 32,
"min": 2,
"properties": "always"
}
],
"indent": [
"error",
"tab",