i love lint-staged

This commit is contained in:
maxichrome committed 2023-01-19 19:15:33 -08:00
1 parent cfbd0d16aa
commit 289fc109fd
2 files changed
+5 -12

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
{
"*.{js,jsx,ts,tsx,html,json,yml,yaml,css,scss,md}": ["prettier --write"]
}
+2 -12
View File
@@ -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