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
symlink paths #1318
Comments
Hello, can this be achieved with the |
@iiroj diff-filter can't omit symlink files. |
eslint can break too when given symlink files typescript-eslint/typescript-eslint#2987 Could we not add a config to ignore them? |
I'm not sure if this is something lint-staged should solve, because the issue is in linter tool itself. 🤔 If we start linting on the real files, they might be outside of the repo, for example. A flag like |
Symlink paths
When this tool is used together with husky and prettier symlink files are processed.
This causes issues with the latest version of prettier that errors on symbolic links....
In the context of linting symlink files don't make any sense?
Would you accept a pull request to ignore symlink files?
Steps to reproduce
Add a new file with git add that is a symlink.
git status A index.js git ls-files -s | grep index.js 120000 8577b9841658a7a00067d49e79e8292077b37193 0 index.js
Debug Logs
expand to view
Environment
lint-staged
: 14.0.1The text was updated successfully, but these errors were encountered: