-
Notifications
You must be signed in to change notification settings - Fork 140
ci: add code style hook checksum #301
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
ci: add code style hook checksum #301
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report
@@ Coverage Diff @@
## master #301 +/- ##
=======================================
Coverage 98.85% 98.85%
=======================================
Files 4 4
Lines 87 87
Branches 33 33
=======================================
Hits 86 86
Misses 1 1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
package.json
Outdated
"lint-staged": { | ||
"*.{ts,tsx,js,jsx}": [ | ||
"npm run prettier -- --ignore-unknown", | ||
"npm run lint -- --fix" |
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.
https://github.com/react-component/input/blob/master/package.json#L87
这样简单点,eslint 在 lint 时候跑就好了
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.
我去检查看看,如果 prettier 和 eslint 没有冲突的话应该可行的。
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.
git add 已经不需要了,https://github.com/okonet/lint-staged#v10
No description provided.