Skip to content

Commit

Permalink
feat: upgrade react v19, change commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
nxhawk committed Jan 21, 2025
1 parent fb23951 commit 43586e1
Show file tree
Hide file tree
Showing 7 changed files with 1,121 additions and 1,144 deletions.
1 change: 0 additions & 1 deletion .commitlintrc.cjs

This file was deleted.

3 changes: 3 additions & 0 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ["@commitlint/config-conventional"],
};
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,28 @@
"precommit": "yarn lint && yarn prettier"
},
"dependencies": {
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.35.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"@typescript-eslint/eslint-plugin": "^7.15.0",
"@typescript-eslint/parser": "^7.15.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"autoprefixer": "^10.4.20",
"commitlint": "^19.4.0",
"commitlint-config-gitmoji": "^2.3.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.7",
"husky": "^8.0.0",
"postcss": "^8.4.41",
"postcss": "^8.5.1",
"prettier": "3.3.3",
"tailwindcss": "^3.4.7",
"tailwindcss": "^3.4.17",
"typescript": "^5.2.2",
"vite": "^5.3.4"
}
Expand Down
2 changes: 1 addition & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ export default {
tailwindcss: {},
autoprefixer: {},
},
}
};
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function App() {
return <div className="text-red-500 text-6xl font-bold">React Boilerplate</div>;
return <div className="text-red-500 text-6xl text-center font-bold">React Boilerplate</div>;
}

export default App;
5 changes: 3 additions & 2 deletions tailwind.config.js → tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/** @type {import('tailwindcss').Config} */
import type { Config } from "tailwindcss";

export default {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [],
};
} satisfies Config;
2,236 changes: 1,105 additions & 1,131 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 43586e1

Please sign in to comment.