Skip to content

Commit e4beeaf

Browse files
committed
chore: run prettier@3
1 parent cf81efd commit e4beeaf

File tree

11 files changed

+22
-22
lines changed

11 files changed

+22
-22
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ CSS StyleSheets can also be externally linked from a Content Delivery Network (C
101101
**HTML**
102102

103103
```html
104-
<!DOCTYPE html>
104+
<!doctype html>
105105
<html lang="en">
106106
<head>
107107
<link

demo/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en" theme="g10">
33
<head>
44
<meta charset="utf-8" />

examples/rollup/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
33
<head>
44
<meta charset="utf-8" />

examples/routify/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />

examples/sveltekit/src/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />

examples/vite/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />

scripts/build-languages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ export async function buildLanguages() {
4646
`src/languages/${name}.js`,
4747
`import register from "highlight.js/lib/languages/${name}";\n
4848
export const ${moduleName} = { name: "${name}", register };
49-
export default ${moduleName};\n`
49+
export default ${moduleName};\n`,
5050
);
5151

5252
await writeTo(
5353
`src/languages/${name}.d.ts`,
5454
`export { ${moduleName} } from "./";
55-
export { ${moduleName} as default } from "./";\n`
55+
export { ${moduleName} as default } from "./";\n`,
5656
);
5757
});
5858

scripts/build-styles.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ export async function buildStyles() {
3939
const content = await readFile(absPath, "utf-8");
4040
const exportee = `const ${moduleName} = \`<style>${content.replace(
4141
/\`/g,
42-
"\\`"
42+
"\\`",
4343
)}</style>\`;\n
4444
export default ${moduleName};\n`;
4545

4646
await writeTo(`src/styles/${name}.js`, exportee);
4747
await writeTo(
4848
`src/styles/${name}.d.ts`,
49-
`export { ${moduleName} as default } from "./";\n`
49+
`export { ${moduleName} as default } from "./";\n`,
5050
);
5151
await writeTo(`src/styles/${name}.css`, content);
5252
} else {
@@ -94,7 +94,7 @@ export async function buildStyles() {
9494
const base = styles
9595
.map(
9696
(style) =>
97-
`export { default as ${style.moduleName} } from './${style.name}';\n`
97+
`export { default as ${style.moduleName} } from './${style.name}';\n`,
9898
)
9999
.join("");
100100

scripts/utils/create-markdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import fs from "fs";
33

44
const pkg = JSON.parse(
5-
fs.readFileSync(new URL("../../package.json", import.meta.url), "utf8")
5+
fs.readFileSync(new URL("../../package.json", import.meta.url), "utf8"),
66
);
77

88
/**

svelte.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { optimizeImports } from "carbon-preprocess-svelte";
44
import fs from "fs";
55

66
const pkg = JSON.parse(
7-
fs.readFileSync(new URL("./package.json", import.meta.url), "utf8")
7+
fs.readFileSync(new URL("./package.json", import.meta.url), "utf8"),
88
);
99
const CONTENT = {
1010
NAME: pkg.name,
@@ -29,7 +29,7 @@ export default {
2929
Object.entries(CONTENT).map(([key, value]) => {
3030
code = code.replace(
3131
new RegExp("process.env." + key, "g"),
32-
JSON.stringify(value)
32+
JSON.stringify(value),
3333
);
3434
});
3535

tests/SvelteHighlight.test.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ describe("SvelteHighlight", () => {
2525
expect(document.head.querySelector("style")?.innerHTML).toBeTruthy();
2626

2727
expect(
28-
target.querySelector("#highlighted")?.innerHTML
28+
target.querySelector("#highlighted")?.innerHTML,
2929
).toMatchInlineSnapshot(
30-
'"&lt;span class=\\"hljs-keyword\\"&gt;const&lt;/span&gt; &lt;span class=\\"hljs-title function_\\"&gt;add&lt;/span&gt; = (&lt;span class=\\"hljs-params\\"&gt;a: number, b: number&lt;/span&gt;) =&amp;gt; a + b;"'
30+
'"&lt;span class=\\"hljs-keyword\\"&gt;const&lt;/span&gt; &lt;span class=\\"hljs-title function_\\"&gt;add&lt;/span&gt; = (&lt;span class=\\"hljs-params\\"&gt;a: number, b: number&lt;/span&gt;) =&amp;gt; a + b;"',
3131
);
3232

3333
expect(
34-
target.querySelector("#langtag")?.getAttribute("data-language")
34+
target.querySelector("#langtag")?.getAttribute("data-language"),
3535
).toEqual("svelte");
3636

3737
expect(
38-
target.querySelector("#highlight-auto")?.innerHTML
38+
target.querySelector("#highlight-auto")?.innerHTML,
3939
).toMatchInlineSnapshot(
40-
'"<code class=\\"hljs\\">const add = <span class=\\"hljs-function\\">(<span class=\\"hljs-params\\">a: <span class=\\"hljs-built_in\\">number</span>, b: <span class=\\"hljs-built_in\\">number</span></span>) =&gt;</span> a + b;</code>"'
40+
'"<code class=\\"hljs\\">const add = <span class=\\"hljs-function\\">(<span class=\\"hljs-params\\">a: <span class=\\"hljs-built_in\\">number</span>, b: <span class=\\"hljs-built_in\\">number</span></span>) =&gt;</span> a + b;</code>"',
4141
);
4242

4343
expect(target.querySelector("#highlight-auto-css")?.outerHTML)
@@ -48,15 +48,15 @@ describe("SvelteHighlight", () => {
4848
}</code></pre>"
4949
`);
5050
expect(target.querySelector("#inferred-language")?.innerHTML).toEqual(
51-
"css"
51+
"css",
5252
);
5353

5454
await userEvent.click(target.querySelector("button")!);
5555

5656
expect(
57-
target.querySelector("#highlight-auto")?.innerHTML
57+
target.querySelector("#highlight-auto")?.innerHTML,
5858
).toMatchInlineSnapshot(
59-
'"<code class=\\"hljs\\">&lt;<span class=\\"hljs-keyword\\">button</span> <span class=\\"hljs-keyword\\">on</span>:click&gt;Click me&lt;/<span class=\\"hljs-keyword\\">button</span>&gt;</code>"'
59+
'"<code class=\\"hljs\\">&lt;<span class=\\"hljs-keyword\\">button</span> <span class=\\"hljs-keyword\\">on</span>:click&gt;Click me&lt;/<span class=\\"hljs-keyword\\">button</span>&gt;</code>"',
6060
);
6161

6262
expect(target.querySelector("#line-numbers")?.innerHTML)

0 commit comments

Comments
 (0)