Skip to content

pre-commit hook ignores index #1114

Closed
Closed
@noscript

Description

@noscript

Version

3.0.0-beta.6

Reproduction link

https://github.com/noscript/vue-cli-pre-commit-bug

Steps to reproduce

  • Create a project with Lint and fix on commit enabled
  • Make some changes to src/App.vue and src/views/Home.vue
  • Using git add -p select changes only from src/App.vue
  • Commit with git commit

What is expected?

Only changes from src/App.vue committed.

What is actually happening?

Changes from src/views/Home.vue get committed too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions