linter-stylelint icon indicating copy to clipboard operation
linter-stylelint copied to clipboard

Add CSS-in-JS files support

Open ai opened this issue 7 years ago • 3 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.

ai avatar Sep 17 '18 04:09 ai

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).

nene avatar Apr 04 '19 11:04 nene

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?

zslabs avatar May 27 '19 12:05 zslabs

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!

yocontra avatar Mar 06 '20 15:03 yocontra