mirror of
https://github.com/zen-browser/www.git
synced 2025-07-07 17:05: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:
|
commands:
|
||||||
prettier:
|
prettier:
|
||||||
priority: 1
|
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: |
|
run: |
|
||||||
pnpm prettier {staged_files} --write --list-different
|
pnpm prettier {staged_files} --write --list-different
|
||||||
stage_fixed: true
|
stage_fixed: true
|
||||||
|
@ -21,7 +21,7 @@ pre-commit:
|
||||||
eslint:
|
eslint:
|
||||||
commands:
|
commands:
|
||||||
base:
|
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:
|
exclude:
|
||||||
- public/**
|
- public/**
|
||||||
- dist/**
|
- dist/**
|
||||||
|
@ -34,7 +34,7 @@ eslint:
|
||||||
cspell:
|
cspell:
|
||||||
commands:
|
commands:
|
||||||
base:
|
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: |
|
run: |
|
||||||
pnpm cspell {staged_files}
|
pnpm cspell {staged_files}
|
||||||
stage_fixed: true
|
stage_fixed: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue