mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-02-20 15:43:58 -05:00
i love lint-staged
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user