Skip to content

Commit 5bc966b

Browse files
committed
infra: add tx and tsx support for precommit hook
Signed-off-by: yuluo-yx <[email protected]>
1 parent 293c134 commit 5bc966b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ repos:
4242
files: \.(yaml|yml)$
4343
exclude: ^(\node_modules/)
4444

45-
# JavaScript specific hooks
45+
# JavaScript and TypeScript specific hooks
4646
- repo: local
4747
hooks:
48-
- id: js-lint
49-
name: js lint
48+
- id: js-ts-lint
49+
name: js/ts lint
5050
entry: bash -c 'cd website && npm install 2>/dev/null || true && npm run lint'
5151
language: system
52-
files: \.js$
52+
files: \.(js|ts|tsx)$
5353
exclude: ^(\node_modules/)
5454
pass_filenames: false
5555

0 commit comments

Comments
 (0)