Skip to content

Add precommit hook to run prettier #12

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
Jun 19, 2018
Merged

Conversation

brunolm
Copy link
Owner

@brunolm brunolm commented Jun 19, 2018

Also add git add after prettier command
e6e49b1

"husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "*.{ts,tsx}": [
      "prettier --write",
      "git add"
    ]
  },

@brunolm brunolm merged commit 98658d1 into master Jun 19, 2018
@brunolm brunolm deleted the feature/pre-commit-prettier branch June 19, 2018 03:32
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.

1 participant