benjamn / benjamn/recast

Printing parenthesized JSX nodes

Open
#211 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.3k
Forks
363
Avg merge
3d 8h
Merged PRs (30d)
3

Description

Is it currently possible to print JSX nodes like so:

``` jsx
var x = (


{test}

);
```

They seem to always print like:

``` jsx
var x = (


{test}
);
```

http://felix-kling.de/esprima_ast_explorer/#/984sneJJn2

Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

No files or tests are named. Start by locating Recast's JSX printing entry point and compare its output for the parenthesized example with the requested multiline form; done means parenthesized JSX nodes print with the intended line breaks and indentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.