mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 08:55:32 +02:00
chore(lefthook): improve glob for lefthook
This commit is contained in:
parent
8f8834c382
commit
439b2faf7d
1 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@ pre-commit:
|
|||
commands:
|
||||
prettier:
|
||||
priority: 1
|
||||
glob: "**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,d.ts,md,mdx,yaml,yml,json,html,css,astro}"
|
||||
glob: "*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,d.ts,md,mdx,yaml,yml,json,html,css,astro}"
|
||||
run: |
|
||||
pnpm prettier {staged_files} --write --list-different
|
||||
stage_fixed: true
|
||||
|
@ -21,7 +21,7 @@ pre-commit:
|
|||
eslint:
|
||||
commands:
|
||||
base:
|
||||
glob: "**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,d.ts,astro}"
|
||||
glob: "*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,d.ts,astro}"
|
||||
exclude:
|
||||
- public/**
|
||||
- dist/**
|
||||
|
@ -34,7 +34,7 @@ eslint:
|
|||
cspell:
|
||||
commands:
|
||||
base:
|
||||
glob: "**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,d.ts,astro,json,yaml,yml,md,mdx}"
|
||||
glob: "*.{js,cjs,mjs,jsx,ts,cts,mts,tsx,d.ts,astro,json,yaml,yml,md,mdx}"
|
||||
run: |
|
||||
pnpm cspell {staged_files}
|
||||
stage_fixed: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue