Skip to content

Commit

Permalink
chore(deps-dev): bump prettier from 2.8.8 to 3.0.0 (#1392)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump prettier from 2.8.8 to 3.0.0

Bumps [prettier](https://github.com/prettier/prettier) from 2.8.8 to 3.0.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.8.8...3.0.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Run Prettier on all files

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Queen Vinyl Da.i'gyu-Kazotetsu <[email protected]>
  • Loading branch information
dependabot[bot] and queengooborg authored Aug 2, 2023
1 parent 54496e3 commit 530294e
Show file tree
Hide file tree
Showing 33 changed files with 125 additions and 91 deletions.
20 changes: 10 additions & 10 deletions __tests__/console-utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ describe("console utils", () => {
});
test("String object", () => {
expect(consoleUtils.formatOutput(new String("foo"))).toBe(
'String { "foo" }'
'String { "foo" }',
);
});
test('Object.getPrototypeOf should return String { "" }', () => {
expect(consoleUtils.formatOutput(Object.getPrototypeOf("foo"))).toBe(
'String { "" }'
'String { "" }',
);
});
});
Expand All @@ -62,7 +62,7 @@ describe("console utils", () => {
});
test("Mixed array", () => {
expect(
consoleUtils.formatArray([1, "a", { x: 2 }, null, undefined])
consoleUtils.formatArray([1, "a", { x: 2 }, null, undefined]),
).toBe('1, "a", Object { x: 2 }, null, undefined');
});
});
Expand All @@ -73,12 +73,12 @@ describe("console utils", () => {
});
test("Int8Array", () => {
expect(consoleUtils.formatObject(new Int8Array(4))).toBe(
"Int8Array [0, 0, 0, 0]"
"Int8Array [0, 0, 0, 0]",
);
});
test("ArrayBuffer nested inside DataView", () => {
expect(consoleUtils.formatObject(new DataView(new ArrayBuffer()))).toBe(
"DataView {}"
"DataView {}",
);
});
test("Empty object", () => {
Expand All @@ -87,29 +87,29 @@ describe("console utils", () => {
describe("Simple object", () => {
test("string -> numbers", () => {
expect(consoleUtils.formatObject({ a: 1, b: 2, c: 3 })).toBe(
"Object { a: 1, b: 2, c: 3 }"
"Object { a: 1, b: 2, c: 3 }",
);
});
test("string -> mix of number and strings", () => {
expect(consoleUtils.formatObject({ a: 1, b: "something", c: 3 })).toBe(
'Object { a: 1, b: "something", c: 3 }'
'Object { a: 1, b: "something", c: 3 }',
);
});
test("string -> mix of number and null", () => {
expect(consoleUtils.formatObject({ a: 1, b: null, c: 3 })).toBe(
"Object { a: 1, b: null, c: 3 }"
"Object { a: 1, b: null, c: 3 }",
);
});
});
describe("Nested object", () => {
test("string -> numbers", () => {
expect(
consoleUtils.formatObject({ a: 1, b: { d: 2, e: 4 }, c: 3 })
consoleUtils.formatObject({ a: 1, b: { d: 2, e: 4 }, c: 3 }),
).toBe("Object { a: 1, b: Object { d: 2, e: 4 }, c: 3 }");
});
test("string -> mix of array and numbers", () => {
expect(consoleUtils.formatObject({ a: 1, b: [1, 2, 3], c: 3 })).toBe(
"Object { a: 1, b: Array [1, 2, 3], c: 3 }"
"Object { a: 1, b: Array [1, 2, 3], c: 3 }",
);
});
});
Expand Down
4 changes: 2 additions & 2 deletions __tests__/processor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe("processor", () => {
/* calling `processInclude` with css as the first argument will cause
`processCSSInclude` to be called internally */
expect(processor.processInclude("css", tmplSource, sourcePath)).toBe(
expectedOutput
expectedOutput,
);
});
});
Expand All @@ -47,7 +47,7 @@ describe("processor", () => {
/* calling `processInclude` with js as the first argument will cause
`processJSInclude` to be called internally */
expect(processor.processInclude("js", tmplSource, sourcePath)).toBe(
expectedOutput
expectedOutput,
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion __tests__/puppeteer-css-editor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe("CSS Editor", () => {
await page.click("#example-choice-list .example-choice:nth-child(2)");

const styleAttrVal = await page.$eval("#example-element", (elem) =>
elem.getAttribute("style")
elem.getAttribute("style"),
);
await expect(styleAttrVal).toBe(expectedStyleAttr);
});
Expand Down
2 changes: 1 addition & 1 deletion __tests__/puppeteer-js-editor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("JS Editor", () => {
await page.click("#execute");

const outputContent = await page.$eval(".output code", (elem) =>
elem.innerText.trim()
elem.innerText.trim(),
);
await expect(outputContent).toBe(expectedOutput);
});
Expand Down
12 changes: 6 additions & 6 deletions __tests__/puppeteer-tabbed-editor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ describe("Tabbed Editor", () => {

const htmlOutputContent = await iframeContent.$eval(
"#html-output",
trimInnerHTML
trimInnerHTML,
);
await expect(htmlOutputContent).toBe(expectedHTML);

const cssOutputContent = await iframeContent.$eval(
"#css-output",
trimInnerHTML
trimInnerHTML,
);
await expect(cssOutputContent).toBe(expectedCSS);
});
Expand All @@ -42,11 +42,11 @@ describe("Tabbed Editor", () => {
await page.click("#css");

const cssPanelClassAttr = await page.$eval("#css-panel", (elem) =>
elem.getAttribute("class")
elem.getAttribute("class"),
);

const htmlPanelClassAttr = await page.$eval("#html-panel", (elem) =>
elem.getAttribute("class")
elem.getAttribute("class"),
);

await expect(cssPanelClassAttr).toBe("");
Expand All @@ -61,11 +61,11 @@ describe("Tabbed Editor", () => {
await page.click("#html");

const cssPanelClassAttr = await page.$eval("#css-panel", (elem) =>
elem.getAttribute("class")
elem.getAttribute("class"),
);

const htmlPanelClassAttr = await page.$eval("#html-panel", (elem) =>
elem.getAttribute("class")
elem.getAttribute("class"),
);

await expect(cssPanelClassAttr).toBe("hidden");
Expand Down
4 changes: 3 additions & 1 deletion editor/css/editable-css.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@
border: 1px solid var(--border-primary);
border-radius: var(--elem-radius);
cursor: pointer;
transition: background-color 0.2s ease-out, border 0.2s ease-out;
transition:
background-color 0.2s ease-out,
border 0.2s ease-out;
}

.live .example-choice {
Expand Down
3 changes: 2 additions & 1 deletion editor/css/editor-libs/shadow-fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
http://robdodson.me/at-font-face-doesnt-work-in-shadow-dom/ */
@font-face {
font-family: "Fira Sans";
src: local("FiraSans-Regular"),
src:
local("FiraSans-Regular"),
url("/media/fonts/FiraSans-Regular.woff2") format("woff2");
}

Expand Down
4 changes: 3 additions & 1 deletion editor/css/editor-libs/tabby.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ button[role="tab"] {
border-top: 3px solid transparent;
font: var(--type-emphasis-m);
cursor: pointer;
transition: color 0.2s, background-color 0.2s;
transition:
color 0.2s,
background-color 0.2s;
}

button[role="tab"]:hover,
Expand Down
4 changes: 2 additions & 2 deletions editor/css/editor-libs/ui-fonts.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@font-face {
font-family: "Inter";
src: url("../../media/fonts/Inter.var.woff2")
format("woff2 supports variations"),
src:
url("../../media/fonts/Inter.var.woff2") format("woff2 supports variations"),
url("../../media/fonts/Inter.var.woff2") format("woff2-variations");
font-weight: 1 999;
font-stretch: 75% 100%;
Expand Down
4 changes: 2 additions & 2 deletions editor/js/editable-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import "../css/editable-css.css";
const exampleChoices = exampleChoiceList.querySelectorAll(".example-choice");
const exampleDeclarations = Array.from(
exampleChoices,
(choice) => choice.querySelector("code").textContent
(choice) => choice.querySelector("code").textContent,
);
const editorWrapper = document.getElementById("editor-wrapper");
const output = document.getElementById("output");
Expand Down Expand Up @@ -48,7 +48,7 @@ import "../css/editable-css.css";

applyCodeMirror(
exampleChoice.querySelector("pre"),
choiceCode.textContent
choiceCode.textContent,
);

choiceButton.setAttribute("type", "button");
Expand Down
4 changes: 2 additions & 2 deletions editor/js/editable-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import {
codeMirror = initCodeEditor(
editorContainer,
codeBlock.textContent,
languageJavaScript()
languageJavaScript(),
);
}

Expand Down Expand Up @@ -84,7 +84,7 @@ import {
}

output.addEventListener("animationend", () =>
output.classList.remove("fade-in")
output.classList.remove("fade-in"),
);
}

Expand Down
8 changes: 4 additions & 4 deletions editor/js/editable-wat.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import {
if (role === "tab") {
const activeTab = tabList.querySelector("button[aria-selected='true']");
const selectedPanel = document.getElementById(
eventTarget.getAttribute("aria-controls")
eventTarget.getAttribute("aria-controls"),
);

hideTabPanels();
Expand Down Expand Up @@ -161,14 +161,14 @@ import {
watCodeMirror = initCodeEditor(
watContainer,
watCodeBlock.textContent,
languageWAST()
languageWAST(),
);

const jsContainer = document.getElementById("js-editor");
jsCodeMirror = initCodeEditor(
jsContainer,
jsCodeBlock.textContent,
languageJavaScript()
languageJavaScript(),
);
}

Expand Down Expand Up @@ -252,7 +252,7 @@ import {
}

output.addEventListener("animationend", () =>
output.classList.remove("fade-in")
output.classList.remove("fade-in"),
);
}

Expand Down
4 changes: 2 additions & 2 deletions editor/js/editor-libs/codemirror-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export const languageHTML = memo(() => {
scopedHighlighting(
JS_HIGHLIGHT_STYLE_SPECS,
javascriptLanguage,
"Script"
"Script",
),
scopedHighlighting(HTML_HIGHLIGHT_STYLE_SPECS, language),
],
Expand All @@ -267,7 +267,7 @@ export function initCodeEditor(
editorContainer,
initialContent,
language,
options = { lineNumbers: true }
options = { lineNumbers: true },
) {
const extensions = [...BASE_EXTENSIONS, ...language.extensions];

Expand Down
4 changes: 2 additions & 2 deletions editor/js/editor-libs/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function addCSSEditorEventListeners(exampleChoiceList) {

cssEditorUtils.applyCode(
exampleChoiceParent.textContent,
exampleChoiceParent.closest(".example-choice")
exampleChoiceParent.closest(".example-choice"),
);
});

Expand Down Expand Up @@ -46,7 +46,7 @@ function addPostMessageListener() {
storeItem("theme", event.data.theme);
}
},
false
false,
);
}

Expand Down
4 changes: 2 additions & 2 deletions editor/js/editor-libs/tabby.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export function initEditor(editorTypes, defaultTab) {
editorData.editor = initCodeEditor(
editorData.code,
editorData.initialContent,
editorData.language
editorData.language,
);
}
}
Expand All @@ -152,7 +152,7 @@ export function registerEventListeners() {
if (role === "tab") {
const activeTab = tabList.querySelector('button[aria-selected="true"]');
const selectedPanel = document.getElementById(
eventTarget.getAttribute("aria-controls")
eventTarget.getAttribute("aria-controls"),
);

hideTabPanels();
Expand Down
2 changes: 1 addition & 1 deletion editor/js/editor-libs/telemetry.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function storeActionCounts(counts) {
JSON.stringify({
href: window.location.href,
counts,
})
}),
);
}

Expand Down
6 changes: 3 additions & 3 deletions editor/js/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ import "../css/tabbed-editor.css";
function setContent(propertyName, editorName) {
if (tabby.editors[editorName].editor) {
editorContents[propertyName] = getEditorContent(
tabby.editors[editorName].editor
tabby.editors[editorName].editor,
);
} else {
editorContents[propertyName] = "";
Expand Down Expand Up @@ -113,7 +113,7 @@ import "../css/tabbed-editor.css";
mceUtils.scrollToAnchors(
contentWindow,
contentBody,
contentBody.querySelectorAll('a[href^="#"]')
contentBody.querySelectorAll('a[href^="#"]'),
);

adjustFrameHeight();
Expand Down Expand Up @@ -178,7 +178,7 @@ import "../css/tabbed-editor.css";

if (editorType === "mathml" && !isMathMLSupported()) {
const notSupportedWarning = document.getElementById(
"warning-mathml-not-supported"
"warning-mathml-not-supported",
);
notSupportedWarning.classList.remove("hidden");
return;
Expand Down
2 changes: 1 addition & 1 deletion editor/tmpl/live-css-tmpl.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion editor/tmpl/live-js-tmpl.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion editor/tmpl/live-tabbed-tmpl.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
2 changes: 1 addition & 1 deletion editor/tmpl/live-wat-tmpl.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
Loading

0 comments on commit 530294e

Please sign in to comment.