-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
style: update format & lint config #9162
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
Conversation
❌ Deploy Preview for vue-sfc-playground failed.
|
❌ Deploy Preview for vue-next-template-explorer failed.
|
Size ReportBundles
Usages
|
Are there any other PRs about stylistic? We can change the base branch to |
.prettierrc
Outdated
"semi": false, | ||
"singleQuote": true, | ||
"printWidth": 80, | ||
"trailingComma": "all", |
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.
Why are we making this change?
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.
For convenience and to reduce extra changes in the git history.
If we want to add a new property, we needn't add a comma into the last line, but only add a new line.
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.
I know what trailing commas offer. Just not sure why change this now…additions may not be that frequent at the moment. I’m not against it though.
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.
After discussion, we decided to
- work on stylistic PRs that worth merging regularly (like every minor), when most of PRs are merged.
- avoid conflicting useful PRs
- merge PRs to a branch, and then squash merge to main branch, and add the commit to
.git-blame-ignore-revs
file.
This is great, we can merge eslint related PRs together. |
|
@Alfred-Skyblue This PR is actually not about style. We can merge it separately. |
43960c1
to
f30bb60
Compare
CodSpeed Performance ReportMerging #9162 will not alter performanceComparing Summary
|
8ee5b89
to
8ceb2e5
Compare
ab8ccb5
to
abee7f2
Compare
Co-authored-by: 丶远方 <[email protected]> Co-authored-by: 三咲智子 Kevin Deng <[email protected]>
Co-authored-by: Guo Xingjun <[email protected]>
Co-authored-by: 三咲智子 Kevin Deng <[email protected]>
/ecosystem-ci run |
📝 Ran ecosystem CI: Open
|
📝 Ran ecosystem CI: Open
|
Changes
sort-imports
rulenode:
protocolprefer-ts-expect-error
ruleimport type
& replaceimport { type A }
withimport type { A }
node:
protocol #8584@typescript-eslint/eslint-plugin
plugin #8978no-unnecessary-type-assertion
andconsistent-indexed-object-style