Skip to content

Commit 6235948

Browse files
committed
fix: ci
1 parent 83b040b commit 6235948

File tree

11 files changed

+66
-63
lines changed

11 files changed

+66
-63
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
pnpm run format:ci
3333
3434
- name: Lint
35-
run: pnpm run lint:ci
35+
run: pnpm run lint:ci

.prettierrc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"singleQuote": true,
3-
"tabWidth": 2,
4-
"arrowParens": "always",
5-
"bracketSpacing": true,
6-
"proseWrap": "preserve",
7-
"trailingComma": "all",
8-
"jsxSingleQuote": false,
9-
"printWidth": 100,
10-
"endOfLine": "auto"
11-
}
2+
"singleQuote": true,
3+
"tabWidth": 2,
4+
"arrowParens": "always",
5+
"bracketSpacing": true,
6+
"proseWrap": "preserve",
7+
"trailingComma": "all",
8+
"jsxSingleQuote": false,
9+
"printWidth": 100,
10+
"endOfLine": "auto"
11+
}

.vscode/settings.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
2-
"editor.codeActionsOnSave": {
3-
"source.fixAll": "explicit"
4-
}
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll": "explicit"
54
}
6-
5+
}

commitlint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export default { extends: ["@commitlint/config-conventional"] };
1+
export default { extends: ['@commitlint/config-conventional'] };

components.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"$schema": "https://ui.shadcn.com/schema.json",
3-
"style": "default",
4-
"rsc": true,
5-
"tsx": true,
6-
"tailwind": {
7-
"config": "tailwind.config.ts",
8-
"css": "src/app/globals.css",
9-
"baseColor": "slate",
10-
"cssVariables": true,
11-
"prefix": ""
12-
},
13-
"aliases": {
14-
"components": "@/components",
15-
"utils": "@/lib/utils",
16-
"ui": "@/components/ui",
17-
"lib": "@/lib",
18-
"hooks": "@/hooks"
19-
}
20-
}
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "default",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "src/app/globals.css",
9+
"baseColor": "slate",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
}
20+
}

eslint.config.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const reactHooks = require('eslint-plugin-react-hooks');
77
const { resolve } = require('path');
88
module.exports = [
99
{
10-
ignores: ['node_modules/**', '.next/**', './eslint.config.cjs','.gitignore'],
10+
ignores: ['node_modules/**', '.next/**', './eslint.config.cjs', '.gitignore'],
1111
},
1212
{
1313
files: ['**/*.{js,jsx,ts,tsx}'],
@@ -65,4 +65,4 @@ module.exports = [
6565
},
6666
},
6767
},
68-
];
68+
];

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
},
4545
"lint-staged": {
4646
"*.{js,ts,jsx,tsx}": [
47-
"pnpm lint"
47+
"pnpm lint",
48+
"pnpm format"
4849
]
4950
},
5051
"engines": {

src/app/layout.tsx

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
import type { Metadata } from "next";
2-
import localFont from "next/font/local";
3-
import "./globals.css";
1+
import type { Metadata } from 'next';
2+
import localFont from 'next/font/local';
3+
import './globals.css';
44

55
const geistSans = localFont({
6-
src: "./fonts/GeistVF.woff",
7-
variable: "--font-geist-sans",
8-
weight: "100 900",
6+
src: './fonts/GeistVF.woff',
7+
variable: '--font-geist-sans',
8+
weight: '100 900',
99
});
1010
const geistMono = localFont({
11-
src: "./fonts/GeistMonoVF.woff",
12-
variable: "--font-geist-mono",
13-
weight: "100 900",
11+
src: './fonts/GeistMonoVF.woff',
12+
variable: '--font-geist-mono',
13+
weight: '100 900',
1414
});
1515

1616
export const metadata: Metadata = {
17-
title: "Create Next App",
18-
description: "Generated by create next app",
17+
title: 'Create Next App',
18+
description: 'Generated by create next app',
1919
};
2020

2121
export default function RootLayout({
@@ -25,11 +25,7 @@ export default function RootLayout({
2525
}>) {
2626
return (
2727
<html lang="en">
28-
<body
29-
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
30-
>
31-
{children}
32-
</body>
28+
<body className={`${geistSans.variable} ${geistMono.variable} antialiased`}>{children}</body>
3329
</html>
3430
);
3531
}

src/app/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Image from "next/image";
1+
import Image from 'next/image';
22

33
export default function Home() {
44
return (
@@ -14,7 +14,7 @@ export default function Home() {
1414
/>
1515
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
1616
<li className="mb-2">
17-
Get started by editing{" "}
17+
Get started by editing{' '}
1818
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold">
1919
src/app/page.tsx
2020
</code>

tailwind.config.ts

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

33
const config: Config = {
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
},

0 commit comments

Comments
 (0)