I'm working with NodeJS Typescript and I wanted to set lint-staged
to validate my files before commit but it is not working. I added from a guide as following:
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js, jsx, ts, tsx, md, html}": [
"eslint --fix",
"prettier --write",
"git add"
]
}
The error I'm getting:
No staged files match any of provided globs.
What is the right config for my package.json
?