From a8d02531de73da5def1502e813464cddff47b2fe Mon Sep 17 00:00:00 2001
From: Simon Warta <simon@warta.it>
Date: Tue, 19 Dec 2023 14:54:26 +0100
Subject: [PATCH] Add format command and format codebase

---
 components/layout/StackableContainer.tsx |  3 ++-
 lib/utils.ts                             |  8 ++++----
 next.config.js                           |  4 ++--
 package.json                             |  1 +
 postcss.config.js                        |  2 +-
 tailwind.config.js                       | 12 ++++++------
 6 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/components/layout/StackableContainer.tsx b/components/layout/StackableContainer.tsx
index d4b6667b..6d65cd06 100644
--- a/components/layout/StackableContainer.tsx
+++ b/components/layout/StackableContainer.tsx
@@ -33,7 +33,8 @@ const StackableContainer = (props: Props) => (
       .base {
         max-width: 750px;
         background: #62145f;
-        box-shadow: 0px 28px 80px rgba(0, 0, 0, 0.07),
+        box-shadow:
+          0px 28px 80px rgba(0, 0, 0, 0.07),
           0px 12.7134px 39.2617px rgba(0, 0, 0, 0.0519173),
           0px 7.26461px 23.349px rgba(0, 0, 0, 0.0438747),
           0px 4.44678px 14.5028px rgba(0, 0, 0, 0.0377964),
diff --git a/lib/utils.ts b/lib/utils.ts
index ec79801f..365058ce 100644
--- a/lib/utils.ts
+++ b/lib/utils.ts
@@ -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));
 }
diff --git a/next.config.js b/next.config.js
index a843cbee..91ef62f0 100644
--- a/next.config.js
+++ b/next.config.js
@@ -1,6 +1,6 @@
 /** @type {import('next').NextConfig} */
 const nextConfig = {
   reactStrictMode: true,
-}
+};
 
-module.exports = nextConfig
+module.exports = nextConfig;
diff --git a/package.json b/package.json
index bb8e1fa7..a25cce56 100644
--- a/package.json
+++ b/package.json
@@ -7,6 +7,7 @@
     "test:ci": "jest",
     "build": "next build",
     "start": "next start",
+    "format": "prettier --write --log-level warn \"./**/*.{js,jsx,ts,tsx}\"",
     "lint": "eslint --max-warnings 0 \"./**/*.{js,jsx,ts,tsx}\"",
     "lint:fix": "eslint --max-warnings 0 \"./**/*.{js,jsx,ts,tsx}\" --fix"
   },
diff --git a/postcss.config.js b/postcss.config.js
index 33ad091d..12a703d9 100644
--- a/postcss.config.js
+++ b/postcss.config.js
@@ -3,4 +3,4 @@ module.exports = {
     tailwindcss: {},
     autoprefixer: {},
   },
-}
+};
diff --git a/tailwind.config.js b/tailwind.config.js
index 0377ea1d..c05b2ff6 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -2,11 +2,11 @@
 module.exports = {
   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}",
+  ],
   theme: {
     container: {
       center: true,
@@ -73,4 +73,4 @@ module.exports = {
     },
   },
   plugins: [require("tailwindcss-animate")],
-}
\ No newline at end of file
+};