Add lint pre-commit hook#66
Conversation
|
Thank you @ruleeeer , can you please fix the CI |
|
Is the huge |
|
@kezhenxu94
|
I'll solve the CI failure problem |
|
@ruleeeer looks like it's because of the lockfileVersion, I'm using node==14.15.1 and npm==6.14.0, its lockfileVersion is 1 but yours is 2, is it possible for you to install node 14 and re-submit the changes? We can consider upgrade the development version of nodejs but currently let's focus on the lint in this PR |
|
@kezhenxu94 sure,I'll push it again with node@14 |
|
@kezhenxu94 i pushed with node@14,Looks like fewer changes in lockfile |
|
Hi @ruleeeer , I test in my machine and the hook works great, but the rules are not working as expected (did not pick up the config like tslint |
|
@kezhenxu94 This is the third issue that I mentioned before. You can see the relevant documentation here you can just add the match field(my '123' is just for verification, it doesn't make any sense) after executing `npm run lint` to get this error message |
|
Hey @ruleeeer , in my side I can run Anyway, I'm big +1 to migrate from tslint to eslint (and the rules should be rewrite, then this problem is gone, right?), but I would expect it done soon otherwise the hook will always prevent the changes because the lint always fail. I can merge this first if you would start to migrate the linter |
|
@kezhenxu94 Strange, I also found the problem you mentioned, but I tried several methods and couldn't solve it. I'm going to start migrating to eslint. |
Go ahead please. Let me merge this for now and wait for your next PR |








No description provided.