Skip to content

Commit ebce226

Browse files
refactor: 린트 에러 반영
1 parent 2f33fad commit ebce226

8 files changed

Lines changed: 115 additions & 120 deletions

File tree

app/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"use client";
22

33
import { useState } from "react";
4-
import { SectionLabel } from "@/components/ui/SectionLabel";
5-
import Header from "@/components/layout/Header";
6-
import { type Theme, ThemeSelect } from "@/components/features/theme/ThemeTabs";
74
import { ThemeContent } from "@/components/features/theme/ThemeContent";
5+
import { type Theme, ThemeSelect } from "@/components/features/theme/ThemeTabs";
6+
import Header from "@/components/layout/Header";
7+
import { SectionLabel } from "@/components/ui/SectionLabel";
88

99
export default function Home() {
1010
const [theme, setTheme] = useState<Theme>("flower");

components/features/theme/coming-soon/ComingSoonContent.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
"use client";
22

3-
import { getThemeColors, type Theme } from "@/components/features/theme/ThemeTabs";
3+
import {
4+
getThemeColors,
5+
type Theme,
6+
} from "@/components/features/theme/ThemeTabs";
47

58
interface ComingSoonContentProps {
69
theme: Theme;

lib/themes/plant/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Canvas, SKRSContext2D } from "@napi-rs/canvas";
2-
import type { CommitLevel } from "@/lib/utils/commit-level";
32
import { adjustBrightness } from "@/lib/utils/color";
3+
import type { CommitLevel } from "@/lib/utils/commit-level";
44
import type { FlowerType, PlantElement, WindEffect } from "../types";
55
import { CELL_SIZE, OFFSET_X, OFFSET_Y, PLANT_COLORS } from "./constants";
66

next.config.ts

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

33
const nextConfig: NextConfig = {
4-
serverExternalPackages: ["@napi-rs/canvas"],
5-
turbopack: {},
4+
serverExternalPackages: ["@napi-rs/canvas"],
5+
turbopack: {},
66
};
77

88
export default nextConfig;

package.json

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
{
2-
"name": "git-style",
3-
"version": "0.1.0",
4-
"description": "Transform your GitHub contributions into beautiful SVG badges with various themes",
5-
"keywords": [
6-
"github",
7-
"contributions",
8-
"svg",
9-
"badge",
10-
"readme",
11-
"profile",
12-
"themes"
13-
],
14-
"homepage": "https://git-style.vercel.app",
15-
"repository": {
16-
"type": "git",
17-
"url": "https://github.com/anonymousRecords/git-style.git"
18-
},
19-
"bugs": {
20-
"url": "https://github.com/anonymousRecords/git-style/issues"
21-
},
22-
"author": "anonymousRecords",
23-
"license": "MIT",
24-
"packageManager": "pnpm@10.17.1",
25-
"scripts": {
26-
"dev": "next dev --turbopack",
27-
"build": "next build",
28-
"start": "next start",
29-
"lint": "biome check .",
30-
"lint:fix": "biome check --write .",
31-
"format": "biome format --write ."
32-
},
33-
"dependencies": {
34-
"@heroicons/react": "^2.2.0",
35-
"@napi-rs/canvas": "^0.1.88",
36-
"next": "16.1.5",
37-
"postcss": "^8.5.3",
38-
"react": "^19.0.0",
39-
"react-dom": "^19.0.0",
40-
"upng-js": "^2.1.0"
41-
},
42-
"devDependencies": {
43-
"@biomejs/biome": "^2.3.13",
44-
"@tailwindcss/postcss": "^4.1.7",
45-
"@types/node": "^20",
46-
"@types/react": "^19",
47-
"@types/react-dom": "^19",
48-
"tailwindcss": "^4.1.7",
49-
"typescript": "^5"
50-
}
2+
"name": "git-style",
3+
"version": "0.1.0",
4+
"description": "Transform your GitHub contributions into beautiful SVG badges with various themes",
5+
"keywords": [
6+
"github",
7+
"contributions",
8+
"svg",
9+
"badge",
10+
"readme",
11+
"profile",
12+
"themes"
13+
],
14+
"homepage": "https://git-style.vercel.app",
15+
"repository": {
16+
"type": "git",
17+
"url": "https://github.com/anonymousRecords/git-style.git"
18+
},
19+
"bugs": {
20+
"url": "https://github.com/anonymousRecords/git-style/issues"
21+
},
22+
"author": "anonymousRecords",
23+
"license": "MIT",
24+
"packageManager": "pnpm@10.17.1",
25+
"scripts": {
26+
"dev": "next dev --turbopack",
27+
"build": "next build",
28+
"start": "next start",
29+
"lint": "biome check .",
30+
"lint:fix": "biome check --write .",
31+
"format": "biome format --write ."
32+
},
33+
"dependencies": {
34+
"@heroicons/react": "^2.2.0",
35+
"@napi-rs/canvas": "^0.1.88",
36+
"next": "16.1.5",
37+
"postcss": "^8.5.3",
38+
"react": "^19.0.0",
39+
"react-dom": "^19.0.0",
40+
"upng-js": "^2.1.0"
41+
},
42+
"devDependencies": {
43+
"@biomejs/biome": "^2.3.13",
44+
"@tailwindcss/postcss": "^4.1.7",
45+
"@types/node": "^20",
46+
"@types/react": "^19",
47+
"@types/react-dom": "^19",
48+
"tailwindcss": "^4.1.7",
49+
"typescript": "^5"
50+
}
5151
}

postcss.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const config = {
2-
plugins: ["@tailwindcss/postcss"],
2+
plugins: ["@tailwindcss/postcss"],
33
};
44

55
export default config;

tsconfig.json

Lines changed: 31 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,33 @@
11
{
2-
"compilerOptions": {
3-
"target": "ES2017",
4-
"lib": [
5-
"dom",
6-
"dom.iterable",
7-
"esnext"
8-
],
9-
"allowJs": true,
10-
"skipLibCheck": true,
11-
"strict": true,
12-
"noEmit": true,
13-
"esModuleInterop": true,
14-
"module": "esnext",
15-
"moduleResolution": "bundler",
16-
"resolveJsonModule": true,
17-
"isolatedModules": true,
18-
"jsx": "react-jsx",
19-
"incremental": true,
20-
"plugins": [
21-
{
22-
"name": "next"
23-
}
24-
],
25-
"paths": {
26-
"@/*": [
27-
"./*"
28-
]
29-
}
30-
},
31-
"include": [
32-
"next-env.d.ts",
33-
"**/*.ts",
34-
"**/*.tsx",
35-
".next/types/**/*.ts",
36-
".next/dev/types/**/*.ts"
37-
],
38-
"exclude": [
39-
"node_modules"
40-
]
2+
"compilerOptions": {
3+
"target": "ES2017",
4+
"lib": ["dom", "dom.iterable", "esnext"],
5+
"allowJs": true,
6+
"skipLibCheck": true,
7+
"strict": true,
8+
"noEmit": true,
9+
"esModuleInterop": true,
10+
"module": "esnext",
11+
"moduleResolution": "bundler",
12+
"resolveJsonModule": true,
13+
"isolatedModules": true,
14+
"jsx": "react-jsx",
15+
"incremental": true,
16+
"plugins": [
17+
{
18+
"name": "next"
19+
}
20+
],
21+
"paths": {
22+
"@/*": ["./*"]
23+
}
24+
},
25+
"include": [
26+
"next-env.d.ts",
27+
"**/*.ts",
28+
"**/*.tsx",
29+
".next/types/**/*.ts",
30+
".next/dev/types/**/*.ts"
31+
],
32+
"exclude": ["node_modules"]
4133
}

types/upng-js.d.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
declare module "upng-js" {
2-
interface DecodedImage {
3-
width: number;
4-
height: number;
5-
depth: number;
6-
ctype: number;
7-
frames: Array<{
8-
rect: { x: number; y: number; width: number; height: number };
9-
delay: number;
10-
dispose: number;
11-
blend: number;
12-
}>;
13-
tabs: Record<string, unknown>;
14-
data: ArrayBuffer;
15-
}
2+
interface DecodedImage {
3+
width: number;
4+
height: number;
5+
depth: number;
6+
ctype: number;
7+
frames: Array<{
8+
rect: { x: number; y: number; width: number; height: number };
9+
delay: number;
10+
dispose: number;
11+
blend: number;
12+
}>;
13+
tabs: Record<string, unknown>;
14+
data: ArrayBuffer;
15+
}
1616

17-
export function decode(buffer: ArrayBuffer | Buffer): DecodedImage;
18-
export function toRGBA8(image: DecodedImage): ArrayBuffer[];
19-
export function encode(
20-
imgs: ArrayBuffer[],
21-
width: number,
22-
height: number,
23-
colorDepth: number,
24-
delays?: number[],
25-
filterType?: number
26-
): ArrayBuffer;
17+
export function decode(buffer: ArrayBuffer | Buffer): DecodedImage;
18+
export function toRGBA8(image: DecodedImage): ArrayBuffer[];
19+
export function encode(
20+
imgs: ArrayBuffer[],
21+
width: number,
22+
height: number,
23+
colorDepth: number,
24+
delays?: number[],
25+
filterType?: number,
26+
): ArrayBuffer;
2727
}

0 commit comments

Comments
 (0)