Skip to content

Pass tests, eslint and prettier on commit #8

@luisherranz

Description

@luisherranz

Use husky & lintstaged for that.

Something like:

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

and

{
  "hooks": {
    "pre-commit": "lint-staged && npm run test:ci"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions