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

Pass tests, eslint and prettier on commit #8

Open
luisherranz opened this issue Jul 28, 2019 · 0 comments
Open

Pass tests, eslint and prettier on commit #8

luisherranz opened this issue Jul 28, 2019 · 0 comments
Milestone

Comments

@luisherranz
Copy link
Member

luisherranz commented Jul 28, 2019

Use husky & lintstaged for that.

Something like:

{
  "*.ts": [
    "prettier --write",
    "eslint --fix",
    "git add"
  ]
}

and

{
  "hooks": {
    "pre-commit": "lint-staged && npm run test:ci"
  }
}
@luisherranz luisherranz modified the milestones: v1.0, v1.1 Jul 28, 2019
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

No branches or pull requests

1 participant