diff --git a/eslint.config.js b/eslint.config.js
index 18540a3..b4041d7 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -1,5 +1,5 @@
-import { FlatCompat } from "@eslint/eslintrc";
-import tseslint from "typescript-eslint";
+import { FlatCompat } from '@eslint/eslintrc';
+import tseslint from 'typescript-eslint';
const compat = new FlatCompat({
baseDirectory: import.meta.dirname,
@@ -7,30 +7,30 @@ const compat = new FlatCompat({
export default tseslint.config(
{
- ignores: [".next"],
+ ignores: ['.next'],
},
- ...compat.extends("next/core-web-vitals"),
+ ...compat.extends('next/core-web-vitals'),
{
- files: ["**/*.ts", "**/*.tsx"],
+ files: ['**/*.ts', '**/*.tsx'],
extends: [
...tseslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.stylisticTypeChecked,
],
rules: {
- "@typescript-eslint/array-type": "off",
- "@typescript-eslint/consistent-type-definitions": "off",
- "@typescript-eslint/consistent-type-imports": [
- "warn",
- { prefer: "type-imports", fixStyle: "inline-type-imports" },
+ '@typescript-eslint/array-type': 'off',
+ '@typescript-eslint/consistent-type-definitions': 'off',
+ '@typescript-eslint/consistent-type-imports': [
+ 'warn',
+ { prefer: 'type-imports', fixStyle: 'inline-type-imports' },
],
- "@typescript-eslint/no-unused-vars": [
- "warn",
- { argsIgnorePattern: "^_" },
+ '@typescript-eslint/no-unused-vars': [
+ 'warn',
+ { argsIgnorePattern: '^_' },
],
- "@typescript-eslint/require-await": "off",
- "@typescript-eslint/no-misused-promises": [
- "error",
+ '@typescript-eslint/require-await': 'off',
+ '@typescript-eslint/no-misused-promises': [
+ 'error',
{ checksVoidReturn: { attributes: false } },
],
},
diff --git a/next.config.js b/next.config.js
index 121c4f4..829fd3c 100644
--- a/next.config.js
+++ b/next.config.js
@@ -2,7 +2,7 @@
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
* for Docker builds.
*/
-import "./src/env.js";
+import './src/env.js';
/** @type {import("next").NextConfig} */
const config = {};
diff --git a/postcss.config.js b/postcss.config.js
index c2ddf74..a34a3d5 100644
--- a/postcss.config.js
+++ b/postcss.config.js
@@ -1,5 +1,5 @@
export default {
plugins: {
- "@tailwindcss/postcss": {},
+ '@tailwindcss/postcss': {},
},
};
diff --git a/prettier.config.js b/prettier.config.js
index da332bd..09f0482 100644
--- a/prettier.config.js
+++ b/prettier.config.js
@@ -1,4 +1,4 @@
/** @type {import('prettier').Config & import('prettier-plugin-tailwindcss').PluginOptions} */
export default {
- plugins: ["prettier-plugin-tailwindcss"],
+ plugins: ['prettier-plugin-tailwindcss'],
};
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 5843c4b..a992615 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,18 +1,16 @@
-import { type Metadata } from "next";
-import "@/styles/globals.css";
-import { Geist } from "next/font/google";
-import { cn } from "@/lib/utils";
-import { ThemeProvider } from '@/components/context/theme'
-
+import { type Metadata } from 'next';
+import '@/styles/globals.css';
+import { Geist } from 'next/font/google';
+import { cn } from '@/lib/utils';
+import { ThemeProvider } from '@/components/context/theme';
export const metadata: Metadata = {
- title: "T3 Template with Supabase",
- description:
- "Generated by create-t3-app",
+ title: 'T3 Template with Supabase',
+ description: 'Generated by create-t3-app',
icons: [
{
- rel: "icon",
- url: "/images/favicon.ico",
+ rel: 'icon',
+ url: '/images/favicon.ico',
},
{
rel: 'icon',
@@ -22,29 +20,21 @@ export const metadata: Metadata = {
},
{
rel: 'apple-touch-icon',
- url: '/images/appicon.png'
+ url: '/images/appicon.png',
},
],
};
const geist = Geist({
- subsets: ["latin"],
- variable: "--font-geist-sans",
+ subsets: ['latin'],
+ variable: '--font-geist-sans',
});
-const RootLayout = ({
- children,
-}: Readonly<{ children: React.ReactNode }>) => {
+const RootLayout = ({ children }: Readonly<{ children: React.ReactNode }>) => {
return (
-
+
-
+
);
-}
+};
export default RootLayout;
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 773fef1..f2b8d37 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -1,31 +1,31 @@
-import Link from "next/link";
+import Link from 'next/link';
export default function HomePage() {
return (
-
-
-
- Create T3 App
+
+
+
+ Create T3 App
-
+
-
First Steps →
-
+
First Steps →
+
Just the basics - Everything you need to know to set up your
database and authentication.
-
Documentation →
-
+
Documentation →
+
Learn more about Create T3 App, the libraries it uses, and how to
deploy it.
diff --git a/src/components/context/theme.tsx b/src/components/context/theme.tsx
index d86f907..eecc9dd 100644
--- a/src/components/context/theme.tsx
+++ b/src/components/context/theme.tsx
@@ -43,10 +43,12 @@ export const ThemeToggle = () => {
return (