Commits
Click on a commit to change the comparison rangeget tests to pass for func_names remove extra line in builder.rs Merge branch 'main' into 07_19_refactor_remove_ast_kind_from_simple_assignment_target get namespace tests to pass with minimal changes get prefer_jest_mocked tests passing get no_accumulating_spread tests to pass get exhaustive_deps tests passing with minimal changes get prefer_for_of tests to pass get no_accessor_recursion tests to pass get prefer_array_find tests passing revert unnecessary change check for update expression in javascript checker get more conformance tests passing get more conformance tests passing add identifier reference to NeedsParentheses for TSTypeAssertion Merge branch 'main' into 07_19_refactor_remove_ast_kind_from_simple_assignment_target fix(formatter): add assignment expression parentheses for TypeScript cast expressions
After SimpleAssignmentTarget removal from AstKind, TypeScript cast expressions
(TSAsExpression, TSSatisfiesExpression, TSTypeAssertion) were missing parentheses
when used as assignment targets.
Fixed by adding AssignmentExpression and AssignmentTargetWithDefault to the
parentheses logic for:
- ts_as_or_satisfies_needs_parens() (line 697)
- TSTypeAssertion needs_parentheses() (line 432)
This fixes formatting for cases like:
- (a as any) = value
- (<number>x) = value
- ({ a: (b as any) = 2000 } = x)
Result: TypeScript prettier conformance improved from 242/573 to 243/573 update prettier ts snapshot59 minutes ago
by taearls undo unneeded changes in func_names rule52 minutes ago
by taearls simplify logic in id_length eslint rule44 minutes ago
by taearls simplify no_import_assign changes34 minutes ago
by taearls address lint error31 minutes ago
by taearls simplify logic in no_unused_private_class_members19 minutes ago
by taearls make simpler change in no_commonjs15 minutes ago
by taearls simplify changes in prefer_jest_mocked12 minutes ago
by taearls