Enable parsing jsx files
kutnickclose opened this issue · comments
Hello,
I am using postcss-lit as a custom syntax for stylelint but it bombs out trying to parse my jsx/tsx files. Could jsx be added to the babel parser?
// parse.ts
const ast = babelParse(sourceAsString, {
sourceType: 'unambiguous',
plugins: [
'typescript',
['decorators', {decoratorsBeforeExport: true}],
+ 'jsx'
],
ranges: true
});
Thanks,
Tim
Thanks!
Would it be possible to publish a new version?
i have another bug i need to look at but after that, yes, ill publish a new version 👍
FYI,
To get stylelint plugin to work with jsx/tsx you'll need "javascriptreact", 'typescriptreact"
in the stylelint.validate.
{
"stylelint.validate": ["css", "javascript", "typescript", "javascriptreact", 'typescriptreact"]
}
fyi have published 0.5.0
let me know if you run into any problems