Skip to content

Commit

Permalink
tooling: biome + vercel speed insight
Browse files Browse the repository at this point in the history
  • Loading branch information
herbievine committed Dec 22, 2023
1 parent 349c88c commit 43c7ee1
Show file tree
Hide file tree
Showing 10 changed files with 164 additions and 1,676 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

20 changes: 20 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://biomejs.dev/schemas/1.4.1/schema.json",
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"include": ["src/*"],
"rules": {
"recommended": true,
"a11y": {
"all": false
}
}
}
}
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
"dev": "npx contentlayer build && next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "pnpm dlx @biomejs/biome lint src/ --apply",
"format": "pnpm dlx @biomejs/biome format src/ --write",
"check": "pnpm dlx @biomejs/biome check src/"
},
"dependencies": {
"@biomejs/biome": "^1.4.1",
"@t3-oss/env-nextjs": "^0.7.1",
"@typeform/embed-react": "^3.9.0",
"@vercel/analytics": "^1.1.1",
"@vercel/og": "^0.6.1",
"@vercel/speed-insights": "^1.0.2",
"clsx": "^2.0.0",
"contentlayer": "^0.3.1",
"dayjs": "^1.11.10",
Expand All @@ -35,12 +39,9 @@
"@types/react": "18.0.35",
"@types/react-dom": "18.0.11",
"autoprefixer": "^10.4.16",
"eslint": "8.56.0",
"eslint-config-next": "14.0.4",
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"postcss": "^8.4.32",
"prettier": "^3.1.1",
"tailwindcss": "^3.4.0",
"typescript": "5.3.3"
},
Expand All @@ -51,8 +52,8 @@
},
"lint-staged": {
"*.{ts,tsx,js}": [
"npx eslint --fix",
"npx prettier --write"
"pnpm dlx @biomejs/biome format src/**/*.{ts,tsx,mjs} --write",
"pnpm dlx @biomejs/biome lint src/**/*.{ts,tsx,mjs}"
],
"*.{md,mdx}": "npx prettier --write"
}
Expand Down
Loading

0 comments on commit 43c7ee1

Please sign in to comment.