I've got projecct structure like below:
project
- .husky
- src
-- all files
- package.json
here is me lint-staged from package.json
"lint-staged": "^12.1.7",
.
.
.
"lint-staged": {
"*.{js,ts,tsx}": [
"npm run prettier",
"npm run lint:fix"
]
},
can someone tell me what have i'm wrong with yarn lint-staged that after launch this command he always return me this:
→ No staged files match any configured task.
Thanks for any help!
PS. I'm running this command from pre-push husky script
Did you run git add . before running yarn lint-staged?