Skip to content

Commit 50efb42

Browse files
committed
format all the files
1 parent fa5007c commit 50efb42

File tree

14 files changed

+148
-150
lines changed

14 files changed

+148
-150
lines changed

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
**/.cache/**
33
**/build/**
44
**/dist/**
5-
**/public/build/**
5+
**/public/**
66
**/package-lock.json
77
**/playwright-report/**

.vscode/extensions.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"recommendations": [
3-
"dbaeumer.vscode-eslint",
4-
"esbenp.prettier-vscode",
5-
"bradlc.vscode-tailwindcss",
6-
"neotan.vscode-auto-restart-typescript-eslint-servers",
7-
"prisma.prisma",
8-
"qwtel.sqlite-viewer"
9-
]
2+
"recommendations": [
3+
"dbaeumer.vscode-eslint",
4+
"esbenp.prettier-vscode",
5+
"bradlc.vscode-tailwindcss",
6+
"neotan.vscode-auto-restart-typescript-eslint-servers",
7+
"prisma.prisma",
8+
"qwtel.sqlite-viewer"
9+
]
1010
}

.vscode/settings.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"typescript.preferences.autoImportFileExcludePatterns": [
3-
"@remix-run/server-runtime",
4-
"@remix-run/router",
5-
"react-router-dom",
6-
"react-router"
7-
],
8-
"workbench.editorAssociations": {
9-
"*.db": "sqlite-viewer.view"
10-
}
2+
"typescript.preferences.autoImportFileExcludePatterns": [
3+
"@remix-run/server-runtime",
4+
"@remix-run/router",
5+
"react-router-dom",
6+
"react-router"
7+
],
8+
"workbench.editorAssociations": {
9+
"*.db": "sqlite-viewer.view"
10+
}
1111
}

epicshop/fix-watch.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ const debouncedRun = debounce(run, 200)
2020

2121
// Add event listeners.
2222
watcher
23-
.on('addDir', path => {
23+
.on('addDir', (path) => {
2424
debouncedRun()
2525
})
26-
.on('unlinkDir', path => {
26+
.on('unlinkDir', (path) => {
2727
// Only act if path contains two slashes (excluding the leading `./`)
2828
debouncedRun()
2929
})
30-
.on('error', error => console.log(`Watcher error: ${error}`))
30+
.on('error', (error) => console.log(`Watcher error: ${error}`))
3131

3232
/**
3333
* Simple debounce implementation

epicshop/fix.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,29 @@ const VERBOSE = false
1212
const logVerbose = (...args) => (VERBOSE ? console.log(...args) : undefined)
1313

1414
const workshopRoot = here('..')
15-
const examples = (await readDir(here('../examples'))).map(dir =>
15+
const examples = (await readDir(here('../examples'))).map((dir) =>
1616
here(`../examples/${dir}`),
1717
)
1818
const exercises = (await readDir(here('../exercises')))
19-
.map(name => here(`../exercises/${name}`))
20-
.filter(filepath => fs.statSync(filepath).isDirectory())
19+
.map((name) => here(`../exercises/${name}`))
20+
.filter((filepath) => fs.statSync(filepath).isDirectory())
2121
const exerciseApps = (
2222
await Promise.all(
23-
exercises.flatMap(async exercise => {
23+
exercises.flatMap(async (exercise) => {
2424
return (await readDir(exercise))
25-
.filter(dir => {
25+
.filter((dir) => {
2626
return /(problem|solution)/.test(dir)
2727
})
28-
.map(dir => path.join(exercise, dir))
28+
.map((dir) => path.join(exercise, dir))
2929
}),
3030
)
3131
).flat()
32-
const exampleApps = (await readDir(here('../examples'))).map(dir =>
32+
const exampleApps = (await readDir(here('../examples'))).map((dir) =>
3333
here(`../examples/${dir}`),
3434
)
3535
const apps = [...exampleApps, ...exerciseApps]
3636

37-
const appsWithPkgJson = [...examples, ...apps].filter(app => {
37+
const appsWithPkgJson = [...examples, ...apps].filter((app) => {
3838
const pkgjsonPath = path.join(app, 'package.json')
3939
return exists(pkgjsonPath)
4040
})
@@ -70,7 +70,7 @@ async function updateTsconfig() {
7070
const tsconfig = {
7171
files: [],
7272
exclude: ['node_modules'],
73-
references: appsWithPkgJson.map(a => ({
73+
references: appsWithPkgJson.map((a) => ({
7474
path: relativeToWorkshopRoot(a).replace(/\\/g, '/'),
7575
})),
7676
}

exercises/04.debugging/01.problem.dom-snapshots/src/tic-tac-toe.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import { useState } from 'react'
33
export function TicTacToe() {
44
return (
55
<div className="grid grid-cols-3 grid-rows-3">
6-
<Button aria-label="top left" className="border-l-0 border-t-0" />
6+
<Button aria-label="top left" className="border-t-0 border-l-0" />
77
<Button aria-label="top middle" className="border-t-0" />
8-
<Button aria-label="top right" className="border-r-0 border-t-0" />
8+
<Button aria-label="top right" className="border-t-0 border-r-0" />
99
<Button aria-label="left middle" className="border-l-0" />
1010
<Button aria-label="middle" />
1111
<Button aria-label="bottom left" className="border-r-0" />
1212
<Button aria-label="right middle" className="border-b-0 border-l-0" />
1313
<Button aria-label="bottom middle" className="border-b-0" />
14-
<Button aria-label="bottom right" className="border-b-0 border-r-0" />
14+
<Button aria-label="bottom right" className="border-r-0 border-b-0" />
1515
</div>
1616
)
1717
}

exercises/04.debugging/01.solution.dom-snapshots/src/tic-tac-toe.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import { useState } from 'react'
33
export function TicTacToe() {
44
return (
55
<div className="grid grid-cols-3 grid-rows-3">
6-
<Button aria-label="top left" className="border-l-0 border-t-0" />
6+
<Button aria-label="top left" className="border-t-0 border-l-0" />
77
<Button aria-label="top middle" className="border-t-0" />
8-
<Button aria-label="top right" className="border-r-0 border-t-0" />
8+
<Button aria-label="top right" className="border-t-0 border-r-0" />
99
<Button aria-label="left middle" className="border-l-0" />
1010
<Button aria-label="middle" />
1111
<Button aria-label="right middle" className="border-b-0 border-l-0" />
1212
<Button aria-label="bottom left" className="border-r-0" />
1313
<Button aria-label="bottom middle" className="border-b-0" />
14-
<Button aria-label="bottom right" className="border-b-0 border-r-0" />
14+
<Button aria-label="bottom right" className="border-r-0 border-b-0" />
1515
</div>
1616
)
1717
}

exercises/04.debugging/02.problem.debugger/src/tic-tac-toe.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import { useState } from 'react'
33
export function TicTacToe() {
44
return (
55
<div className="grid grid-cols-3 grid-rows-3">
6-
<Button aria-label="top left" className="border-l-0 border-t-0" />
6+
<Button aria-label="top left" className="border-t-0 border-l-0" />
77
<Button aria-label="top middle" className="border-t-0" />
8-
<Button aria-label="top right" className="border-r-0 border-t-0" />
8+
<Button aria-label="top right" className="border-t-0 border-r-0" />
99
<Button aria-label="left middle" className="border-l-0" />
1010
<Button aria-label="middle" />
1111
<Button aria-label="bottom left" className="border-r-0" />
1212
<Button aria-label="right middle" className="border-b-0 border-l-0" />
1313
<Button aria-label="bottom middle" className="border-b-0" />
14-
<Button aria-label="bottom right" className="border-b-0 border-r-0" />
14+
<Button aria-label="bottom right" className="border-r-0 border-b-0" />
1515
</div>
1616
)
1717
}

exercises/04.debugging/02.solution.debugger/src/tic-tac-toe.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import { useState } from 'react'
33
export function TicTacToe() {
44
return (
55
<div className="grid grid-cols-3 grid-rows-3">
6-
<Button aria-label="top left" className="border-l-0 border-t-0" />
6+
<Button aria-label="top left" className="border-t-0 border-l-0" />
77
<Button aria-label="top middle" className="border-t-0" />
8-
<Button aria-label="top right" className="border-r-0 border-t-0" />
8+
<Button aria-label="top right" className="border-t-0 border-r-0" />
99
<Button aria-label="left middle" className="border-l-0" />
1010
<Button aria-label="middle" />
1111
<Button aria-label="bottom left" className="border-r-0" />
1212
<Button aria-label="right middle" className="border-b-0 border-l-0" />
1313
<Button aria-label="bottom middle" className="border-b-0" />
14-
<Button aria-label="bottom right" className="border-b-0 border-r-0" />
14+
<Button aria-label="bottom right" className="border-r-0 border-b-0" />
1515
</div>
1616
)
1717
}

exercises/04.debugging/03.problem.breakpoints/src/tic-tac-toe.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ import { useState } from 'react'
33
export function TicTacToe() {
44
return (
55
<div className="grid grid-cols-3 grid-rows-3">
6-
<Button aria-label="top left" className="border-l-0 border-t-0" />
6+
<Button aria-label="top left" className="border-t-0 border-l-0" />
77
<Button aria-label="top middle" className="border-t-0" />
8-
<Button aria-label="top right" className="border-r-0 border-t-0" />
8+
<Button aria-label="top right" className="border-t-0 border-r-0" />
99
<Button aria-label="left middle" className="border-l-0" />
1010
<Button aria-label="middle" />
1111
<Button aria-label="bottom left" className="border-r-0" />
1212
<Button aria-label="right middle" className="border-b-0 border-l-0" />
1313
<Button aria-label="bottom middle" className="border-b-0" />
14-
<Button aria-label="bottom right" className="border-b-0 border-r-0" />
14+
<Button aria-label="bottom right" className="border-r-0 border-b-0" />
1515
</div>
1616
)
1717
}

0 commit comments

Comments
 (0)