File tree 8 files changed +42
-12
lines changed
8 files changed +42
-12
lines changed Original file line number Diff line number Diff line change 8
8
"ecmaVersion" : " latest" ,
9
9
"sourceType" : " module"
10
10
},
11
- "plugins" : [
12
- " @typescript-eslint"
13
- ],
11
+ "plugins" : [" @typescript-eslint" ],
14
12
"extends" : [
15
13
" plugin:@typescript-eslint/recommended" ,
16
14
" plugin:@typescript-eslint/recommended-requiring-type-checking" ,
17
- " next/core-web-vitals"
15
+ " next/core-web-vitals" ,
16
+ " prettier"
18
17
],
19
- "rules" : {
20
- }
21
- }
18
+ "rules" : {}
19
+ }
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+ . " $( dirname -- " $0 " ) /_/husky.sh"
3
+
4
+ yarn prettier
5
+ yarn lint
Original file line number Diff line number Diff line change
1
+ ** /node_modules /*
2
+ dist
3
+ coverage
4
+ ** /.next /*
5
+ * .lock
6
+ * .css
7
+ * .scss
8
+ ** /out /*
9
+ next-env.d.ts
10
+ next.config.js
11
+ * .md
Original file line number Diff line number Diff line change 1
1
/** @type {import('next').NextConfig } */
2
- const nextConfig = { }
2
+ const nextConfig = { } ;
3
3
4
- module . exports = nextConfig
4
+ module . exports = nextConfig ;
Original file line number Diff line number Diff line change 6
6
"dev" : " next dev" ,
7
7
"build" : " next build" ,
8
8
"start" : " next start" ,
9
- "lint" : " next lint"
9
+ "lint" : " next lint" ,
10
+ "prettier" : " prettier . --write" ,
11
+ "prepare" : " husky install"
10
12
},
11
13
"dependencies" : {
12
14
"@reduxjs/toolkit" : " ^1.9.5" ,
26
28
"daisyui" : " ^3.5.0" ,
27
29
"eslint" : " 8.46.0" ,
28
30
"eslint-config-next" : " 13.4.12" ,
31
+ "eslint-config-prettier" : " ^8.10.0" ,
29
32
"postcss" : " 8.4.27" ,
33
+ "prettier" : " ^3.0.1" ,
30
34
"tailwindcss" : " 3.3.3" ,
31
- "typescript" : " 5.1.6"
35
+ "typescript" : " 5.1.6" ,
36
+ "husky" : " ^8.0.0"
32
37
}
33
38
}
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ module.exports = {
3
3
tailwindcss : { } ,
4
4
autoprefixer : { } ,
5
5
} ,
6
- }
6
+ } ;
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ function CounterPage() {
34
34
</ button >
35
35
</ div >
36
36
{ value }
37
+ < img src = "" />
37
38
</ div >
38
39
) ;
39
40
}
Original file line number Diff line number Diff line change 963
963
eslint-plugin-react "^7.31.7"
964
964
eslint-plugin-react-hooks "5.0.0-canary-7118f5dd7-20230705"
965
965
966
+ eslint-config-prettier@^8.10.0 :
967
+ version "8.10.0"
968
+ resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.10.0.tgz#3a06a662130807e2502fc3ff8b4143d8a0658e11"
969
+ integrity sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==
970
+
966
971
eslint-import-resolver-node@^0.3.6, eslint-import-resolver-node@^0.3.7 :
967
972
version "0.3.7"
968
973
resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.7.tgz#83b375187d412324a1963d84fa664377a23eb4d7"
@@ -2195,6 +2200,11 @@ prelude-ls@^1.2.1:
2195
2200
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
2196
2201
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
2197
2202
2203
+ prettier@^3.0.1 :
2204
+ version "3.0.1"
2205
+ resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.1.tgz#65271fc9320ce4913c57747a70ce635b30beaa40"
2206
+ integrity sha512-fcOWSnnpCrovBsmFZIGIy9UqK2FaI7Hqax+DIO0A9UxeVoY4iweyaFjS5TavZN97Hfehph0nhsZnjlVKzEQSrQ==
2207
+
2198
2208
prop-types@^15.8.1 :
2199
2209
version "15.8.1"
2200
2210
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
You can’t perform that action at this time.
0 commit comments