mirror of
https://github.com/github/codeql-action.git
synced 2025-12-06 07:48:17 +08:00
* pre-commit: move the linting check ahead of the compiling one, as a typescript lint can change the compilaed javascript, so you can end up in a situation where the pre-commit check fails twice in a row * just: add linting and make the default to run all
21 lines
552 B
YAML
21 lines
552 B
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: lint-ts
|
|
name: Lint typescript code
|
|
files: \.ts$
|
|
language: system
|
|
entry: npm run lint -- --fix
|
|
- id: compile-ts
|
|
name: Compile typescript
|
|
files: \.[tj]s$
|
|
language: system
|
|
entry: npm run build
|
|
pass_filenames: false
|
|
- id: pr-checks-sync
|
|
name: Synchronize PR check workflows
|
|
files: ^.github/workflows/__.*\.yml$|^pr-checks
|
|
language: system
|
|
entry: pr-checks/sync.sh
|
|
pass_filenames: false
|