mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-05 12:53:43 +00:00
Only format/check staged files
This commit is contained in:
parent
05fbacc539
commit
1ada6a03fa
@ -9,9 +9,9 @@
|
|||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"check:es": "eslint src/*/** --quiet",
|
"check:es": "eslint src/*/** --quiet",
|
||||||
"check:ts": "svelte-check --tsconfig ./tsconfig.json --threshold error",
|
"check:ts": "svelte-check --tsconfig ./tsconfig.json --threshold error",
|
||||||
"check:fmt": "prettier --check '{public,src}/**/*.{css,html,js,svelte}'",
|
"check:fmt": "prettier --check $(git diff --name-only --diff-filter d | grep -E 'js|svelte$' | xargs)",
|
||||||
"check": "run-p check:*",
|
"check": "run-p check:*",
|
||||||
"format": "prettier --write '{public,src}/**/*.{css,html,js,svelte}'",
|
"format": "prettier --write $(git diff --name-only --diff-filter d | grep -E 'js|svelte$' | xargs)",
|
||||||
"watch": "find src -type f | entr -r"
|
"watch": "find src -type f | entr -r"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
Loading…
Reference in New Issue
Block a user