react/create-react-app

Allow JSON with comments in jsconfig.json

Open

#7426 aperta il 25 lug 2019

Vedi su GitHub
 (15 commenti) (0 reazioni) (0 assegnatari)JavaScript (27.059 fork)batch import
contributions: claimeddifficulty: mediumgood first issueissue: proposal

Metriche repository

Star
 (103.386 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Is your proposal related to a problem?

This is a follow-on from #7248. Right now, we don't support JSONC (JSON with comments) in jsconfig.json files.

Describe the solution you'd like

After a discussion with @iansu, we see two paths:

  1. Implement the same solution as we did for TypeScript. This is easy, but would require us making TypeScript a dependency of react-scripts.
  2. The above, but instead of installing typescript as a dependency of react-scripts, we would install it to the user's project if they are using a jsconfig.json file and don't have typescript installed.

Discussion is welcome.

If you're interested in picking this up, please let us know.

Guida contributor