Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ declare_oxc_lint!(
/// Enforce using concise optional chain expressions instead of chained logical AND
/// operators, negated logical OR operators, or empty objects.
///
/// Note that this rule is in the nursery category while we ensure it is working
/// correctly in as many edge-case scenarios as possible. The logic for this is
/// complex and the autofix may cause logic changes in some edge-cases.
///
/// ### Why is this bad?
///
/// TypeScript 3.7 introduced optional chaining (`?.`) which provides a more concise
Expand Down Expand Up @@ -89,7 +93,7 @@ declare_oxc_lint!(
/// ```
PreferOptionalChain(tsgolint),
typescript,
style,
nursery, // move to style after we've confirmed this works correctly on as many edge-cases as possible.
fix,
config = PreferOptionalChainConfig,
);
Expand Down
Loading