Closed
Description
Version
3.0.0-alpha.13
Reproduction link
https://github.com/cesalberca/curiosity-client/tree/prettier-bug
Steps to reproduce
Try committing any change.
What is expected?
Prettier user configuration should be applied correctly when using lint-staged and not fail.
What is actually happening?
When running yarn lint
everything works as expected and no linting errors are found. However when I make a commit the following error happens:
> running pre-commit hook: lint-staged
❯ Running tasks for *.js
✖ vue-cli-service lint
→ 1 warning found.
git add
↓ Running tasks for *.vue [skipped]
→ No staged files match *.vue
✖ vue-cli-service lint found some errors. Please fix them and try committing again.
warning: File ignored because of a matching ignore pattern. Use "--no-ignore" to override (undefined) at vue.config.js
1 warning found.
pre-commit hook failed (add --no-verify to bypass)
I've tried deleting .eslintignore
and vue.config.js
and the error persists.
When there is no prettierrc.js
everything works as expected, but I would like to be able to change the Prettier configuration.