linter-stylelint
linter-stylelint copied to clipboard
Add CSS-in-JS files support
Stylelint 9.5 supports CSS-in-JS (styles tag styled-component’s API and objects API) from JS files.
We need to add this support to text editor plugin as well.
Could there possibly just be a config option that specifies which files to lint?
e.g. I'd like to use it for .tsx files (TypeScript with JSX syntax containing styled-components).
In combination with stylelint-processor-styled-components, stylelint-config-styled-components, and stylelint-custom-processor-loader I'm able to get Stylelint working great as part of my build process -- but the only thing I'm missing is editor error highlighting as I was able to have in my SCSS files. Is there a technical limitation with this request, or just something that has not been prioritized yet?
This is semi-related to https://github.com/AtomLinter/linter-stylelint/pull/406 and primarily https://github.com/AtomLinter/linter-stylelint/issues/235
If anyone feels passionate about this a PR would be appreciated to get the ball rolling!