fix(formatter): don't remove quotes when type memeber is new#8945
fix(formatter): don't remove quotes when type memeber is new#8945fireairforce merged 2 commits intomainfrom
Conversation
🦋 Changeset detectedLatest commit: dc3b257 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughAdds a guard in Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Fix all issues with AI agents
In @.changeset/kind-cities-read.md:
- Line 5: Fix the typo in the changeset description by replacing the misspelled
word "memeber" with "member" in the .changeset/kind-cities-read.md content (the
line reading "Don't remove quotes when type memeber is new."). Ensure the
corrected sentence reads "Don't remove quotes when type member is new." and
commit the updated file.
- Line 16: The example output incorrectly turned the quoted method signature
into a property: replace the incorrect `'new()': string;` with the correct
quoted method signature `'new'(): string;` so the output preserves a method
named 'new' (with parentheses) rather than a property; update the example output
to match the original input signature `'new'(): string;` wherever the incorrect
`'new()': string;` appears.
| "@biomejs/biome": patch | ||
| --- | ||
|
|
||
| Fixed [#8354](https://github.com/biomejs/biome/issues/8354): Don't remove quotes when type memeber is new. |
There was a problem hiding this comment.
Typo: "memeber" should be "member".
📝 Proposed fix
-Fixed [`#8354`](https://github.com/biomejs/biome/issues/8354): Don't remove quotes when type memeber is new.
+Fixed [`#8354`](https://github.com/biomejs/biome/issues/8354): Don't remove quotes when type member is new.📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| Fixed [#8354](https://github.com/biomejs/biome/issues/8354): Don't remove quotes when type memeber is new. | |
| Fixed [`#8354`](https://github.com/biomejs/biome/issues/8354): Don't remove quotes when type member is new. |
🤖 Prompt for AI Agents
In @.changeset/kind-cities-read.md at line 5, Fix the typo in the changeset
description by replacing the misspelled word "memeber" with "member" in the
.changeset/kind-cities-read.md content (the line reading "Don't remove quotes
when type memeber is new."). Ensure the corrected sentence reads "Don't remove
quotes when type member is new." and commit the updated file.
Merging this PR will not alter performance
Comparing Footnotes
|
siketyan
left a comment
There was a problem hiding this comment.
Do you know is there any other keywords that cannot be dequoted?
|
maybe we don't need to dequote all the keywords here? what do you think? @siketyan |
thanks for your remind~ so it will be better to just fix the |
Summary
closes: #8354
When type member contains new, don't remove the quotes around it:
Before:
After:
Test Plan
Add snapshot test case
Docs