gucong3000 / postcss-jsx

PostCSS syntax for parsing CSS in JS literals
MIT License
76 stars 28 forks source link

babelrc + JSX breaks reporting #55

Closed brandonkal closed 5 years ago

brandonkal commented 5 years ago

I noticed stylelint was silently not reporting errors in css-in-js files. From experimentation, this only occurs when JSX is used in the file.

The issue is that postcss-jsx is not working properly when babel is configured (e.g. with a .babelrc file in scope).

Here is a minimal repo of the issue: https://github.com/brandonkal/postcss-jsx-bug