tools
tools copied to clipboard
🐛 Playground: JSX always enabled
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
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?
rome checkcan 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