mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-10 11:31:44 -04:00
i love lint-staged
This commit is contained in:
1 parent
cfbd0d16aa
commit
289fc109fd
2 files changed
+5
-12
No files matched your search
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"*.{js,jsx,ts,tsx,html,json,yml,yaml,css,scss,md}": ["prettier --write"]
|
||||
}
|
||||
+2
-12
@@ -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