Skip to content

Commit 159fde8

Browse files
committed
format
1 parent 9dd1a1a commit 159fde8

File tree

209 files changed

+2239
-1097
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

209 files changed

+2239
-1097
lines changed

epicshop/fix.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const exampleApps = (await readDir(here('../examples'))).map(dir =>
3434
)
3535
const apps = [...exampleApps, ...exerciseApps]
3636

37-
const appsWithPkgJson = [...examples, ...apps].filter(app => {
37+
const appsWithPkgJson = apps.filter(app => {
3838
const pkgjsonPath = path.join(app, 'package.json')
3939
return exists(pkgjsonPath)
4040
})
@@ -112,7 +112,7 @@ async function updateDataDb() {
112112
path.join(latestPrismaApp, 'prisma'),
113113
path.join(app, 'prisma'),
114114
[/data\.db/],
115-
)
115+
)
116116
: false
117117
if (!prismaIsUnchanged) {
118118
if (latestPrismaApp) {

epicshop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
"execa": "^9.3.1",
77
"fs-extra": "^11.2.0"
88
}
9-
}
9+
}

epicshop/tsconfig.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
{
2-
"compilerOptions": {
3-
"module": "NodeNext",
4-
"target": "es2022",
5-
"esModuleInterop": true,
6-
"forceConsistentCasingInFileNames": true,
7-
"allowJs": true,
8-
"skipLibCheck": true,
9-
"noEmit": true
10-
}
11-
}
1+
{
2+
"compilerOptions": {
3+
"module": "NodeNext",
4+
"target": "es2022",
5+
"esModuleInterop": true,
6+
"forceConsistentCasingInFileNames": true,
7+
"allowJs": true,
8+
"skipLibCheck": true,
9+
"noEmit": true
10+
}
11+
}

exercises/01.schema/01.problem.init/app/components/error-boundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function GeneralErrorBoundary({
3737
? (statusHandlers?.[error.status] ?? defaultStatusHandler)({
3838
error,
3939
params,
40-
})
40+
})
4141
: unexpectedErrorHandler(error)}
4242
</div>
4343
)

exercises/01.schema/01.problem.init/app/styles/font.css

Lines changed: 43 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
html {
2-
font-family: Nunito Sans, ui-sans-serif, system-ui, -apple-system,
3-
BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans,
4-
sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', Segoe UI Symbol,
2+
font-family:
3+
Nunito Sans,
4+
ui-sans-serif,
5+
system-ui,
6+
-apple-system,
7+
BlinkMacSystemFont,
8+
Segoe UI,
9+
Roboto,
10+
Helvetica Neue,
11+
Arial,
12+
Noto Sans,
13+
sans-serif,
14+
'Apple Color Emoji',
15+
'Segoe UI Emoji',
16+
Segoe UI Symbol,
517
'Noto Color Emoji';
618
}
719
/* nunito-sans-200 - latin_latin-ext */
@@ -10,7 +22,8 @@ html {
1022
font-family: 'Nunito Sans';
1123
font-style: normal;
1224
font-weight: 200;
13-
src: url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-200.woff2')
25+
src:
26+
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-200.woff2')
1427
format('woff2'),
1528
/* Chrome 36+, Opera 23+, Firefox 39+ */
1629
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-200.woff')
@@ -22,7 +35,8 @@ html {
2235
font-family: 'Nunito Sans';
2336
font-style: italic;
2437
font-weight: 200;
25-
src: url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-200italic.woff2')
38+
src:
39+
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-200italic.woff2')
2640
format('woff2'),
2741
/* Chrome 36+, Opera 23+, Firefox 39+ */
2842
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-200italic.woff')
@@ -34,7 +48,8 @@ html {
3448
font-family: 'Nunito Sans';
3549
font-style: normal;
3650
font-weight: 300;
37-
src: url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-300.woff2')
51+
src:
52+
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-300.woff2')
3853
format('woff2'),
3954
/* Chrome 36+, Opera 23+, Firefox 39+ */
4055
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-300.woff')
@@ -46,7 +61,8 @@ html {
4661
font-family: 'Nunito Sans';
4762
font-style: italic;
4863
font-weight: 300;
49-
src: url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-300italic.woff2')
64+
src:
65+
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-300italic.woff2')
5066
format('woff2'),
5167
/* Chrome 36+, Opera 23+, Firefox 39+ */
5268
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-300italic.woff')
@@ -58,7 +74,8 @@ html {
5874
font-family: 'Nunito Sans';
5975
font-style: normal;
6076
font-weight: 400;
61-
src: url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-regular.woff2')
77+
src:
78+
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-regular.woff2')
6279
format('woff2'),
6380
/* Chrome 36+, Opera 23+, Firefox 39+ */
6481
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-regular.woff')
@@ -70,7 +87,8 @@ html {
7087
font-family: 'Nunito Sans';
7188
font-style: italic;
7289
font-weight: 400;
73-
src: url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-italic.woff2')
90+
src:
91+
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-italic.woff2')
7492
format('woff2'),
7593
/* Chrome 36+, Opera 23+, Firefox 39+ */
7694
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-italic.woff')
@@ -82,7 +100,8 @@ html {
82100
font-family: 'Nunito Sans';
83101
font-style: normal;
84102
font-weight: 600;
85-
src: url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-600.woff2')
103+
src:
104+
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-600.woff2')
86105
format('woff2'),
87106
/* Chrome 36+, Opera 23+, Firefox 39+ */
88107
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-600.woff')
@@ -94,7 +113,8 @@ html {
94113
font-family: 'Nunito Sans';
95114
font-style: italic;
96115
font-weight: 600;
97-
src: url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-600italic.woff2')
116+
src:
117+
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-600italic.woff2')
98118
format('woff2'),
99119
/* Chrome 36+, Opera 23+, Firefox 39+ */
100120
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-600italic.woff')
@@ -106,7 +126,8 @@ html {
106126
font-family: 'Nunito Sans';
107127
font-style: normal;
108128
font-weight: 700;
109-
src: url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-700.woff2')
129+
src:
130+
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-700.woff2')
110131
format('woff2'),
111132
/* Chrome 36+, Opera 23+, Firefox 39+ */
112133
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-700.woff')
@@ -118,7 +139,8 @@ html {
118139
font-family: 'Nunito Sans';
119140
font-style: italic;
120141
font-weight: 700;
121-
src: url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-700italic.woff2')
142+
src:
143+
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-700italic.woff2')
122144
format('woff2'),
123145
/* Chrome 36+, Opera 23+, Firefox 39+ */
124146
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-700italic.woff')
@@ -130,7 +152,8 @@ html {
130152
font-family: 'Nunito Sans';
131153
font-style: normal;
132154
font-weight: 800;
133-
src: url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-800.woff2')
155+
src:
156+
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-800.woff2')
134157
format('woff2'),
135158
/* Chrome 36+, Opera 23+, Firefox 39+ */
136159
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-800.woff')
@@ -142,7 +165,8 @@ html {
142165
font-family: 'Nunito Sans';
143166
font-style: italic;
144167
font-weight: 800;
145-
src: url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-800italic.woff2')
168+
src:
169+
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-800italic.woff2')
146170
format('woff2'),
147171
/* Chrome 36+, Opera 23+, Firefox 39+ */
148172
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-800italic.woff')
@@ -154,7 +178,8 @@ html {
154178
font-family: 'Nunito Sans';
155179
font-style: normal;
156180
font-weight: 900;
157-
src: url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-900.woff2')
181+
src:
182+
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-900.woff2')
158183
format('woff2'),
159184
/* Chrome 36+, Opera 23+, Firefox 39+ */
160185
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-900.woff')
@@ -166,7 +191,8 @@ html {
166191
font-family: 'Nunito Sans';
167192
font-style: italic;
168193
font-weight: 900;
169-
src: url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-900italic.woff2')
194+
src:
195+
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-900italic.woff2')
170196
format('woff2'),
171197
/* Chrome 36+, Opera 23+, Firefox 39+ */
172198
url('/fonts/nunito-sans/nunito-sans-v12-latin_latin-ext-900italic.woff')

exercises/01.schema/01.problem.init/app/utils/misc.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export function invariantResponse(
8181
typeof message === 'function'
8282
? message()
8383
: message ||
84-
'An invariant failed, please provide a message to explain why.',
84+
'An invariant failed, please provide a message to explain why.',
8585
{ status: 400, ...responseInit },
8686
)
8787
}

exercises/01.schema/01.problem.init/server/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ const server = app.listen(portToUse, () => {
126126
desiredPort === portToUse
127127
? desiredPort
128128
: addy && typeof addy === 'object'
129-
? addy.port
130-
: 0
129+
? addy.port
130+
: 0
131131

132132
if (portUsed !== desiredPort) {
133133
console.warn(

exercises/01.schema/01.solution.init/README.mdx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,8 @@ will need to
2121
</callout-muted>
2222

2323
<callout-muted>
24-
For Linux users:
25-
26-
```sh nonumber
27-
sudo apt update
28-
sudo apt install sqlite3
29-
sqlite3 -version
30-
```
24+
For Linux users: ```sh nonumber sudo apt update sudo apt install sqlite3
25+
sqlite3 -version ```
3126
</callout-muted>
3227

3328
Once you have that installed, then you can run `sqlite3` from the command line:

exercises/01.schema/01.solution.init/app/components/error-boundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function GeneralErrorBoundary({
3737
? (statusHandlers?.[error.status] ?? defaultStatusHandler)({
3838
error,
3939
params,
40-
})
40+
})
4141
: unexpectedErrorHandler(error)}
4242
</div>
4343
)

0 commit comments

Comments
 (0)