Skip to content

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