add prettier check

This commit is contained in:
silas-x 2023-01-26 09:57:27 +00:00
parent 92a14d504b
commit 34720de587
3 changed files with 7 additions and 6 deletions

View File

@ -17,7 +17,7 @@ jobs:
- run: semgrep ci --exclude 'public/charting_library'
env:
SEMGREP_RULES: p/typescript
SEMGREP_RULES: p/typescript
sca:
name: Dependency Scan

View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
yarn typecheck && yarn lint --quiet
yarn format && yarn typecheck && yarn lint --quiet

View File

@ -8,6 +8,7 @@
"dev": "rm -rf .next && next dev",
"build": "next build",
"start": "next start",
"format": "prettier --check .",
"lint": "next lint",
"typecheck": "tsc",
"prepare": "husky install",