From 74be5e889a2ec83ec787f2e1eb082913a2e91f4c Mon Sep 17 00:00:00 2001 From: Avnyr Date: Sun, 4 Jan 2026 23:32:41 +0100 Subject: [PATCH] Apply consistent tab-based indentation across the frontend codebase --- frontend/biome.json | 70 ++++++++++++++++++------------------ frontend/next.config.ts | 4 +-- frontend/package.json | 50 +++++++++++++------------- frontend/postcss.config.mjs | 6 ++-- frontend/src/app/globals.css | 26 +++++++------- frontend/src/app/layout.tsx | 38 ++++++++++---------- frontend/src/app/page.tsx | 14 ++++---- frontend/tsconfig.json | 64 ++++++++++++++++----------------- 8 files changed, 136 insertions(+), 136 deletions(-) diff --git a/frontend/biome.json b/frontend/biome.json index cf77a5f..4432791 100644 --- a/frontend/biome.json +++ b/frontend/biome.json @@ -1,37 +1,37 @@ { - "$schema": "https://biomejs.dev/schemas/2.2.0/schema.json", - "vcs": { - "enabled": true, - "clientKind": "git", - "useIgnoreFile": true - }, - "files": { - "ignoreUnknown": true, - "includes": ["**", "!node_modules", "!.next", "!dist", "!build"] - }, - "formatter": { - "enabled": true, - "indentStyle": "tab", - "indentWidth": 2 - }, - "linter": { - "enabled": true, - "rules": { - "recommended": true, - "suspicious": { - "noUnknownAtRules": "off" - } - }, - "domains": { - "next": "recommended", - "react": "recommended" - } - }, - "assist": { - "actions": { - "source": { - "organizeImports": "on" - } - } - } + "$schema": "https://biomejs.dev/schemas/2.3.11/schema.json", + "vcs": { + "enabled": true, + "clientKind": "git", + "useIgnoreFile": true + }, + "files": { + "ignoreUnknown": true, + "includes": ["**", "!node_modules", "!.next", "!dist", "!build"] + }, + "formatter": { + "enabled": true, + "indentStyle": "tab", + "indentWidth": 1 + }, + "linter": { + "enabled": true, + "rules": { + "recommended": true, + "suspicious": { + "noUnknownAtRules": "off" + } + }, + "domains": { + "next": "recommended", + "react": "recommended" + } + }, + "assist": { + "actions": { + "source": { + "organizeImports": "on" + } + } + } } diff --git a/frontend/next.config.ts b/frontend/next.config.ts index 66e1566..66b0998 100644 --- a/frontend/next.config.ts +++ b/frontend/next.config.ts @@ -1,8 +1,8 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { - /* config options here */ - reactCompiler: true, + /* config options here */ + reactCompiler: true, }; export default nextConfig; diff --git a/frontend/package.json b/frontend/package.json index 5b6b1c8..cc0b88e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,27 +1,27 @@ { - "name": "@memegoat/frontend", - "version": "0.0.1", - "private": true, - "scripts": { - "dev": "next dev", - "build": "next build", - "start": "next start", - "lint": "biome check", - "format": "biome format --write" - }, - "dependencies": { - "next": "16.1.1", - "react": "19.2.3", - "react-dom": "19.2.3" - }, - "devDependencies": { - "@biomejs/biome": "2.2.0", - "@tailwindcss/postcss": "^4", - "@types/node": "^20", - "@types/react": "^19", - "@types/react-dom": "^19", - "babel-plugin-react-compiler": "1.0.0", - "tailwindcss": "^4", - "typescript": "^5" - } + "name": "@memegoat/frontend", + "version": "0.0.1", + "private": true, + "scripts": { + "dev": "next dev", + "build": "next build", + "start": "next start", + "lint": "biome check", + "format": "biome format --write" + }, + "dependencies": { + "next": "16.1.1", + "react": "19.2.3", + "react-dom": "19.2.3" + }, + "devDependencies": { + "@biomejs/biome": "2.2.0", + "@tailwindcss/postcss": "^4", + "@types/node": "^20", + "@types/react": "^19", + "@types/react-dom": "^19", + "babel-plugin-react-compiler": "1.0.0", + "tailwindcss": "^4", + "typescript": "^5" + } } diff --git a/frontend/postcss.config.mjs b/frontend/postcss.config.mjs index 61e3684..c42f31c 100644 --- a/frontend/postcss.config.mjs +++ b/frontend/postcss.config.mjs @@ -1,7 +1,7 @@ const config = { - plugins: { - "@tailwindcss/postcss": {}, - }, + plugins: { + "@tailwindcss/postcss": {}, + }, }; export default config; diff --git a/frontend/src/app/globals.css b/frontend/src/app/globals.css index a2dc41e..0673ff0 100644 --- a/frontend/src/app/globals.css +++ b/frontend/src/app/globals.css @@ -1,26 +1,26 @@ @import "tailwindcss"; :root { - --background: #ffffff; - --foreground: #171717; + --background: #ffffff; + --foreground: #171717; } @theme inline { - --color-background: var(--background); - --color-foreground: var(--foreground); - --font-sans: var(--font-geist-sans); - --font-mono: var(--font-geist-mono); + --color-background: var(--background); + --color-foreground: var(--foreground); + --font-sans: var(--font-geist-sans); + --font-mono: var(--font-geist-mono); } @media (prefers-color-scheme: dark) { - :root { - --background: #0a0a0a; - --foreground: #ededed; - } + :root { + --background: #0a0a0a; + --foreground: #ededed; + } } body { - background: var(--background); - color: var(--foreground); - font-family: Arial, Helvetica, sans-serif; + background: var(--background); + color: var(--foreground); + font-family: Arial, Helvetica, sans-serif; } diff --git a/frontend/src/app/layout.tsx b/frontend/src/app/layout.tsx index 359a36f..aa0a81b 100644 --- a/frontend/src/app/layout.tsx +++ b/frontend/src/app/layout.tsx @@ -1,35 +1,35 @@ import type { Metadata } from "next"; -import {Geist, Geist_Mono, Ubuntu_Mono, Ubuntu_Sans} from "next/font/google"; +import { Geist, Geist_Mono, Ubuntu_Mono, Ubuntu_Sans } from "next/font/google"; import "./globals.css"; const ubuntuSans = Ubuntu_Sans({ - variable: "--font-ubuntu-sans", - subsets: ["latin"], + variable: "--font-ubuntu-sans", + subsets: ["latin"], }); const ubuntuMono = Ubuntu_Mono({ - variable: "--font-geist-mono", - weight: ['400', '700'], - subsets: ["latin"], + variable: "--font-geist-mono", + weight: ["400", "700"], + subsets: ["latin"], }); export const metadata: Metadata = { - title: "MemeGoat", - icons: "/memegoat-color.svg" + title: "MemeGoat", + icons: "/memegoat-color.svg", }; export default function RootLayout({ - children, + children, }: Readonly<{ - children: React.ReactNode; + children: React.ReactNode; }>) { - return ( - - - {children} - - - ); + return ( + + + {children} + + + ); } diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index 9b062f5..ceaaf9f 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -1,9 +1,9 @@ export default function Home() { - return ( -
-
-

Hello world !

-
-
- ); + return ( +
+
+

Hello world !

+
+
+ ); } diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index cf9c65d..76e73ca 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -1,34 +1,34 @@ { - "compilerOptions": { - "target": "ES2017", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "bundler", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "react-jsx", - "incremental": true, - "plugins": [ - { - "name": "next" - } - ], - "paths": { - "@/*": ["./src/*"] - } - }, - "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx", - ".next/types/**/*.ts", - ".next/dev/types/**/*.ts", - "**/*.mts" - ], - "exclude": ["node_modules"] + "compilerOptions": { + "target": "ES2017", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "react-jsx", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": ["./src/*"] + } + }, + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts", + ".next/dev/types/**/*.ts", + "**/*.mts" + ], + "exclude": ["node_modules"] }