You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have just added "npm run test" to git commit hook, its failing with below error (refer the snapshot) - seems the matching files are being passed as argument?
"husky": "^8.0.3",
"lint-staged": "^15.2.2",
Config in .lintstagedrc file:
{
"src/**/*.{js,ts}": [
"npm run test"
]
}
The text was updated successfully, but these errors were encountered:
yes, that is how lint-staged works in general. you can ignore them by providing a lambda in your config instead of a json-formatted config file, like in lint-staged's ts example
I have just added "npm run test" to git commit hook, its failing with below error (refer the snapshot) - seems the matching files are being passed as argument?
"husky": "^8.0.3",
"lint-staged": "^15.2.2",
Config in .lintstagedrc file:
The text was updated successfully, but these errors were encountered: