Skip to content

Commit 5b46f69

Browse files
committed
format
1 parent 8149cf2 commit 5b46f69

File tree

41 files changed

+69
-69
lines changed

Some content is hidden

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

41 files changed

+69
-69
lines changed

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
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"extends": ["@epic-web/config/typescript"],
3-
"include": ["types/**/*.d.ts", "src/**/*.ts"]
2+
"extends": ["@epic-web/config/typescript"],
3+
"include": ["types/**/*.d.ts", "src/**/*.ts"]
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
import "@epic-web/config/reset.d.ts";
1+
import '@epic-web/config/reset.d.ts'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"extends": ["@epic-web/config/typescript"],
3-
"include": ["types/**/*.d.ts", "src/**/*.ts"]
2+
"extends": ["@epic-web/config/typescript"],
3+
"include": ["types/**/*.d.ts", "src/**/*.ts"]
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
import "@epic-web/config/reset.d.ts";
1+
import '@epic-web/config/reset.d.ts'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"extends": ["@epic-web/config/typescript"],
3-
"include": ["types/**/*.d.ts", "src/**/*.ts"]
2+
"extends": ["@epic-web/config/typescript"],
3+
"include": ["types/**/*.d.ts", "src/**/*.ts"]
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
import "@epic-web/config/reset.d.ts";
1+
import '@epic-web/config/reset.d.ts'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"extends": ["@epic-web/config/typescript"],
3-
"include": ["types/**/*.d.ts", "src/**/*.ts"]
2+
"extends": ["@epic-web/config/typescript"],
3+
"include": ["types/**/*.d.ts", "src/**/*.ts"]
44
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
import "@epic-web/config/reset.d.ts";
1+
import '@epic-web/config/reset.d.ts'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"extends": ["@epic-web/config/typescript"],
3-
"include": ["types/**/*.d.ts", "src/**/*.ts"]
2+
"extends": ["@epic-web/config/typescript"],
3+
"include": ["types/**/*.d.ts", "src/**/*.ts"]
44
}

0 commit comments

Comments
 (0)