create-nuxt-app icon indicating copy to clipboard operation
create-nuxt-app copied to clipboard

lint-staged not working on fresh installations

Open jahvi opened this issue 3 years ago • 0 comments

Versions

  • nuxt: 2.15.8
  • node: 16.14.2

Reproduction

See below.

Steps to reproduce

  1. Run npx create-nuxt-app nuxt2
  2. In the "Linting tools:" prompt choose "Prettier" and "Lint staged files", the rest doesn't matter.
  3. 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.

jahvi avatar Jul 13 '22 08:07 jahvi