Skip to content

Commit 8392354

Browse files
authored
Merge pull request #2776 from github/redsun82/just
Do some just+pre-commit tweaking
2 parents 97aac9b + 9663263 commit 8392354

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.pre-commit-config.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
repos:
22
- repo: local
33
hooks:
4+
- id: lint-ts
5+
name: Lint typescript code
6+
files: \.ts$
7+
language: system
8+
entry: npm run lint -- --fix
49
- id: compile-ts
510
name: Compile typescript
611
files: \.[tj]s$
712
language: system
813
entry: npm run build
914
pass_filenames: false
10-
- id: lint-ts
11-
name: Lint typescript code
12-
files: \.ts$
13-
language: system
14-
entry: npm run lint -- --fix
1515
- id: pr-checks-sync
1616
name: Synchronize PR check workflows
1717
files: ^.github/workflows/__.*\.yml$|^pr-checks

justfile

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# Perform all working copy cleanup operations
2+
all: lint sync
3+
4+
# Lint source typescript
5+
lint:
6+
npm run lint -- --fix
7+
18
# Sync generated files (javascript and PR checks)
29
sync: build update-pr-checks
310

0 commit comments

Comments
 (0)