Skip to content

Commit 3172ac4

Browse files
Remove ESLint & Prettier, install Biome
1 parent b399b41 commit 3172ac4

File tree

131 files changed

+5039
-5456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+5039
-5456
lines changed

.eslintrc.json

+1-39
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,3 @@
11
{
2-
"extends": ["next/core-web-vitals", "next/typescript"],
3-
"rules": {
4-
"react-hooks/exhaustive-deps": "off",
5-
"react/no-unescaped-entities": "error",
6-
"no-unreachable": "error",
7-
"no-console": ["warn", { "allow": ["warn", "error"] }],
8-
"no-unreachable/auto-fix": "off",
9-
"@typescript-eslint/no-non-null-assertion": "warn",
10-
"@typescript-eslint/ban-ts-comment": "off",
11-
"@typescript-eslint/no-unused-vars": [
12-
"warn",
13-
{
14-
"varsIgnorePattern": "^_",
15-
"argsIgnorePattern": "^_",
16-
"ignoreRestSiblings": true,
17-
"args": "none"
18-
}
19-
],
20-
"no-shadow": "off",
21-
"@typescript-eslint/no-shadow": [
22-
"error",
23-
{
24-
"builtinGlobals": true,
25-
"hoist": "all",
26-
"ignoreTypeValueShadow": true,
27-
"ignoreFunctionTypeParameterNameValueShadow": true,
28-
// prettier-ignore
29-
"allow": ["context", "data", "description", "Document", "email", "error", "event", "global", "id", "Image", "message", "name", "params", "password", "path", "props", "query", "reject", "req", "Request", "res", "resolve", "Response", "result", "scrollY", "session", "status", "text", "title", "top", "type", "url", "user", "value"
30-
]
31-
}
32-
],
33-
"no-restricted-syntax": [
34-
"warn",
35-
{
36-
"selector": "TSEnumDeclaration",
37-
"message": "Use union types or const objects instead of enums."
38-
}
39-
]
40-
}
2+
"extends": ["next/core-web-vitals", "next/typescript"]
413
}

.prettierignore

-2
This file was deleted.

.prettierrc

-23
This file was deleted.

biome.json

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"organizeImports": {
4+
"enabled": true
5+
},
6+
"linter": {
7+
"enabled": true,
8+
"rules": {
9+
"recommended": true,
10+
"suspicious": {
11+
"noConsole": "warn",
12+
"noExplicitAny": "warn",
13+
"noDoubleEquals": "warn",
14+
"noEmptyInterface": "warn",
15+
"noImplicitAnyLet": "warn",
16+
"noPrototypeBuiltins": "warn"
17+
},
18+
"correctness": {
19+
"useExhaustiveDependencies": "warn",
20+
"noUnusedVariables": "warn",
21+
"useHookAtTopLevel": "warn",
22+
"noUndeclaredVariables": "warn",
23+
"noUnusedImports": "warn"
24+
},
25+
"a11y": {
26+
"useAltText": "warn",
27+
"useKeyWithClickEvents": "warn",
28+
"useValidAnchor": "warn"
29+
},
30+
"style": {
31+
"noNonNullAssertion": "info",
32+
"useConst": "warn"
33+
},
34+
"nursery": {
35+
"noEnum": "error"
36+
}
37+
}
38+
},
39+
"javascript": {
40+
"formatter": {
41+
"enabled": true,
42+
"quoteStyle": "single",
43+
"jsxQuoteStyle": "double",
44+
"trailingCommas": "all",
45+
"semicolons": "asNeeded",
46+
"arrowParentheses": "always",
47+
"lineWidth": 140,
48+
"indentWidth": 2,
49+
"indentStyle": "tab"
50+
}
51+
},
52+
"files": {
53+
"ignore": ["node_modules", ".next", "public", "misc"]
54+
}
55+
}

cspell.json

+20-19
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
{
2-
"ignorePaths": [
3-
"pnpm-lock.yaml",
4-
".dockerignore",
5-
".gitignore",
6-
"Dockerfile",
7-
".env.production",
8-
".env.development",
9-
".env.example"
10-
],
11-
"words": [
12-
"Agromberis",
13-
"Bakewell",
14-
"Pompamonterson",
15-
"Pompermonterson",
16-
"resends",
17-
"simpleorder",
18-
"steves",
19-
"stoneground"
20-
]
2+
"ignorePaths": [
3+
"pnpm-lock.yaml",
4+
".dockerignore",
5+
".gitignore",
6+
"Dockerfile",
7+
".env.production",
8+
".env.development",
9+
".env.example"
10+
],
11+
"words": [
12+
"Agromberis",
13+
"Bakewell",
14+
"Mondacoup",
15+
"Pompamonterson",
16+
"Pompermonterson",
17+
"resends",
18+
"simpleorder",
19+
"steves",
20+
"stoneground"
21+
]
2122
}

next.config.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { NextConfig } from 'next'
1+
import type { NextConfig } from 'next'
22

33
const nextConfig: NextConfig = {
4-
output: 'standalone',
5-
images: {
6-
formats: ['image/webp'],
7-
},
4+
output: 'standalone',
5+
images: {
6+
formats: ['image/webp'],
7+
},
88
}
99

1010
export default nextConfig

package.json

+61-63
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,63 @@
11
{
2-
"scripts": {
3-
"dev": "next dev --turbo",
4-
"build": "next build",
5-
"generate": "drizzle-kit generate",
6-
"push": "drizzle-kit push",
7-
"studio": "npx drizzle-kit studio",
8-
"start": "next start",
9-
"start:local": "next build && tsx testServer.ts",
10-
"lint": "next lint",
11-
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,md,css,scss}\"",
12-
"test": "vitest",
13-
"test-verbose": "vitest --reporter=verbose",
14-
"predeploy": "pnpm format && pnpm lint && pnpm build",
15-
"deploy": "fly deploy"
16-
},
17-
"dependencies": {
18-
"@headlessui/react": "^2.2.0",
19-
"@heroicons/react": "^2.2.0",
20-
"@next/eslint-plugin-next": "^15.1.1",
21-
"bcrypt": "^5.1.1",
22-
"bcryptjs": "^2.4.3",
23-
"clsx": "^2.1.1",
24-
"date-fns": "^4.1.0",
25-
"date-fns-tz": "^3.2.0",
26-
"drizzle-orm": "^0.39.1",
27-
"form-data": "^4.0.1",
28-
"jsonwebtoken": "^9.0.2",
29-
"mailgun.js": "^11.1.0",
30-
"next": "15.1.1",
31-
"pg": "^8.13.1",
32-
"react": "19.0.0",
33-
"react-dom": "19.0.0",
34-
"slugify": "^1.6.6",
35-
"url-join": "^5.0.0",
36-
"uuid": "^11.0.5"
37-
},
38-
"devDependencies": {
39-
"@flydotio/dockerfile": "^0.7.0",
40-
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
41-
"@types/bcrypt": "^5.0.2",
42-
"@types/bcryptjs": "^2.4.6",
43-
"@types/express": "^4.17.21",
44-
"@types/jsonwebtoken": "^9.0.7",
45-
"@types/node": "^20.17.6",
46-
"@types/pg": "^8.11.10",
47-
"@types/react": "^18.3.12",
48-
"@types/react-dom": "^18.3.1",
49-
"@types/url-join": "^4.0.3",
50-
"autoprefixer": "^10.4.20",
51-
"chalk": "^4.1.2",
52-
"concurrently": "^9.1.2",
53-
"dotenv": "^16.4.7",
54-
"drizzle-kit": "^0.30.1",
55-
"eslint": "^9.18.0",
56-
"eslint-config-next": "15.1.1",
57-
"express": "^4.21.1",
58-
"postcss": "^8.4.48",
59-
"puppeteer": "^24.2.0",
60-
"tailwindcss": "^3.4.14",
61-
"tsx": "^4.19.2",
62-
"typescript": "^5.6.3",
63-
"vitest": "^3.0.5"
64-
}
2+
"scripts": {
3+
"dev": "next dev --turbo",
4+
"format": "biome format . --write",
5+
"check": "biome check . --write --unsafe",
6+
"build": "pnpm format && pnpm check && next build",
7+
"generate": "drizzle-kit generate",
8+
"push": "drizzle-kit push",
9+
"studio": "npx drizzle-kit studio",
10+
"start": "next start",
11+
"start:local": "next build && tsx testServer.ts",
12+
"lint": "next lint",
13+
"test": "vitest",
14+
"test-verbose": "vitest --reporter=verbose",
15+
"predeploy": "pnpm format && pnpm check && pnpm lint && pnpm build",
16+
"deploy": "fly deploy"
17+
},
18+
"dependencies": {
19+
"@headlessui/react": "^2.2.0",
20+
"@heroicons/react": "^2.2.0",
21+
"@next/eslint-plugin-next": "^15.1.1",
22+
"bcryptjs": "^2.4.3",
23+
"clsx": "^2.1.1",
24+
"date-fns": "^4.1.0",
25+
"date-fns-tz": "^3.2.0",
26+
"drizzle-orm": "^0.39.1",
27+
"form-data": "^4.0.1",
28+
"jsonwebtoken": "^9.0.2",
29+
"mailgun.js": "^11.1.0",
30+
"next": "15.1.1",
31+
"pg": "^8.13.1",
32+
"react": "19.0.0",
33+
"react-dom": "19.0.0",
34+
"slugify": "^1.6.6",
35+
"url-join": "^5.0.0",
36+
"uuid": "^11.0.5"
37+
},
38+
"devDependencies": {
39+
"@biomejs/biome": "1.9.4",
40+
"@types/bcryptjs": "^2.4.6",
41+
"@types/express": "^4.17.21",
42+
"@types/jsonwebtoken": "^9.0.7",
43+
"@types/node": "^20.17.6",
44+
"@types/pg": "^8.11.10",
45+
"@types/react": "^18.3.12",
46+
"@types/react-dom": "^18.3.1",
47+
"@types/url-join": "^4.0.3",
48+
"autoprefixer": "^10.4.20",
49+
"chalk": "^4.1.2",
50+
"concurrently": "^9.1.2",
51+
"eslint": "^9.20.1",
52+
"eslint-config-next": "^15.1.7",
53+
"dotenv": "^16.4.7",
54+
"drizzle-kit": "^0.30.1",
55+
"express": "^4.21.1",
56+
"postcss": "^8.4.48",
57+
"puppeteer": "^24.2.0",
58+
"tailwindcss": "^3.4.14",
59+
"tsx": "^4.19.2",
60+
"typescript": "^5.6.3",
61+
"vitest": "^3.0.5"
62+
}
6563
}

0 commit comments

Comments
 (0)