-
-
Notifications
You must be signed in to change notification settings - Fork 357
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
Document path globs support #120
Comments
Remark has support for globs, and uses minimatch, globby, internally. Could you show me a test case which doesn’t work? |
Sure, let me change this issue to a request to document the support. I'll create another report for the issue. |
Thanks for the issue. I’m not sure what kind of documentation you expect though. There are already some examples of |
AFAIK, Anyway, ideally, you could mention the supported glob syntax (at least something like this: https://www.npmjs.com/package/globby#globbing-patterns). But if it's too much, adding an example with |
Cool, thanks |
@wooorm Does this module still use globby internally? I can't find usage of it in this repo or in unified-args. And I'm struggling to figure out how to pass globs with negation ( |
Did you find I only know of negation patterns due to the ignore part (for remark, Note: what exactly are you doing? Globbing may be faster, but the file-in-directory finding itself shouldn’t be super slow either! |
I have repos with more Markdown files to lint that just at the root level. Often there's a |
👍 Why not just use 'remark .'? That should cover all cases! |
Oh geez, I'm sorry! I think while iterating on something I confused myself into thinking that |
Oh no problem at all! Yeah the directory search stuff is pretty powerful. Let me know if you have suggestions for doc additions to make this more clear! |
One thing that would be cool to have in the docs is a globby example for MDX files. I am using {
"scripts": {
"lint-md": "remark \"src/pages/**/*.mdx\""
}
} |
@karlhorky We have much more examples about how the remark and rehype CLIs work in |
Hello,
I'd like to ask you to implement support for specifying input files by globs. That would allow us to run
remark
from build (e.g. npm) scripts in a portable (cross-platform) way. There is actually a lot of linters that accept globs already. They use minimatch AFAIK. I mean some module based on it like globby, glob-all, globule or simple-glob.The text was updated successfully, but these errors were encountered: