docs(linter): Update docs for no-optional-chaining rule to clarify its safety today#16727
docs(linter): Update docs for no-optional-chaining rule to clarify its safety today#16727graphite-app[bot] merged 1 commit intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the documentation for the oxc/no-optional-chaining linter rule to reflect the current state of browser support for optional chaining. The update clarifies that optional chaining is now widely supported and safe to use in most modern codebases, while still acknowledging valid use cases for the rule when supporting older environments.
- Updates the reference link from TC39 proposal to MDN documentation
- Rewrites the "Why is this bad?" section to emphasize that optional chaining has been supported since 2020 and is generally safe to use today
- Provides clearer guidance that most codebases should not use this restriction rule unless they need to support pre-2020 browsers
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
CodSpeed Performance ReportMerging #16727 will not alter performanceComparing Summary
Footnotes
|
Merge activity
|
…s safety today (#16727) The rule is safe to use nowadays, as all major browsers have supported it for over 5 years.
a816c17 to
2195150
Compare
The rule is safe to use nowadays, as all major browsers have supported it for over 5 years.