docs(linter/curly): fix incorrect examples code#20421
docs(linter/curly): fix incorrect examples code#20421camc314 merged 3 commits intooxc-project:mainfrom
Conversation
Signed-off-by: KUAI <ekuai@foxmail.com>
There was a problem hiding this comment.
Pull request overview
Updates the curly rule documentation examples to ensure the “incorrect” snippets actually violate the configured option behavior, improving the accuracy of the rule docs within oxc_linter.
Changes:
- Adjusted
"multi"option “incorrect” examples to show unnecessary braces being flagged. - Adjusted
"multi-line"option “incorrect” examples to demonstrate multi-line bodies without braces. - Adjusted
"multi-or-nest"option “incorrect” examples to better reflect nested/multi-line cases.
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: Cameron <cameron.clark@hey.com>
Merging this PR will not alter performance
Comparing Footnotes
|
The original "incorrect code" might be correct. I replace them with the incorrect one.