react-css-modules-intellij-plugin
react-css-modules-intellij-plugin copied to clipboard
React CSS Modules support in IntelliJ IDEA and WebStorm for components written in JavaScript and TypeScript.
Reported by our internal exception analyzer. ``` java.lang.StackOverflowError at com.intellij.util.WalkingState.next(WalkingState.java:73) at com.intellij.util.WalkingState.walkChildren(WalkingState.java:61) at com.intellij.util.WalkingState.elementStarted(WalkingState.java:52) at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor.visitNode(RecursiveTreeElementWalkingVisitor.java:86) at com.intellij.psi.impl.source.tree.RecursiveTreeElementWalkingVisitor.visitComposite(RecursiveTreeElementWalkingVisitor.java:81) at com.intellij.psi.impl.source.tree.AstBufferUtil$BufferVisitor.visitComposite(AstBufferUtil.java:115) at com.intellij.psi.impl.source.tree.CompositeElement.acceptTree(CompositeElement.java:130) at com.intellij.psi.impl.source.tree.AstBufferUtil.toBuffer(AstBufferUtil.java:40) at com.intellij.psi.impl.source.tree.AstBufferUtil.toBuffer(AstBufferUtil.java:35) at com.intellij.psi.impl.source.tree.CompositeElement.textToCharArray(CompositeElement.java:244) at com.intellij.psi.impl.source.tree.CompositeElement.getText(CompositeElement.java:225)...
Currently syntax highlighting happens only if I require a .css file. ```jsx import './welcome.scss'; // does NOT work import styles from './welcome.scss'; // works require './welcome.scss'; // works ``` ```css...
Something like `-ms-grid-rows: (1fr)[8];` is valid syntax for defining grid rows for the early and non-standard CSS grid layout supported by IE11. However, this plugin flags it as an error...
```.header { width: 100% }``` ```import { header } from './styles.scss'```
As an alternative to `styles['someClass']` Great project :+1: super timely as I just started a CSS Modules project today :)
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...
``` import './component.css'` ``` should load the file. See https://github.com/gajus/babel-plugin-react-css-modules#anonymous-reference . I've tried to add the change myself but I can not manage to build the plugin.
SOE
Hi. In our internal exception analyzer was reported the exception: https://gist.github.com/anstarovoyt/f982a8011cc84a2edf5d22bfb9d64c7f it seems `getCssClassNamesImportOrRequireDeclaration` the cause of the error.
Hello, Jim. Thanks for great work. Unfortunately for now I can't use plugin, because of false positive error annotations. Plugin doesn't consider classes imported by scss @import derictive. If I...