-
Notifications
You must be signed in to change notification settings - Fork 903
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
Makes linting run before code is committed #4132
Conversation
Consider running prettier on the Probably won't do much on the first two but ruining it on the last would be nice so the config files all have the same formatting throughout. (mostly affecting zones.json and exchanges.json) |
Oh yes, that's a great point! Since those are outside of |
Sounds like we have a plan then! |
Also removes direct usage of prettier as that will be covered by eslint now.
31c0206
to
520537f
Compare
Awesome!
|
This would differ somewhat though, prettier formatting can fail even if linting passes. "capacity": [
-533,
533
] and "capacity": [-533, 533] both will pass linting but only the second one will pass prettier. Now just adding prettier to check if the formatting is right is as simple as it gets but if we want prettier for format it too it gets a little more complicated as it will create a new commit but still very doable (I am personally running it this way in a private repo with a github actions workflow). |
Hmm, the committing changes part is actually a problem with forks (see discussion here: #4131) 🤔 |
I left a comment on the other PR but yeah just doing a check seems like the only option for now and it should be fine for most scenarios. While reusing existing jobs are a option I think we want to do as much in parallel as we can to reduce CI run durations. |
"nodemon": "^1.17.1", | ||
"nodemon": "^2.0.16", |
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 fixed the annoying problem when running yarn install
and seeing a bunch of errors from fsevents
/node-pre-gyp
:)
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 also fixes a bunch of security vulnerabilities. 👀
I was actually planning on submitting a PR for it after the current PRs that target the lock file was merged.
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.
Excellent 👌
Edit: I'm just going to go ahead and fix the merge conflicts
Thanks for fixing and merging ❤️ |
Description
We want to improve linting and make the codebase more standardized.
This PR makes linting and formatting happen automatically before code is committed.
Steps: