Skip to content

Commit 2885df5

Browse files
[No QA] Add YAML to lefthook oxfmt glob
Include .yml/.yaml in the pre-commit oxfmt hook and use brace expansion to keep the JS/TS extension list concise. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent f8bcf30 commit 2885df5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lefthook.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
pre-commit:
22
commands:
33
oxfmt:
4-
glob: '*.{js,mjs,cjs,ts,tsx,mts,cts}'
4+
glob:
5+
- '*.{j,mj,cj}s'
6+
- '*.{ts,tsx,mts,cts}'
7+
- '*.{yml,yaml}'
58
run: npx oxfmt --write {staged_files}
69
stage_fixed: true

0 commit comments

Comments
 (0)