schematics
schematics copied to clipboard
pre-commit hook is broken after prettier schematic
Prettier schematic creates this hook in .huskyrc:
"pre-commit": "pretty-quick --staged && lint-staged"
lint-staged needs a config file since v3.1 Since this is not generated, commiting fails with this error message:
Config could not be found.
Please make sure you have created it correctly.
See https://github.com/okonet/lint-staged#configuration.
Possible fixes:
- create minimal lint-staged config file
- remove lint-staged from pre-commit hook:
"pre-commit": "pretty-quick --staged"