Skip to content

Commit c501170

Browse files
fix: commitlint made to work
1 parent dfe0af6 commit c501170

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
npm run lint
4+
npm run lint && npm run style

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
1010
"preview": "vite preview",
1111
"lint:fix": "eslint --fix .",
12+
"style": "prettier --write {src,test}/**/* ./*.{json,*.json} !package-lock.json -u --no-error-on-unmatched-pattern",
1213
"prepare": "husky install"
1314
},
1415
"dependencies": {
@@ -49,6 +50,7 @@
4950
"lint-staged": {
5051
"**/*.{js,jsx,ts,tsx,html,css,json}": [
5152
"prettier --write",
53+
"eslint --fix src/",
5254
"git add"
5355
]
5456
}

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
))}

src/assets/styles/index.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
@import "tailwindcss/base";
2-
@import "tailwindcss/components";
3-
@import "tailwindcss/utilities";
1+
@import "tailwindcss/base";
2+
@import "tailwindcss/components";
3+
@import "tailwindcss/utilities";

0 commit comments

Comments
 (0)