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
Disregard default ignores when ignoreFiles is used #2236
Comments
@bzang why you need linting in |
@evilebottnawi. Our project uses the alle pattern https://github.com/boennemann/alle, which is a monorepo pattern that places all packages in a |
@bzang Interesting use case. Do you encounter the same issue when using eslint as they also ignore the |
@jeddy3, eslint actually only ignores the base |
@bzang Thanks for looking into it.
Funnily enough, we're following the lerna monorepo approach on my current project.
So, having stylelint ignore any file with Having said that, as stylelint doesn't have a option to disable the default ignores, perhaps they should be more permissive? @stylelint/core Should we change this default behaviour for |
@jeddy3, yea we were using Lerna before switching over to alle, and stylelint worked great! I believe that the It makes sense to have |
@jeddy3 maybe if not passed |
@jeddy3 i think we should change logic in the stylelint/lib/isPathIgnored.js Line 7 in b5145a1
Eslint code: https://github.com/eslint/eslint/blob/616611afe19da5380344042fc73c7b91e59375cc/lib/ignored-paths.js#L32 |
I think so too. Releasing |
@jeddy3 |
@davidtheclark Always keen for your input and nod of approval when adding options to the CLI. Any objection to this option, or shall I open it out to contribution? |
Ugh. Sticky situation. Here's what I'd favor: Make |
@davidtheclark right, perhaps this logic is best suited to solve the issue |
SGTM, thanks for chiming in. This change of behaviour will be for |
Yeah, absolutely. |
Is there a rough guess for when 8.0.0 will be out? I'm going to have to find some solution to lint our files at work and I'm likely unable to wait for a long time, so I'll need to evaluate my options. |
Probably a few weeks as there's quite a bit left to do. You can help us speed up the process by tackling some of the |
Thanks for hopping on this everyone. I definitely agree with @davidtheclark's solution. That seems to be the most sustainable and also similar to how other tooling environments like webpack deal with overrides and ignores. Will lend a hand at the 8.0.0 milestone issues to speed this along. |
Closed by #2464. |
Target files located in any node_modules folder are ignore even when I specifically want to lint them.
N/A
N/A
N/A
7.7.1
CLI with
stylelint "packages/node_modules/**/*.css" --config .stylelintrc.yml -i node_modules
No
All files with extension css in the
packages/node_modules
folder to be lintedNothing happens
node_modules
directory.The text was updated successfully, but these errors were encountered: