Skip to content

Commit a062a4f

Browse files
chore(deps): add @commitlint/config-conventional & switch yarn with bun
1 parent 8540522 commit a062a4f

File tree

7 files changed

+107
-5495
lines changed

7 files changed

+107
-5495
lines changed

.husky/pre-commit

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,15 @@
22

33
. "$(dirname "$0")/_/husky.sh"
44

5+
6+
# Exit if any command fails
7+
set -e
8+
9+
# Run ESLint
10+
echo "Running ESLint..."
511
bunx lint-staged
12+
13+
14+
# Run Commitlint
15+
echo "Running Commitlint..."
16+
bunx commitlint --edit "$1"undefined

.lintstagedrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const path = require("path");
2+
3+
const buildEslintCommand = (filenames) =>
4+
`next lint --fix --file ${filenames
5+
.map((f) => path.relative(process.cwd(), f))
6+
.join(" --file ")}`;
7+
8+
module.exports = {
9+
"*.{js,jsx,ts,tsx}": [buildEslintCommand],
10+
};

.lintstagedrc.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

bun.lockb

336 KB
Binary file not shown.

commitlint.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// commitlint.config.js
2+
module.exports = { extends: ["@commitlint/config-conventional"] };

package.json

Lines changed: 84 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,86 @@
11
{
2-
"name": "discord-clone",
3-
"version": "0.1.0",
4-
"private": true,
5-
"scripts": {
6-
"dev": "next dev",
7-
"build": "next build",
8-
"start": "next start",
9-
"lint": "next lint"
10-
},
11-
"husky": {
12-
"hooks": {
13-
"pre-commit": "lint-staged"
14-
}
15-
},
16-
"dependencies": {
17-
"@clerk/nextjs": "^4.23.3",
18-
"@emoji-mart/data": "^1.1.2",
19-
"@emoji-mart/react": "^1.1.1",
20-
"@hookform/resolvers": "^3.3.1",
21-
"@livekit/components-react": "^1.2.2",
22-
"@livekit/components-styles": "^1.0.6",
23-
"@prisma/client": "5.2.0",
24-
"@radix-ui/react-avatar": "^1.0.3",
25-
"@radix-ui/react-dialog": "^1.0.4",
26-
"@radix-ui/react-dropdown-menu": "^2.0.5",
27-
"@radix-ui/react-label": "^2.0.2",
28-
"@radix-ui/react-popover": "^1.0.6",
29-
"@radix-ui/react-scroll-area": "^1.0.4",
30-
"@radix-ui/react-select": "^1.2.2",
31-
"@radix-ui/react-separator": "^1.0.3",
32-
"@radix-ui/react-slot": "^1.0.2",
33-
"@radix-ui/react-tooltip": "^1.0.6",
34-
"@tanstack/react-query": "^4.35.3",
35-
"@types/node": "20.5.9",
36-
"@types/react": "18.2.21",
37-
"@types/react-dom": "18.2.7",
38-
"@uploadthing/react": "^5.5.0",
39-
"autoprefixer": "10.4.15",
40-
"axios": "^1.5.0",
41-
"class-variance-authority": "^0.7.0",
42-
"clsx": "^2.0.0",
43-
"cmdk": "^0.2.0",
44-
"date-fns": "^2.30.0",
45-
"dropdown-menu": "^0.1.1",
46-
"emoji-mart": "^5.5.2",
47-
"eslint": "8.48.0",
48-
"eslint-config-next": "13.4.12",
49-
"livekit-client": "^1.13.4",
50-
"livekit-server-sdk": "^1.2.6",
51-
"lucide-react": "^0.274.0",
52-
"ms": "^2.1.3",
53-
"next": "13.4.12",
54-
"next-themes": "^0.2.1",
55-
"postcss": "8.4.29",
56-
"query-string": "^8.1.0",
57-
"react": "18.2.0",
58-
"react-dom": "18.2.0",
59-
"react-dropzone": "^14.2.3",
60-
"react-hook-form": "^7.46.1",
61-
"shadcn-ui": "^0.3.0",
62-
"socket.io": "^4.7.2",
63-
"socket.io-client": "^4.7.2",
64-
"tailwind-merge": "^1.14.0",
65-
"tailwindcss": "3.3.3",
66-
"tailwindcss-animate": "^1.0.7",
67-
"typescript": "5.2.2",
68-
"uploadthing": "^5.5.3",
69-
"uuid": "^9.0.0",
70-
"zod": "^3.22.2",
71-
"zustand": "^4.4.1"
72-
},
73-
"devDependencies": {
74-
"@next/eslint-plugin-next": "^13.4.19",
75-
"@types/ms": "^0.7.31",
76-
"@types/uuid": "^9.0.3",
77-
"eslint-config-prettier": "^9.0.0",
78-
"eslint-plugin-react": "^7.33.2",
79-
"eslint-plugin-react-hooks": "^4.6.0",
80-
"husky": "^8.0.3",
81-
"lint-staged": "^14.0.1",
82-
"prisma": "^5.2.0"
83-
}
2+
"name": "discord-clone",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "next dev",
7+
"build": "next build",
8+
"start": "next start",
9+
"lint": "next lint"
10+
},
11+
"husky": {
12+
"hooks": {
13+
"pre-commit": "lint-staged"
14+
}
15+
},
16+
"dependencies": {
17+
"@clerk/nextjs": "^4.23.3",
18+
"@commitlint/cli": "^17.7.1",
19+
"@commitlint/config-conventional": "^17.7.0",
20+
"@emoji-mart/data": "^1.1.2",
21+
"@emoji-mart/react": "^1.1.1",
22+
"@hookform/resolvers": "^3.3.1",
23+
"@livekit/components-react": "^1.2.2",
24+
"@livekit/components-styles": "^1.0.6",
25+
"@prisma/client": "5.2.0",
26+
"@radix-ui/react-avatar": "^1.0.3",
27+
"@radix-ui/react-dialog": "^1.0.4",
28+
"@radix-ui/react-dropdown-menu": "^2.0.5",
29+
"@radix-ui/react-label": "^2.0.2",
30+
"@radix-ui/react-popover": "^1.0.6",
31+
"@radix-ui/react-scroll-area": "^1.0.4",
32+
"@radix-ui/react-select": "^1.2.2",
33+
"@radix-ui/react-separator": "^1.0.3",
34+
"@radix-ui/react-slot": "^1.0.2",
35+
"@radix-ui/react-tooltip": "^1.0.6",
36+
"@tanstack/react-query": "^4.35.3",
37+
"@types/node": "20.5.9",
38+
"@types/react": "18.2.21",
39+
"@types/react-dom": "18.2.7",
40+
"@uploadthing/react": "^5.5.0",
41+
"autoprefixer": "10.4.15",
42+
"axios": "^1.5.0",
43+
"class-variance-authority": "^0.7.0",
44+
"clsx": "^2.0.0",
45+
"cmdk": "^0.2.0",
46+
"date-fns": "^2.30.0",
47+
"dropdown-menu": "^0.1.1",
48+
"emoji-mart": "^5.5.2",
49+
"eslint": "8.48.0",
50+
"eslint-config-next": "13.4.12",
51+
"livekit-client": "^1.13.4",
52+
"livekit-server-sdk": "^1.2.6",
53+
"lucide-react": "^0.274.0",
54+
"ms": "^2.1.3",
55+
"next": "13.4.12",
56+
"next-themes": "^0.2.1",
57+
"postcss": "8.4.29",
58+
"query-string": "^8.1.0",
59+
"react": "18.2.0",
60+
"react-dom": "18.2.0",
61+
"react-dropzone": "^14.2.3",
62+
"react-hook-form": "^7.46.1",
63+
"shadcn-ui": "^0.3.0",
64+
"socket.io": "^4.7.2",
65+
"socket.io-client": "^4.7.2",
66+
"tailwind-merge": "^1.14.0",
67+
"tailwindcss": "3.3.3",
68+
"tailwindcss-animate": "^1.0.7",
69+
"typescript": "5.2.2",
70+
"uploadthing": "^5.5.3",
71+
"uuid": "^9.0.0",
72+
"zod": "^3.22.2",
73+
"zustand": "^4.4.1"
74+
},
75+
"devDependencies": {
76+
"@next/eslint-plugin-next": "^13.4.19",
77+
"@types/ms": "^0.7.31",
78+
"@types/uuid": "^9.0.3",
79+
"eslint-config-prettier": "^9.0.0",
80+
"eslint-plugin-react": "^7.33.2",
81+
"eslint-plugin-react-hooks": "^4.6.0",
82+
"husky": "^8.0.3",
83+
"lint-staged": "^14.0.1",
84+
"prisma": "^5.2.0"
85+
}
8486
}

0 commit comments

Comments
 (0)