Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 4 additions & 41 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,48 +1,11 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"formatter": {
"indentStyle": "space"
},
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"extends": ["ultracite/biome/core", "ultracite/biome/next"],
"linter": {
"rules": {
"a11y": {
"noAriaUnsupportedElements": "warn",
"noBlankTarget": "off",
"useAltText": "warn",
"useAriaPropsForRole": "warn",
"useValidAriaProps": "warn",
"useValidAriaValues": "warn",
"useKeyWithClickEvents": "off",
"noSvgWithoutTitle": "off"
},
"correctness": {
"noChildrenProp": "error",
"useExhaustiveDependencies": "warn",
"useHookAtTopLevel": "error",
"useJsxKeyInIterable": "error",
"noUnusedImports": "warn"
},
"security": {
"noDangerouslySetInnerHtmlWithChildren": "error"
},
"suspicious": {
"noCommentText": "error",
"noDuplicateJsxProps": "error",
"noExplicitAny": "warn"
"performance": {
"noNamespaceImport": "off"
}
}
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "all",
"semicolons": "asNeeded",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"quoteStyle": "single",
"attributePosition": "auto"
}
}
}
12 changes: 6 additions & 6 deletions drizzle.ci.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { defineConfig } from 'drizzle-kit'
import { defineConfig } from "drizzle-kit";

export default defineConfig({
out: './drizzle',
schema: './src/db/schema.ts',
dialect: 'postgresql',
out: "./drizzle",
schema: "./src/db/schema.ts",
dialect: "postgresql",
dbCredentials: {
url: process.env.DATABASE_URL ?? '',
url: process.env.DATABASE_URL ?? "",
},
})
});
12 changes: 6 additions & 6 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { defineConfig } from 'drizzle-kit'
import { env } from './src/env'
import { defineConfig } from "drizzle-kit";
import { env } from "./src/env";

export default defineConfig({
out: './drizzle',
schema: './src/db/schema.ts',
dialect: 'postgresql',
out: "./drizzle",
schema: "./src/db/schema.ts",
dialect: "postgresql",
dbCredentials: {
url: env.DATABASE_URL,
},
})
});
6 changes: 3 additions & 3 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pre-commit:
commands:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: npx @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true {staged_files} && git update-index --again
lint:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc,css}"
run: pnpm lint --write --no-errors-on-unmatched --files-ignore-unknown=true {staged_files} && git update-index --again
25 changes: 14 additions & 11 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
import type { NextConfig } from 'next'
import type { NextConfig } from "next";

const nextConfig: NextConfig = {
async headers() {
const headers = []
if (process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview') {
const headers: {
headers: { key: string; value: string }[];
source: string;
}[] = [];
if (process.env.NEXT_PUBLIC_VERCEL_ENV === "preview") {
headers.push({
headers: [
{
key: 'X-Robots-Tag',
value: 'noindex',
key: "X-Robots-Tag",
value: "noindex",
},
],
source: '/:path*',
})
source: "/:path*",
});
}
return headers
return headers;
},
serverExternalPackages: ['@supabase/supabase-js'],
}
serverExternalPackages: ["@supabase/supabase-js"],
};

export default nextConfig
export default nextConfig;
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@
"build": "next build",
"start": "next start",
"email": "email dev --dir src/components/emails",
"lint": "next lint",
"lint": "biome check",
"postinstall": "lefthook install",
"db:start": "docker compose -f infra/compose.yml up -d",
"db:stop": "docker compose -f infra/compose.yml down",
"db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate",
"db:migrate:ci": "drizzle-kit migrate --config drizzle.ci.config.ts"
"db:migrate:ci": "drizzle-kit migrate --config drizzle.ci.config.ts",
"prepare": "lefthook install"
},
"dependencies": {
"@dnd-kit/core": "6.3.1",
Expand Down Expand Up @@ -102,7 +103,7 @@
"zod": "3.25.76"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@biomejs/biome": "2.3.11",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/git": "10.0.1",
"@tailwindcss/postcss": "4",
Expand All @@ -114,7 +115,8 @@
"drizzle-kit": "0.31.4",
"lefthook": "1.11.10",
"tailwindcss": "4",
"typescript": "5"
"typescript": "5",
"ultracite": "7.0.11"
},
"volta": {
"node": "22.11.0",
Expand Down
Loading
Loading