We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello.
Given the following lerna directory structure:
packages package1 node_modules package.json README.md package2 node_modules package.json README.md .gitignore .remarkrc package.json README.md
Where .remarkrc contains:
.remarkrc
{ "plugins": [ "preset-lint-recommended", "preset-lint-consistent" ] }
And the root package.json contains:
package.json
{ "scripts": { "lint:md": "remark '**/*.md' --ignore-path .gitignore --quiet --frail", }, "devDependencies": { "remark-cli": "3.0.0", "remark-preset-lint-consistent": "2.0.0", "remark-preset-lint-recommended": "2.0.0", } }
And .gitignore contains:
.gitignore
.DS_Store .env dist lerna-debug.log node_modules npm-debug.log coverage
Running npm run lint:md returns a few thousand of the same error (I believe one for each markdown files within the node_modules directories, e.g.:
npm run lint:md
node_modules
packages/website/node_modules/leveldown/README.md 1:1 error Cannot process specified file: it’s ignored
Whereas the same setup (albeit with a remark-cli@2 configuration object) threw no errors.
remark-cli@2
I've taken a poke around, but I'm struggling to see what might be causing it. Am I missing something obvious?
The text was updated successfully, but these errors were encountered:
The previous version did some magic things there, which caused problems.
Thing is that your globs match those files, and your ignore file says to ignore them. remark doesn’t know what to do in that case, so it warns.
Is there any reason not to pass . instead of the glob? A different file-finding mechanism kicks in then, which should work properly!
.
Sorry, something went wrong.
Is there any reason not to pass . instead of the glob?
Nope, no particular reason. Using . worked great. Thank you for the very quick reply :)
Great. Sure no problem, thanks for using remark!
I am also facing this issue. Given there are changes in .github/ISSUE_TEMPLATE/defect_template.md, I have:
.github/ISSUE_TEMPLATE/defect_template.md
.remarkignore
.github/ISSUE_TEMPLATE/**
When running remark --quiet --frail ., I also see the error:
remark --quiet --frail .
.github/ISSUE_TEMPLATE/defect_template.md 1:1 error Cannot process specified file: it’s ignored
No branches or pull requests
Hello.
Given the following lerna directory structure:
Where
.remarkrc
contains:And the root
package.json
contains:And
.gitignore
contains:Running
npm run lint:md
returns a few thousand of the same error (I believe one for each markdown files within thenode_modules
directories, e.g.:Whereas the same setup (albeit with a
remark-cli@2
configuration object) threw no errors.I've taken a poke around, but I'm struggling to see what might be causing it. Am I missing something obvious?
The text was updated successfully, but these errors were encountered: