-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
How to Use? #3
Comments
Seems like you also need to create a |
@khrome83 I'm also interested in how you could run stylelint via CLI with the plugin enabled, did you eventually find out ? |
Nope. We did not figure it out.
Thanks,
…--
Zane Milakovic
InsideRx.com
m: 410.618.7727
On Feb 8, 2019, 10:21 AM -0600, VinceBT ***@***.***>, wrote:
@khrome83 I'm also interested in how you could run stylelint via CLI with the plugin enabled, did you eventually find out ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Ditto to the above. I have a Does anyone have an example project that can be shared where this is setup and working as expected? |
I did some further troubleshooting on this. Managed to get it executing - but found it was hanging during build (for context, I am using Next.js). After some digging, I think it's a problem with the
This now reports issues as expected, although I do seem to see the warnings appear twice so something's up there... at least it works. I'm not too sure what the purpose of the loop is... In terms of getting this to work through the CLI, it's not really possible from what I can tell at the moment, as the actual CSS is provided to this plugin by styled-jsx. There'd need be some other way of extracting that from the JS (I guess reusing whatever method styled-jsx has to resolve them), to then parse. For me personally having this work via the CLI is a must-have, as I need to be able to run linting in CI for my projects. @giuseppeg any thoughts on all of this? |
I have everything setup according to the readme.md
I am not seeing any errors with the plugin being added. I am not seeing any error output when i "break" the css.
I have tried creating non existing classes, adding extra lines, playing with selector definitions, creating fake properties, etc.
Any advice?
Also is there any way to run this via CLI / NPM? I want to lint as part of a CI without running
npm run dev
The text was updated successfully, but these errors were encountered: