Skip to content

Add lint-staged to re-stage fixed files in precommit #340

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

Merged
merged 1 commit into from
Dec 6, 2018

Conversation

josephting
Copy link
Contributor

Description

Changes fixed by prettier-eslint aren't staged to the commit.
This PR will fix this issue.

lint-staged is used.

Motivation and Context

Eliminate the need to do git commit amend or worst yet, separate commit to push the changes made by prettier-eslint.

How Has This Been Tested?

npm run precommit works perfectly.

Destroying the format in src/Carousel.vue and then do git commit -am 'test' will create an empty commit.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • I have included a vue-play example (if this is a new feature)

@quinnlangille
Copy link
Member

Great work @josephtingm, this has been driving me crazy for a year lol I'll merge right away

@quinnlangille quinnlangille merged commit a92a910 into SSENSE:v0.17.0 Dec 6, 2018
@josephting josephting deleted the bug/precommit-lint branch December 7, 2018 00:48
@coveralls
Copy link

Coverage Status

Coverage remained the same at 67.925% when pulling be52329 on josephting:bug/precommit-lint into 2d83503 on SSENSE:v0.17.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants