Repository navigation
WIP: Use husky to execute linters - #27982
MartijnCuppens wants to merge 1 commit into
Conversation
|
I still find it too slow. |
|
You can split the parallel patch to a separate PR so that we try it and merge it regardless of this. |
|
It's a bit slow 😟 do you know if there is a way to skip that on push ? |
|
#27989 will increase speed to around
|
|
Or we could just leave things as is, and you can add the hook manually. |
|
It's not only for me I opt for this. A lot of Travis tests are failing because of linting issues and these hooks can spare contributors some time because it will give linting feedback before anything is pushed. It would also save us some time figuring out what's wrong with the Travis tests and replying they should check their linting or fixing the code ourselfs. On the other hand it slows down our current workflow and is yet another dependency where thing could go wrong with. |
|
The thing is, many people don't even check out the repo locally and even if they do they don't run the test scripts. Secondly, we do have CI for this anyway. I'm not against it as long as it doesn't disrupt my current workflow, and as it seems it does since it slows us down. The dep I don't mind, it's a small one anyway. Also, IMO this should be in precommit if we ever go with it. You could try calling the individual css and js lint scripts if that's faster instead of the wrapper |
|
That's not a rebase. |
f2738da to
98c6ce2
Compare
|
Fixed it |
|
You missed the update package-lock.json. |
98c6ce2 to
1094e90
Compare
1094e90 to
0fa9335
Compare
|
OK, I tried this again, and it's just too slow for me... |
|
Ok fine, I'll close it than |
Closes #27973
The linting taks are now ran before anything is pushed which will help us with builds that fail because of trivial lint errors.
I preferred the
pre-pushoption above thepre-commitoption because all linting tasks take about 9 seconds to complete which could be annoying.This PR also contains a commit which parallelizes the linting tasks. This decreases the time from around 9 seconds to 4-5 seconds.
Not sure if we should add the
--fixcommand which automatically fixes fixable linting errors (like fixing the property order). Maybe we could add an additional command for it?TODO: