-
Notifications
You must be signed in to change notification settings - Fork 645
Eslint all files with prettier #1145
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
|
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/primer/primer-components/B5HJKtFPNYpd7gKvcytJ3yZQjwDC |
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.
Thank you for doing this, @dgreif! ❤️
These changes look great. However, I tried running yarn lint locally on this branch and my computer fans started running on high and the script never finished. When I change the script to eslint 'src/**/*.{js,ts,tsx}' instead of eslint '**/*.{js,ts,tsx}' the script runs as expected. It seems like the ignorePatterns field might not be working as expect (at least on my machine).
Co-authored-by: Cole Bemis <colebemis@github.com>
|
Hmm, there must be another build output dir that I missed. @colebemis can you think of another spot that |
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 taking the initiative to fix this, @dgreif 🚀
ESLint was previously set up to do the default file glob, which only finds
.jsfiles. With all the awesome TypeScript conversion @colebemis has been doing, lint has been covering less and less files. This PR does the following:.js,.ts,.tsx)yarn lint-fixwhich can be used to run prettier if your IDE isn't already configured to do soNote: I split the base eslint fixes and the prettier fixes into two separate commits. The base fixes probably deserve the closer look of the two.