urbantrout / refactor-css

Helps you identify reoccurring CSS class name combinations in your markup
32 stars 1 forks source link

Does not work with JSX/TSX files #4

Open Glinkis opened 5 years ago

Glinkis commented 5 years ago

Currently, this extension does not seem to work with jsx and tsx files.

refactor-css-example

urbantrout commented 5 years ago

Have you tried refactor-css.include in the settings?

Defaults to **/*.{htm,html,vue,hbs,handlebars,php,jade,twig,md,erb,ejs,nunjucks,haml,leaf}

Glinkis commented 5 years ago

Just tried it, and unfortunately it still doesn't seem to work.

refactor-css-example2

urbantrout commented 5 years ago

Now I see the problem. tsx/jsx uses className instead of class… I will look into it

sebastienbarre commented 3 years ago

Would love to see JSX support as well. Thx