Skip to content

Commit 323bd65

Browse files
committed
chore: add prettier, format code
1 parent 539f968 commit 323bd65

7 files changed

Lines changed: 51 additions & 23 deletions

File tree

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"semi": false,
5+
"singleQuote": true,
6+
"printWidth": 120,
7+
"arrowParens": "always",
8+
"endOfLine": "auto",
9+
"useTabs": false,
10+
"quoteProps": "as-needed"
11+
}

eslint.config.mjs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
1-
import { dirname } from "path";
2-
import { fileURLToPath } from "url";
3-
import { FlatCompat } from "@eslint/eslintrc";
1+
import { dirname } from 'path'
2+
import { fileURLToPath } from 'url'
3+
import { FlatCompat } from '@eslint/eslintrc'
44

5-
const __filename = fileURLToPath(import.meta.url);
6-
const __dirname = dirname(__filename);
5+
const __filename = fileURLToPath(import.meta.url)
6+
const __dirname = dirname(__filename)
77

88
const compat = new FlatCompat({
99
baseDirectory: __dirname,
10-
});
10+
})
1111

12-
const eslintConfig = [
13-
...compat.extends("next/core-web-vitals", "next/typescript"),
14-
];
12+
const eslintConfig = [...compat.extends('next/core-web-vitals', 'next/typescript')]
1513

16-
export default eslintConfig;
14+
export default eslintConfig

next.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import type { NextConfig } from "next";
1+
import type { NextConfig } from 'next'
22

33
const nextConfig: NextConfig = {
44
/* config options here */
5-
};
5+
}
66

7-
export default nextConfig;
7+
export default nextConfig

package-lock.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"dev": "next dev --turbopack",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "next lint",
10+
"format": "prettier --write ."
1011
},
1112
"dependencies": {
1213
"@hookform/resolvers": "3.10.0",
@@ -25,6 +26,7 @@
2526
"eslint": "^9",
2627
"eslint-config-next": "15.1.5",
2728
"postcss": "^8",
29+
"prettier": "3.4.2",
2830
"tailwindcss": "3.4.1",
2931
"typescript": "^5"
3032
}

postcss.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ const config = {
33
plugins: {
44
tailwindcss: {},
55
},
6-
};
6+
}
77

8-
export default config;
8+
export default config

tailwind.config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import type { Config } from "tailwindcss";
1+
import type { Config } from 'tailwindcss'
22

33
export default {
44
content: [
5-
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
6-
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
7-
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
5+
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
6+
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
7+
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
88
],
99
theme: {
1010
extend: {
1111
colors: {
12-
background: "var(--background)",
13-
foreground: "var(--foreground)",
12+
background: 'var(--background)',
13+
foreground: 'var(--foreground)',
1414
},
1515
},
1616
},
1717
plugins: [],
18-
} satisfies Config;
18+
} satisfies Config

0 commit comments

Comments
 (0)