Skip to content

Commit 4a71f23

Browse files
committed
Run Prettier
1 parent 398268c commit 4a71f23

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.eleventy.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,34 @@ const path = require("node:path")
77
const fs = require("node:fs/promises")
88
const rss = require("@11ty/eleventy-plugin-rss")
99
const dedent = require("dedent")
10-
const { build } = require("esbuild");
10+
const { build } = require("esbuild")
1111

1212
const buildJS = (config = {}) => {
1313
return build({
1414
minify: process.NODE_ENV === "development" ? false : true,
1515
bundle: true,
1616
write: true,
17-
outdir: '_site/script',
17+
outdir: "_site/script",
1818
...config,
19-
});
19+
})
2020
}
2121

2222
module.exports = (eleventyConfig) => {
2323
eleventyConfig.addPlugin(rss)
2424
eleventyConfig.addPlugin(css)
25-
25+
2626
const entryPoints = glob.sync("script/*.[tj]s")
2727
eleventyConfig.addWatchTarget("script/*.[tj]s")
2828

29-
buildJS({entryPoints})
30-
29+
buildJS({ entryPoints })
30+
3131
eleventyConfig.on("beforeWatch", (changedFiles) => {
3232
// Run me before --watch or --serve re-runs
33-
if(entryPoints.some(watchPath => changedFiles.includes(watchPath))) {
34-
buildJS({entryPoints})
33+
if (entryPoints.some((watchPath) => changedFiles.includes(watchPath))) {
34+
buildJS({ entryPoints })
3535
}
36-
});
37-
36+
})
37+
3838
// eleventyConfig.addPlugin(js, {
3939
// entryPoints: glob.sync("script/*.[tj]s"),
4040
// outDir: "_site/script",

script/codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class CodeInteractiveElement extends HTMLElement {
6666
extensions: [setup, javascript()],
6767
parent: this.shadowRoot,
6868
root: this.shadowRoot,
69-
doc: this.textContent
69+
doc: this.textContent,
7070
})
7171

7272
connectedCallback() {

0 commit comments

Comments
 (0)