-
Notifications
You must be signed in to change notification settings - Fork 629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linter: add max-len rules #507
Conversation
I prefer strict 80 |
.eslintrc.json
Outdated
{ | ||
"code": 80, | ||
"tabWidth": 2, | ||
"comments": 200, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
200 columns for comments? that’s not ok.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It just an example.
so, all strict to 80. including comments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this! |
/cc @ry it's ready for review. Currently, only the length of the URL is ignored. {
"code": 80,
"tabWidth": 2,
"comments": 80,
"ignoreTrailingComments": false,
"ignoreUrls": true,
"ignoreStrings": false,
"ignoreTemplateLiterals": false,
"ignoreRegExpLiterals": false
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Very nice ! Thanks!
If strict execution of each line has a maximum width of 80 characters
Then there will be a lot of code getting ugly.
There are 3 lines below, which are
80/100/120
characters.We can set the options to ignore comments/string and so on.
Just wrap code lines at 80 characters.