Skip to content

Commit 30ea547

Browse files
fix(commitlint): commitlint is fixed
1 parent 530ff57 commit 30ea547

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx commitlint --edit $1

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ This is the official website of CodeX Club, SIT.
1010
- Firebase
1111

1212
### Contributors
13-
Ankush Dutta
13+
14+
Ankush Dutta
15+
Miran Firdausi

package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,14 @@
4242
},
4343
"husky": {
4444
"hooks": {
45-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
45+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
46+
"pre-commit": "lint-staged"
4647
}
48+
},
49+
"lint-staged": {
50+
"**/*.{js,jsx,ts,tsx,html,css,json}": [
51+
"prettier --write",
52+
"git add"
53+
]
4754
}
4855
}

src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function App() {
66
return (
77
<Router>
88
<ToastContainer />
9-
<Routes>
9+
<Routes>
1010
{routes.map((route) => (
1111
<Route path={route.path} element={route.render} key={route.lable} />
1212
))}

0 commit comments

Comments
 (0)