-
Notifications
You must be signed in to change notification settings - Fork 0
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
[migrate] upgrade to ESLint 9, Node.js 20 & other latest Upstream packages/actions #16
Conversation
[update] dependencies
package.json
Outdated
"*.{html,md,less,json,yml,js,ts,tsx}": [ | ||
"eslint --fix", | ||
"prettier --write" | ||
] |
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.
先格式化再检查代码规范会比较好
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.
格式不对会影响 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.
格式不对会影响 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.
官方文档推荐写的,一个是代码质量规则,一个是格式化规则,它们的交集也用插件 disable 了,很难想象格式会影响代码质量检查
https://github.com/lint-staged/lint-staged#task-concurrency
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.
按照步骤,只要 eslint --fix
出问题都会再过一遍,用 prettier 收尾是正常流程?
[polish] comment message
[polish] import sort for some component [add] title for TSXSample [fix] form event for react
[add] eslint, lint-staged
[update] dependencies