Skip to content

Commit d5fd01b

Browse files
committed
update all deps and format
1 parent d2a7669 commit d5fd01b

File tree

28 files changed

+3973
-3090
lines changed

28 files changed

+3973
-3090
lines changed

epicshop/package-lock.json

Lines changed: 1819 additions & 1452 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

epicshop/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"test": "playwright test"
66
},
77
"dependencies": {
8-
"@epic-web/config": "^1.16.3",
8+
"@epic-web/config": "^1.21.3",
99
"@epic-web/workshop-app": "^6.41.3",
1010
"@epic-web/workshop-utils": "^6.41.3",
11-
"execa": "^9.5.1",
12-
"fs-extra": "^11.2.0",
11+
"execa": "^9.6.0",
12+
"fs-extra": "^11.3.2",
1313
"@epic-web/workshop-cli": "^6.41.3"
1414
}
1515
}

epicshop/post-set-playground.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ const exclude = [
88
'exercises/04.',
99
]
1010

11-
if (exclude.every(e => !process.env.EPICSHOP_PLAYGROUND_SRC_DIR.includes(e))) {
11+
if (
12+
exclude.every((e) => !process.env.EPICSHOP_PLAYGROUND_SRC_DIR.includes(e))
13+
) {
1214
fs.writeFileSync(
1315
path.join(process.env.EPICSHOP_PLAYGROUND_DEST_DIR, 'tsconfig.json'),
1416
JSON.stringify({ extends: '../tsconfig' }, null, 2),

epicshop/update-deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ rm -rf node_modules package-lock.json ./epicshop/package-lock.json ./epicshop/no
77
npm install
88
npm run setup
99
npm run typecheck
10-
npm run lint --fix
10+
npm run lint -- --fix

exercises/02.raw-react/01.problem.elements/README.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ like [npm](https://npmjs.com) where packages we use are ([react](https://npm.im/
1111

1212
<callout-info class="aside">
1313
A package registry is a centralized repository where developers can publish
14-
and share reusable code packages.
14+
and share reusable code packages.
1515
</callout-info>
1616

1717
To keep things simple for these exercises, we'll import React from slightly different locations:

exercises/02.raw-react/01.solution.elements/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ await testStep('The DOM element is created by React', () => {
2525
expect(element, 'element not found').to.be.instanceOf(HTMLElement)
2626
if (!element) return
2727

28-
const reactKeys = Object.keys(element).filter(key =>
28+
const reactKeys = Object.keys(element).filter((key) =>
2929
key.startsWith('__react'),
3030
)
3131
expect(

exercises/03.using-jsx/01.solution.compiler/README.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
🦉 Let's break down the key changes in our `script` tag:
66

77
1. `type="text/babel"` and `data-type="module"`:
8-
98
- `type="text/babel"` tells Babel to transpile this script, allowing us to use JSX and modern JavaScript features.
109
- `data-type="module"` indicates that this script should be treated as a module after Babel transpilation. This enables us to use `import` statements.
1110

@@ -25,7 +24,6 @@
2524
```
2625

2726
This imports all exports from React as a namespace called `React`. It's beneficial because:
28-
2927
- It provides access to all React APIs, not just `createElement`.
3028
- When using JSX, the transpiler will convert JSX elements to `React.createElement` calls, so we need the `React` namespace in scope.
3129

exercises/03.using-jsx/02.solution.interpolation/index.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,8 @@ await testStep('children is interpolated', async () => {
2020
inlineScript.textContent,
2121
'children should be interpolated',
2222
).not.to.include('>Hello World<')
23-
expect(inlineScript.textContent, 'expected script to include { children }').to.match(/{\s*children\s*}/)
23+
expect(
24+
inlineScript.textContent,
25+
'expected script to include { children }',
26+
).to.match(/{\s*children\s*}/)
2427
})

exercises/07.forms/04.problem.submit/README.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ submission in JavaScript and prevent the browser's default behavior.
100100
action="api/onboarding"
101101
method="POST"
102102
encType="multipart/form-data"
103-
onSubmit={event => {
103+
onSubmit={(event) => {
104104
event.preventDefault()
105105
// ...
106106
}}

exercises/07.forms/04.solution.submit/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function App() {
1010
method="POST"
1111
encType="multipart/form-data"
1212
// 🦉 by the end of the exercise, this is all you'll actually need:
13-
onSubmit={event => {
13+
onSubmit={(event) => {
1414
event.preventDefault()
1515
const formData = new FormData(event.currentTarget)
1616
console.log(Object.fromEntries(formData))

0 commit comments

Comments
 (0)