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
Add --noglob cli option #4286
Add --noglob cli option #4286
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this work is enough.
However there is some usage of globby options still, see https://github.com/stylelint/stylelint/blob/master/lib/standalone.js#L202
Maybe we need to use process.cwd()
explicitly it such cases
I am 👎 on this, solution should be #4193 (comment), not new option for CLI |
@@ -170,7 +170,7 @@ module.exports = function( | |||
fileList = [fileList]; | |||
} | |||
|
|||
if (!options.disableDefaultIgnores) { | |||
if (!options.disableDefaultIgnores && !options.noglob) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case, ALWAYS_IGNORED_GLOBS
is not working as expected with noglob
, it is not good idea
@evilebottnawi So, if I understand you correctly, you suggest to use kind of heuristic:
or there is another idea? |
eslint use this code |
Code from eslint looks good, i think we should use this logic too |
Any other suggestions? |
Closes #4193 and is non-breaking alternative for #4254 that can be accepted in minor release.
Tests and flow types have been implemented