Formatting + add format script

main
Elias Almqvist 8 months ago
parent 488979f9a6
commit 3c56a13a33
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 3
      package.json
  2. 4
      src/app/page.tsx
  3. 6
      src/lib/utils.ts
  4. 20
      tailwind.config.ts
  5. 10
      tsconfig.json

@ -6,7 +6,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
"lint": "next lint",
"format": "prettier --write \"**/*.{js,cjs,mjs,ts,tsx,md,json,mdx}\" --ignore-path .gitignore"
},
"dependencies": {
"class-variance-authority": "^0.7.0",

@ -1,7 +1,5 @@
import Image from "next/image";
export default function Home() {
return (
<></>
);
return <></>;
}

@ -1,6 +1,6 @@
import { type ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
return twMerge(clsx(inputs));
}

@ -1,13 +1,14 @@
import type { Config } from "tailwindcss"
import type { Config } from "tailwindcss";
import { fontFamily } from "tailwindcss/defaultTheme";
const config = {
darkMode: ["class"],
content: [
'./pages/**/*.{ts,tsx}',
'./components/**/*.{ts,tsx}',
'./app/**/*.{ts,tsx}',
'./src/**/*.{ts,tsx}',
],
"./pages/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./app/**/*.{ts,tsx}",
"./src/**/*.{ts,tsx}",
],
prefix: "",
theme: {
container: {
@ -18,6 +19,9 @@ const config = {
},
},
extend: {
fontFamily: {
sans: ["var(--font-sans)", ...fontFamily.sans],
},
colors: {
border: "hsl(var(--border))",
input: "hsl(var(--input))",
@ -75,6 +79,6 @@ const config = {
},
},
plugins: [require("tailwindcss-animate")],
} satisfies Config
} satisfies Config;
export default config
export default config;

@ -14,13 +14,13 @@
"incremental": true,
"plugins": [
{
"name": "next"
}
"name": "next",
},
],
"paths": {
"@/*": ["./src/*"]
}
"@/*": ["./src/*"],
},
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
"exclude": ["node_modules"],
}

Loading…
Cancel
Save