-
Notifications
You must be signed in to change notification settings - Fork 10
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
Acknowledge Ignored Files by Skipping #3
Comments
Hey @lakshyaranganath, thanks for checking it out! 😀 Hmm... Have you tried it to see if it doesn't work? Under the hood of this runner, stylelint should support that by default out of the box. If it doesn't work let me know and I should be able to do something about that. |
Hey @keplersj, yeah I'm reporting this only after trying it for myself. jest config
.stylelintignore
Output from jest
as you can see it tries to lint files in the es/* and lib/* directories although its ignored in the Let me know if you need any other info regarding this. Will be super glad to help :) |
Ah. I think I know what's happening. Under the hood of this runner stylelint is ignoring the files in I'm not sure what the behavior should be with this scenario to be honest. It looks like stylelint does include if a linted file is ignored so I can handle this case pretty easily, just not sure what would work best. I believe there are two options - either not report anything for ignored files (which should prevent them from showing up as running and successful) or do the more verbose and explicit behavior and mark the file as skipped, equivalent to Let me know what your preferred solution is, I'm leaning a bit more toward the skipping functionality but I also tend to lean more toward explicit solutions. |
Sweet, thanks for catching that so quickly. Marking the files skipped seems to be the preferred way runners are written. Even the |
Hey @keplersj, first off, thanks for creating this project :)
Wanted to see if there's gonna be any feature to respect
.stylelintignore
rules automatically likejest-runner-eslint
?Right now it seems to be matching all *.css files(based on testMatch) regardless of what is mentioned in the
.stylelintignore
config.The text was updated successfully, but these errors were encountered: