Merge pull request #2776 from github/redsun82/just

Do some just+pre-commit tweaking
This commit is contained in:
Paolo Tranquilli 2025-02-27 12:40:34 +01:00 committed by GitHub
commit 83923549f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 5 deletions

View file

@ -1,17 +1,17 @@
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: lint-ts
name: Lint typescript code
files: \.ts$
language: system
entry: npm run lint -- --fix
- id: pr-checks-sync
name: Synchronize PR check workflows
files: ^.github/workflows/__.*\.yml$|^pr-checks

View file

@ -1,3 +1,10 @@
# Perform all working copy cleanup operations
all: lint sync
# Lint source typescript
lint:
npm run lint -- --fix
# Sync generated files (javascript and PR checks)
sync: build update-pr-checks