lefthook.yml 270 B

1234567891011
  1. pre-commit:
  2. parallel: true
  3. commands:
  4. lint:
  5. files: git diff --name-only @{push}
  6. glob: '*.{js,ts,jsx,tsx}'
  7. run: npx eslint {files}
  8. types:
  9. files: git diff --name-only @{push}
  10. glob: '*.{js,ts, jsx, tsx}'
  11. run: npx tsc --noEmit