Skip to content
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

Merged
merged 12 commits into from
Sep 14, 2024

Conversation

Soecka
Copy link
Contributor

@Soecka Soecka commented Sep 9, 2024

PR-16 PR-16 PR-16 Powered by Pull Request Badge

[add] eslint, lint-staged
[update] dependencies

[update] dependencies
@Soecka Soecka added the enhancement Some improvements label Sep 9, 2024
package.json Outdated
Comment on lines 78 to 81
"*.{html,md,less,json,yml,js,ts,tsx}": [
"eslint --fix",
"prettier --write"
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

先格式化再检查代码规范会比较好

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

格式不对会影响 eslint 规则通过?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

格式不对会影响 eslint 规则通过?

有少数规则会,因为代码越格式规范出问题的概率越小。

Copy link
Contributor Author

@Soecka Soecka Sep 10, 2024

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

按照步骤,只要 eslint --fix 出问题都会再过一遍,用 prettier 收尾是正常流程?

package.json Outdated Show resolved Hide resolved
eslint.config.mjs Outdated Show resolved Hide resolved
eslint.config.mjs Outdated Show resolved Hide resolved
eslint.config.mjs Outdated Show resolved Hide resolved
eslint.config.mjs Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
[polish] comment message
package.json Outdated Show resolved Hide resolved
@TechQuery TechQuery changed the title [add] eslint [migrate] upgrade to ESLint 9, Node.js 20 & other latest Upstream packages/actions Sep 10, 2024
package.json Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/main.yml Outdated Show resolved Hide resolved
.github/workflows/pull-request.yml Outdated Show resolved Hide resolved
eslint.config.mjs Outdated Show resolved Hide resolved
eslint.config.mjs Outdated Show resolved Hide resolved
[polish] import sort for some component
[add] title for TSXSample
[fix] form event for react
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/index.tsx Outdated Show resolved Hide resolved
ReadMe.md Outdated Show resolved Hide resolved
ReadMe.md Outdated Show resolved Hide resolved
@TechQuery TechQuery removed the enhancement Some improvements label Sep 14, 2024
@TechQuery TechQuery added the feature New feature or request label Sep 14, 2024
@TechQuery TechQuery self-assigned this Sep 14, 2024
@TechQuery TechQuery merged commit 4a6b3f6 into master Sep 14, 2024
1 check passed
@TechQuery TechQuery deleted the enhancement/eslint branch September 14, 2024 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants