tools icon indicating copy to clipboard operation
tools copied to clipboard

🐛 Playground: JSX always enabled

Open MichaReiser opened this issue 3 years ago • 2 comments

Environment information

What happened?

  • Open Playground
  • The file parses correctly regardless if the JSX setting is enabled or not

Expected result

  • There should be parse errors if JSX is disabled

Code of Conduct

  • [X] I agree to follow Rome's Code of Conduct

MichaReiser avatar Nov 09 '22 08:11 MichaReiser

rome check can also parse JSX inside a JS file, is there any flag or config we should add to the CLI to make it fail?

kaioduarte avatar Nov 10 '22 12:11 kaioduarte

rome check can also parse JSX inside a JS file, is there any flag or config we should add to the CLI to make it fail?

There's no such flag yet (to my knowledge) for the CLI. This work is tracked in #3611. I would expect it to be possible in the playground by passing the SourceType

MichaReiser avatar Nov 10 '22 12:11 MichaReiser