Skip to content

Commit 57870b5

Browse files
committed
Do some just+pre-commit tweaking
* 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
1 parent d38c6e6 commit 57870b5

File tree

3 files changed

+12
-91
lines changed

3 files changed

+12
-91
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
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

README.md

Lines changed: 0 additions & 86 deletions
This file was deleted.

justfile

Lines changed: 7 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy