Skip to content

Commit

Permalink
refactor(prettier): rename file need_parens -> needs_parens (#1504)
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen authored Nov 22, 2023
1 parent d3b7629 commit 6410502
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion crates/oxc_prettier/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mod comment;
mod doc;
mod format;
mod macros;
mod need_parens;
mod needs_parens;
mod options;
mod printer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl<'a> Prettier<'a> {
AssignmentTargetPattern::ObjectAssignmentTarget(_)
)
),
_ => false,
_ => true,
},
AstKind::UpdateExpression(update_expr) => match parent_kind {
AstKind::UnaryExpression(unary_expr) => {
Expand Down
5 changes: 1 addition & 4 deletions tasks/prettier_conformance/prettier.snap.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Compatibility: 141/597 (23.62%)
Compatibility: 142/597 (23.79%)

# Failed

Expand Down Expand Up @@ -407,9 +407,6 @@ Compatibility: 141/597 (23.62%)
### line-suffix-boundary
* line-suffix-boundary/boundary.js

### logical-assignment
* logical-assignment/logical-assignment.js

### logical_expressions
* logical_expressions/issue-7024.js
* logical_expressions/logical_expression_operators.js
Expand Down

0 comments on commit 6410502

Please sign in to comment.