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
Getting error when running any command:
> npx lint-staged --help -d Cannot read property 'toString' of undefined
xxx/node_modules/lint-staged/bin/lint-staged.js:8 process.env.FORCE_COLOR = supportsColor.level.toString() ^ TypeError: Cannot read property 'toString' of undefined at Object.<anonymous> (xxx/node_modules/lint-staged/bin/lint-staged.js:8:49)
lint-staged
The text was updated successfully, but these errors were encountered:
Thanks for the issue!
EDIT: on further investigation, if supportsColor is truthy, it should always have a numeric supportsColor.level property.
supportsColor
supportsColor.level
In any case, I'll open a PR to double-check.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Description
Getting error when running any command:
Steps to reproduce
Debug Logs
expand to view
Environment
lint-staged
: 10.2.11The text was updated successfully, but these errors were encountered: