File tree Expand file tree Collapse file tree 3 files changed +400
-9
lines changed Expand file tree Collapse file tree 3 files changed +400
-9
lines changed Original file line number Diff line number Diff line change 9
9
"api:build" : " aspida --build" ,
10
10
"start" : " next start"
11
11
},
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
+ },
12
23
"dependencies" : {
13
24
"@aspida/fetch" : " ^0.8.1" ,
14
25
"next" : " 9.5.1" ,
22
33
"@typescript-eslint/parser" : " ^3.7.1" ,
23
34
"eslint" : " ^7.6.0" ,
24
35
"eslint-plugin-react" : " ^7.20.5" ,
36
+ "husky" : " ^4.2.5" ,
37
+ "lint-staged" : " ^10.2.11" ,
25
38
"typescript" : " ^3.9.7"
26
39
}
27
40
}
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export const getStaticPaths: GetStaticPaths = async () => {
29
29
30
30
const ArticleDetail = ( { article } : InferGetStaticPropsType < typeof getStaticProps > ) => {
31
31
const createMarkUp = ( ) => {
32
- return { __html : article . body }
32
+ return { __html : article . body }
33
33
}
34
34
return (
35
35
< div >
You can’t perform that action at this time.
0 commit comments