Skip to content

Commit

Permalink
chore: update lint-staged (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuciNyan authored Feb 25, 2024
1 parent 5d593a9 commit c8ea06a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

#npm test
#npm run lint
npx lint-staged
pnpm lint

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
},
"lint-staged": {
"*.{js,css,md}": "prettier --write",
"*.{ts,tsx}": "eslint --fix --cache"
"*.{ts,tsx}": "eslint --fix"
},
"packageManager": "pnpm@8.7.0",
"engines": {
Expand Down
3 changes: 2 additions & 1 deletion packages/pixel-profile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"satori": "^0.10.11"
},
"lint-staged": {
"*.{js,css,md}": "prettier --write"
"*.{js,css,md}": "prettier --write",
"*.{ts,tsx}": "eslint --fix"
},
"packageManager": "pnpm@8.7.0",
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions packages/pixel-profile/src/cards/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ export async function renderStats(stats: Stats, options: Options = {}): Promise<
value: width
},
font: {
loadSystemFonts: false, // It will be faster to disable loading system fonts.
},
loadSystemFonts: false // It will be faster to disable loading system fonts.
}
} as const

const pngData = new Resvg(svg, opts).render()
Expand Down

0 comments on commit c8ea06a

Please sign in to comment.