Skip to content

Commit 43586e1

Browse files
committed
feat: upgrade react v19, change commitlint
1 parent fb23951 commit 43586e1

File tree

7 files changed

+1121
-1144
lines changed

7 files changed

+1121
-1144
lines changed

.commitlintrc.cjs

Lines changed: 0 additions & 1 deletion
This file was deleted.

commitlint.config.ts

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

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,28 @@
1616
"precommit": "yarn lint && yarn prettier"
1717
},
1818
"dependencies": {
19+
"@commitlint/cli": "^19.6.1",
20+
"@commitlint/config-conventional": "^19.6.0",
1921
"eslint-plugin-prettier": "^5.2.1",
2022
"eslint-plugin-react": "^7.35.0",
21-
"react": "^18.3.1",
22-
"react-dom": "^18.3.1"
23+
"react": "^19.0.0",
24+
"react-dom": "^19.0.0"
2325
},
2426
"devDependencies": {
25-
"@types/react": "^18.3.3",
26-
"@types/react-dom": "^18.3.0",
27+
"@types/react": "^19.0.7",
28+
"@types/react-dom": "^19.0.3",
2729
"@typescript-eslint/eslint-plugin": "^7.15.0",
2830
"@typescript-eslint/parser": "^7.15.0",
2931
"@vitejs/plugin-react-swc": "^3.5.0",
3032
"autoprefixer": "^10.4.20",
31-
"commitlint": "^19.4.0",
32-
"commitlint-config-gitmoji": "^2.3.1",
3333
"eslint": "^8.57.0",
3434
"eslint-config-prettier": "^9.1.0",
3535
"eslint-plugin-react-hooks": "^4.6.2",
3636
"eslint-plugin-react-refresh": "^0.4.7",
3737
"husky": "^8.0.0",
38-
"postcss": "^8.4.41",
38+
"postcss": "^8.5.1",
3939
"prettier": "3.3.3",
40-
"tailwindcss": "^3.4.7",
40+
"tailwindcss": "^3.4.17",
4141
"typescript": "^5.2.2",
4242
"vite": "^5.3.4"
4343
}

postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ export default {
33
tailwindcss: {},
44
autoprefixer: {},
55
},
6-
}
6+
};

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function App() {
2-
return <div className="text-red-500 text-6xl font-bold">React Boilerplate</div>;
2+
return <div className="text-red-500 text-6xl text-center font-bold">React Boilerplate</div>;
33
}
44

55
export default App;
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
/** @type {import('tailwindcss').Config} */
1+
import type { Config } from "tailwindcss";
2+
23
export default {
34
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
45
theme: {
56
extend: {},
67
},
78
plugins: [],
8-
};
9+
} satisfies Config;

yarn.lock

Lines changed: 1105 additions & 1131 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)