feat(eslint): Rule "max-len"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-13 23:24:25 +04:00
parent 03127f73f3
commit 2588edeee2
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 15 additions and 1 deletions

View File

@ -63,7 +63,7 @@
- [X] "lines-between-class-members"
- [ ] "max-classes-per-file"
- [ ] "max-depth"
- [ ] "max-len"
- [X] "max-len"
- [X] "max-lines"
- [ ] "max-lines-per-function"
- [ ] "max-nested-callbacks"

View File

@ -117,6 +117,20 @@
"exceptAfterSingleLine": false
}
],
"max-len": [
"warn",
{
"code": 180,
"comments": 72,
"ignoreComments": false,
"ignoreRegExpLiterals": false,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreTrailingComments": false,
"ignoreUrls": true,
"tabWidth": 4
}
],
"max-lines": [
"off"
],