Skip to content

Commit 06e2ae6

Browse files
committed
format
1 parent 873de67 commit 06e2ae6

File tree

241 files changed

+16182
-16182
lines changed

Some content is hidden

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

241 files changed

+16182
-16182
lines changed

epicshop/fix-watch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ watcher
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

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,29 +11,29 @@ const here = (...p) => path.join(__dirname, ...p)
1111
// const logVerbose = (...args) => (VERBOSE ? console.log(...args) : undefined)
1212

1313
const workshopRoot = here('..')
14-
const examples = (await readDir(here('../examples'))).map(dir =>
14+
const examples = (await readDir(here('../examples'))).map((dir) =>
1515
here(`../examples/${dir}`),
1616
)
1717
const exercises = (await readDir(here('../exercises')))
18-
.map(name => here(`../exercises/${name}`))
19-
.filter(filepath => fs.statSync(filepath).isDirectory())
18+
.map((name) => here(`../exercises/${name}`))
19+
.filter((filepath) => fs.statSync(filepath).isDirectory())
2020
const exerciseApps = (
2121
await Promise.all(
22-
exercises.flatMap(async exercise => {
22+
exercises.flatMap(async (exercise) => {
2323
return (await readDir(exercise))
24-
.filter(dir => {
24+
.filter((dir) => {
2525
return /(problem|solution)/.test(dir)
2626
})
27-
.map(dir => path.join(exercise, dir))
27+
.map((dir) => path.join(exercise, dir))
2828
}),
2929
)
3030
).flat()
31-
const exampleApps = (await readDir(here('../examples'))).map(dir =>
31+
const exampleApps = (await readDir(here('../examples'))).map((dir) =>
3232
here(`../examples/${dir}`),
3333
)
3434
const apps = [...exampleApps, ...exerciseApps]
3535

36-
const appsWithPkgJson = [...examples, ...apps].filter(app => {
36+
const appsWithPkgJson = [...examples, ...apps].filter((app) => {
3737
const pkgjsonPath = path.join(app, 'package.json')
3838
return exists(pkgjsonPath)
3939
})

0 commit comments

Comments
 (0)