Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lint-staged not working on fresh installations #956

Open
jahvi opened this issue Jul 13, 2022 · 0 comments
Open

lint-staged not working on fresh installations #956

jahvi opened this issue Jul 13, 2022 · 0 comments

Comments

@jahvi
Copy link

jahvi commented Jul 13, 2022

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.

@danielroe danielroe transferred this issue from nuxt/nuxt Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant