react-css-modules-intellij-plugin
react-css-modules-intellij-plugin copied to clipboard
Support for highlighting unused styles
It would be very useful to have some sort of indication if a style is being used in the corresponding .tsx file.
It can be tricky with concatenated styles but it might simply be something that you ignore if you know the style is used. Otherwise, if possible, a grey underline could be used for styles with no full or partial usage and a green underline for styles containing e.g. "-label" and "-label" is being used in a concatenated style in the .tsx file.
css modules
are currently natively supported by IntelliJ
. https://github.com/jimkyndemeyer/react-css-modules-intellij-plugin/issues/1#issuecomment-308105789.
I just checked the native functionality, and while there is references support and completion, it doesn't annotate missing classes, nor does it provide intentions to create the classes.
The plugin appears to work alongside the native functionality without issues, so there is no need to remove this plugin from the repo yet.