Skip to content

Commit

Permalink
Merge pull request #187 from cosmos/prettify
Browse files Browse the repository at this point in the history
Add format command and format codebase
  • Loading branch information
webmaster128 authored Dec 19, 2023
2 parents b8ee105 + a8d0253 commit 2e470df
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
3 changes: 2 additions & 1 deletion components/layout/StackableContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
8 changes: 4 additions & 4 deletions lib/utils.ts
Original file line number Diff line number Diff line change
@@ -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));
}
4 changes: 2 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
}
};

module.exports = nextConfig
module.exports = nextConfig;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ module.exports = {
tailwindcss: {},
autoprefixer: {},
},
}
};
12 changes: 6 additions & 6 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -73,4 +73,4 @@ module.exports = {
},
},
plugins: [require("tailwindcss-animate")],
}
};

1 comment on commit 2e470df

@vercel
Copy link

@vercel vercel bot commented on 2e470df Dec 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.