Skip to content

Commit 5d2263c

Browse files
committed
chore: huskyの追加
1 parent defa145 commit 5d2263c

File tree

3 files changed

+400
-9
lines changed

3 files changed

+400
-9
lines changed

package.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@
99
"api:build": "aspida --build",
1010
"start": "next start"
1111
},
12+
"lint-staged": {
13+
"*.{js,ts,tsx}": [
14+
"eslint --fix",
15+
"git add"
16+
]
17+
},
18+
"husky": {
19+
"hooks": {
20+
"pre-commit": "lint-staged"
21+
}
22+
},
1223
"dependencies": {
1324
"@aspida/fetch": "^0.8.1",
1425
"next": "9.5.1",
@@ -22,6 +33,8 @@
2233
"@typescript-eslint/parser": "^3.7.1",
2334
"eslint": "^7.6.0",
2435
"eslint-plugin-react": "^7.20.5",
36+
"husky": "^4.2.5",
37+
"lint-staged": "^10.2.11",
2538
"typescript": "^3.9.7"
2639
}
2740
}

pages/articles/[id].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const getStaticPaths: GetStaticPaths = async () => {
2929

3030
const ArticleDetail = ({ article }: InferGetStaticPropsType<typeof getStaticProps>) => {
3131
const createMarkUp = () => {
32-
return {__html: article.body}
32+
return { __html: article.body }
3333
}
3434
return (
3535
<div>

0 commit comments

Comments
 (0)