mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-05 09:13:28 +00:00
i love lint-staged
This commit is contained in:
parent
cfbd0d16aa
commit
289fc109fd
3
.lintstagedrc.json
Normal file
3
.lintstagedrc.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"*.{js,jsx,ts,tsx,html,json,yml,yaml,css,scss,md}": ["prettier --write"]
|
||||
}
|
14
lefthook.yml
14
lefthook.yml
|
@ -6,15 +6,5 @@
|
|||
pre-commit:
|
||||
commands:
|
||||
# automatically format files, ✨magically✨
|
||||
prettier:
|
||||
glob: '[^pnpm-lock]*.{js,jsx,ts,tsx,html,json,yml,yaml,css,scss,md}'
|
||||
run: pnpm prettier --write {staged_files} && git add {staged_files}
|
||||
# pre-push:
|
||||
# parallel: true
|
||||
# commands:
|
||||
# lint:
|
||||
# glob: '*.{ts,tsx}'
|
||||
# run: pnpm eslint {staged_files}
|
||||
# markdown-link-check:
|
||||
# glob: '*.md'
|
||||
# run: pnpm markdown-link-check {staged_files}
|
||||
lint-staged:
|
||||
run: pnpm lint-staged
|
||||
|
|
Loading…
Reference in a new issue