Skip to content

Clarified misleading example in "Configuring plugins" section #452

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

Merged
merged 1 commit into from
Aug 16, 2025

Conversation

TheWirv
Copy link
Contributor

@TheWirv TheWirv commented Aug 15, 2025

When I first read through the docs "chronologically", it really confused me to reach the "Plugins" docs and see the list of available plugins with their "default" check marks, because the React plugin didn't have one. The comment right above my change says literally that all those enabled plugins in this example are "enabled by default", which is wrong. I am by no means a Rust expert, but I am pretty sure that this line here defines the default-enabled plugins to be OXC, Unicorn and TypeScript: https://github.com/oxc-project/oxc/blob/42de3d14da0a1c4f1a80c9e692627e928d556389/crates/oxc_linter/src/config/plugins.rs#L61, which means that the "Plugins" docs' table is correct, and this example config's comment here is not.

An alternative change would be to change the comment (instead of the code) to something like // Enable the React plugin, in addition to the default plugins. This would also implicitly highlight the fact once more that the plugins array needs to contain all enabled plugins, including the ones that are enabled out of the box.

Copy link

netlify bot commented Aug 15, 2025

Deploy Preview for oxc-project ready!

Name Link
🔨 Latest commit 6dce6e2
🔍 Latest deploy log https://app.netlify.com/projects/oxc-project/deploys/689ece2a8686b9000813a129
😎 Deploy Preview https://deploy-preview-452--oxc-project.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@camc314 camc314 left a comment

Choose a reason for hiding this comment

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

thank you

@camc314 camc314 merged commit 68e80c6 into oxc-project:main Aug 16, 2025
6 checks passed
@TheWirv TheWirv deleted the patch-1 branch August 17, 2025 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants