AtomLinter / linter-stylelint

A plugin for Atom Linter providing an interface to stylelint.

Home Page:https://atom.io/packages/linter-stylelint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add CSS-in-JS files support

ai opened this issue · comments

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 #406 and primarily #235

If anyone feels passionate about this a PR would be appreciated to get the ball rolling!