-
Notifications
You must be signed in to change notification settings - Fork 63
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
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 |
I try to run 'npm install' using the master branch (my changes are not included here), and then use 'git diff -- stat' to display 8954 new lines It should be caused by the upgrade of the lock file due to the different version of npm,I used [email protected] and [email protected] |
@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.