-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Run linter with prettier 2 #1477
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
Conversation
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.
This pr again introduce lots of changes, which has no sense. Lets we keep current style rules
Agreed - I've reset the arrow-parens behaviour back to prettier v1 ('as-needed'). The other changes were always 'wrong', I think and they looks safe enough to merge |
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.
I've added more comments, If is it fine to you I'm going to propose some rules changes according to my 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.
After some investigation, I changed max-len option to 100. Before was 160 - that value is too much for properly priettier 2 working.
As effect some improvements was introduced like:
https://github.com/exceljs/exceljs/pull/1477/files#diff-a083b92106d7d843e5f325cb350dbf25L102-R109
Looks good, I also found another typo - fixed, will merge |
Summary
Some files haven't had the linter applied to, so let's fix that :)
Test plan
No new tests are needed