create-nuxt-app
create-nuxt-app copied to clipboard
lint-staged not working on fresh installations
Versions
- nuxt: 2.15.8
- node: 16.14.2
Reproduction
See below.
Steps to reproduce
- Run
npx create-nuxt-app nuxt2 - In the "Linting tools:" prompt choose "Prettier" and "Lint staged files", the rest doesn't matter.
- After installation update "index.vue" file and commit
What is Expected?
Changed files should be linted
What is actually happening?
Files are not linted.
It looks like husky, lint-staged and prettier are installed fine and the package.json file gets modified accordingly but the pre-commit hook doesn't trigger.