-
-
Notifications
You must be signed in to change notification settings - Fork 930
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
Stylelint --fix gets stuck with React.js inline styles #4309
Comments
Have you looked at https://github.com/kristerkari/stylelint-react-native and https://github.com/kristerkari/stylelint-config-react-native-css-modules I've not looked at these myself, on my to do list, they or the docs there might be of help |
I will do fix for that |
@RyanPWalker could you provide reproducible example (creating small repo or using stylelint demo page). |
@vankop sorry for the delayed response, I've been very busy. Thank you for addressing this so quickly. I will try and set up a small repo for you later today |
I am having trouble reproducing the issue in a new repo at home... maybe it has something to do with my company's npmrc using a different package behind the scenes. No idea which one or which version, but will continue to investigate... |
Thanks, I can confirm that version |
Error:
Node: 10.16.3
Stylelint npms:
.stylelintrc
Command run:
stylelint ./src --fix
Inside the npm code under
stylelint/lib/rules/no-eol-whitespace/index.js:216:25
I logged outroot.raws
and instead of something like{ semicolon: true, after: '\n' }
it would log out asLooks like it got stuck on
style={
so I commented out that line and it got stuck on the next file that had a variable inline style likeconst styledThing = {'
.Not sure if I'm missing some sort of React stylelint package, but --fix gets stuck on React inline styles.
The text was updated successfully, but these errors were encountered: