-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is there a way get styled-components support in React layer #13625
Comments
I think it's up to rjsx-mode to support properly felipeochoa/rjsx-mode#71 for the time being. Someone knowledgeable in elisp might be inclined to investigate using web-mode instead. While it's supposed to handle different languages mixed within each other, it also has some problems which lead to spacemacs replacing web-mode with rjsx-mode in the past so it would be quite a sizable effort as well. |
The develop branch has a React layer - have you tried that? https://develop.spacemacs.org/layers/+frameworks/react/README.html |
To give you a bit more info, here's my react setup. I used CRA (create-react-app - using typescript so .tsx files), so many of those plugins the doc tells you to install may already be installed - check in your package.json (you DO NOT want to overwrite the versions they have already installed, as I did, because it turns into a MASSIVE dependency mess). I think I did install both
but everything still works fine, and flycheck picks up eslint (you can confirm with I'll paste my config files for the 3 aformentioned setup files .eslintrc.js .jsbeautifyrc and .prettierrc.js. Hope this helps - let me know if this solves your issue. |
I removed the stale and added feature-request label:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
styled-components is a CSS-in-JS library. It is pretty popular now. Is there any way to get syntax highlighting and completion to work.
maybe I can put something in my config that says anything between " styled.anything` " up to " ` " should be in CSS mode, but I don't know where to start.
Thanks.
The text was updated successfully, but these errors were encountered: