-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Ability to suppress error "Cannot process specified file: it’s ignored" #47
Comments
The engine has a The current behavior also resembles ESLint, say we had console.log(1) and {
"extends": "eslint:recommended"
} ...now, if we’d run
...and if we’d add an
...we’d get:
Here’s what ESLint decided on the topic, and I feel similar, and you can solve this on lint-staged’s side as described in their docs. |
thank you! I figure that it will be too much work to filter the files in lint-staged, as normally there are just a few markdown files per repo. I finally go for running on all markdown files in lint-staged by |
Unfortunately, if there are many md files in repo it is a problem. And it should be solved twice: in Great suggestion, @foray1010 . P.S. I guess many people (as me) don't even suspect, that |
Subject of the feature
Do not throw error when running with ignored file
Problem
I am using remark-cli with lint-staged, lint-staged doesn't know the content in .remarkignore, so it will try to run on all modified md files with remark-cli. But as the file is ignored by remark-cli, it throws error
Cannot process specified file: it’s ignored
Expected behavior
I can use remark-cli with lint-staged without any errors
Alternatives
As it may be a breaking change, maybe a flag to enable?
The text was updated successfully, but these errors were encountered: