repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/directives/test.js
tests/format/js/directives/test.js
"use strict"; function f1() { "use strict"; } function f2() { 'ngInject'; Object.assign(this, { $log, $uibModal }); } function f3() { 'ngInject'; Object.assign(this, { $log, $uibModal }); } function f4() { 'ngInject'; Object.assign(this, { $log, $uibModal }); }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/directives/last-line-1.js
tests/format/js/directives/last-line-1.js
'use strict';
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/directives/last-line-2.js
tests/format/js/directives/last-line-2.js
'use strict';
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/directives/last-line-0.js
tests/format/js/directives/last-line-0.js
'use strict';
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/directives/escaped.js
tests/format/js/directives/escaped.js
// Unnecessary escapes. (adapted from tests/quotes/strings.js) // Note that in directives, unnecessary escapes should be preserved. // See https://github.com/prettier/prettier/issues/1555 '\''; '\"'; "\'"; "\""; '\\'; '\a'; "hol\a" 'hol\a' "hol\\a (the a is not escaped)" 'hol\\a (the a is not escaped)' "multiple \a unn...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/directives/format.test.js
tests/format/js/directives/format.test.js
import { outdent } from "outdent"; runFormatTest( { importMeta: import.meta, snippets: [ { code: outdent` 'use strict'; // comment `, output: outdent` "use strict"; // comment ` + "\n", }, { co...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/directives/comments/format.test.js
tests/format/js/directives/comments/format.test.js
import { outdent } from "outdent"; const indent = (text) => text .split("\n") .map((line) => (line ? ` ${line}` : line)) .join("\n"); const snippets = [ "/* comment */ 'use strict';", "'use strict' /* comment */;", outdent` // comment 'use strict'; `, outdent` 'use strict' // comme...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/big-int/literal.js
tests/format/js/big-int/literal.js
100n 9223372036854775807n 0o16432n 0O16432n 0xFFF123n 0XFFF123n 0b101011101n 0B101011101n 200_000n 0x0000_000An 0b0111_1111n
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/big-int/format.test.js
tests/format/js/big-int/format.test.js
runFormatTest(import.meta, ["babel", "typescript", "flow"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/dynamic-import/import-phase.js
tests/format/js/dynamic-import/import-phase.js
import.source(`data:text/javascript, console.log("RUN"); `) import.source(String.raw`data:text/javascript, console.log("RUN"); `)
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/dynamic-import/test.js
tests/format/js/dynamic-import/test.js
import("module.js"); import("module.js").then((a) => a);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/dynamic-import/template-literal.js
tests/format/js/dynamic-import/template-literal.js
module = await import(`data:text/javascript, console.log("RUN"); `); module = await import(String.raw`data:text/javascript, console.log("RUN"); `);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/dynamic-import/assertions.js
tests/format/js/dynamic-import/assertions.js
import("./foo.json", { assert: { type: "json" } });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/dynamic-import/format.test.js
tests/format/js/dynamic-import/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"], { errors: { flow: ["template-literal.js", "import-phase.js"], hermes: ["template-literal.js", "import-phase.js"], acorn: ["import-phase.js"], espree: ["import-phase.js"], meriyah: ["import-phase.js"], }, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-html/lit-html.js
tests/format/js/multiparser-html/lit-html.js
import { LitElement, html } from '@polymer/lit-element'; class MyElement extends LitElement { static get properties() { return { mood: { type: String } }; } constructor() { super(); this.mood = 'happy'; } render() { return html` <style > ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-html/issue-10691.js
tests/format/js/multiparser-html/issue-10691.js
export default function include_photoswipe( gallery_selector = ".my-gallery" ) { return /* HTML */ ` <script> window.addEventListener("load", () => initPhotoSwipeFromDOM("${gallery_selector}") ); </script>`; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-html/format.test.js
tests/format/js/multiparser-html/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"]); runFormatTest(import.meta, ["babel", "flow", "typescript"], { htmlWhitespaceSensitivity: "ignore", });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-html/html-template-literals.js
tests/format/js/multiparser-html/html-template-literals.js
const nestedFun = /* HTML */ `${outerExpr(1)} <script> const tpl = html\`<div>\${innerExpr(1)} ${outerExpr(2)}</div>\`; </script>`; const nestedFun2 = /* HTML */ `${outerExpr(1)} <script> const tpl = html\`\\n<div>\${innerExpr(1)} ${outerExpr(2)}</div>\\n\`; </script>`; setFoo( html`<div>one</div> ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-html/language-comment/not-language-comment.js
tests/format/js/multiparser-html/language-comment/not-language-comment.js
const html /* HTML */ = `<DIV> </DIV>`;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-html/language-comment/format.test.js
tests/format/js/multiparser-html/language-comment/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-text/format.test.js
tests/format/js/multiparser-text/format.test.js
runFormatTest(import.meta, ["babel", "flow"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-text/text.js
tests/format/js/multiparser-text/text.js
a = { viewer: graphql` fragment x on Viewer { y(named: [ "projects_feedback_ids" # PROJECTS_FEEDBACK_IDS ]) { name } } `, }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/function-first-param/function_expression.js
tests/format/js/function-first-param/function_expression.js
//https://github.com/prettier/prettier/issues/3002 beep.boop().baz("foo", { some: { thing: { nested: true } } }, { another: { thing: true } }, () => {}); //https://github.com/prettier/prettier/issues/2984 db.collection('indexOptionDefault').createIndex({ a: 1 }, { indexOptionDefaults: true, w: 2...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/function-first-param/format.test.js
tests/format/js/function-first-param/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/object-prop-break-in/short-keys.js
tests/format/js/object-prop-break-in/short-keys.js
var obj = { // an entry with a very long string x: "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890", url: 'http://example.com/12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890', longName:...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/object-prop-break-in/test.js
tests/format/js/object-prop-break-in/test.js
const a = classnames({ "some-prop": this.state.longLongLongLongLongLongLongLongLongTooLongProp }); const b = classnames({ "some-prop": this.state.longLongLongLongLongLongLongLongLongTooLongProp === true }); const c = classnames({ "some-prop": [ "foo", "bar", "foo", "bar", "foo", "bar", "foo", "bar", "foo" ] });...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/object-prop-break-in/long-value.js
tests/format/js/object-prop-break-in/long-value.js
const x = { "ABC": "12345678901234567890123456789012345678901234567890123456789012345678901234567890" };
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/object-prop-break-in/comment.js
tests/format/js/object-prop-break-in/comment.js
function foo() { return { // this comment causes the problem bar: baz() + 1 }; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/object-prop-break-in/format.test.js
tests/format/js/object-prop-break-in/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/new-target/outside-functions.js
tests/format/js/new-target/outside-functions.js
const x = new.target;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/new-target/range.js
tests/format/js/new-target/range.js
class A { constructor() { const <<<PRETTIER_RANGE_START>>>x = new.target<<<PRETTIER_RANGE_END>>>; } }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/new-target/format.test.js
tests/format/js/new-target/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"], { errors: { acorn: true, espree: true, flow: true, hermes: true, }, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/yield/jsx-without-parenthesis.js
tests/format/js/yield/jsx-without-parenthesis.js
function* f() { yield <div>generator</div> yield <div><p>generator</p></div> }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/yield/jsx.js
tests/format/js/yield/jsx.js
function* f() { yield (<div>generator</div>) yield (<div><p>generator</p></div>) }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/yield/conditional.js
tests/format/js/yield/conditional.js
function* f1() { a = (yield) ? 1 : 1; a = yield 1 ? 1 : 1; a = (yield 1) ? 1 : 1; a = 1 ? yield : yield; a = 1 ? yield 1 : yield 1; } function* f2() { a = yield* 1 ? 1 : 1; a = (yield* 1) ? 1 : 1; a = 1 ? yield* 1 : yield* 1; } async function f3() { a = await 1 ? 1 : 1; a = (await 1) ? 1 : 1; a ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/yield/arrow.js
tests/format/js/yield/arrow.js
function *f() { (yield a => a); (yield async a => a); (yield async (a) => a); }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/yield/format.test.js
tests/format/js/yield/format.test.js
runFormatTest(import.meta, ["babel", "typescript"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/try/empty.js
tests/format/js/try/empty.js
try { } catch (e) { } finally { } try { } catch (e) { }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/try/try.js
tests/format/js/try/try.js
try /* missing comment */ {;} finally {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/try/catch.js
tests/format/js/try/catch.js
try {} catch( // comment foo ) {} try {} catch(foo //comment ) {} try {} catch( /* comment */ foo ) {} try {} catch( foo /* comment */ ) {} try {} catch( foo /* comment */ ) {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/try/format.test.js
tests/format/js/try/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/optional-chaining/as-key.js
tests/format/js/optional-chaining/as-key.js
const a = { [a?.b]: 1, [a?.b]() {}, [a?.b]:function() {}, *[a?.b]() {}, [a?.b]:function*() {}, async[a?.b]() {}, [a?.b]:async function() {}, async*[a?.b]() {}, [a?.b]:async function*() {}, }; class A { [a?.b]= 1; [a?.b]() {}; [a?.b]=function() {}; *[a?.b]() {}; [a?.b]=function*() {}; ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/optional-chaining/comments.js
tests/format/js/optional-chaining/comments.js
function foo() { return a .b() .c() // Comment ?.d() } fooBar .doSomething("Hello World") .doAnotherThing("Foo", { foo: bar }) // App configuration. .doOneMoreThing(config) ?.run(() => console.log("Bar")); bigDeal .doSomething("Hello World") // Hello world ?.doAnotherThing("Foo",...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/optional-chaining/chaining.js
tests/format/js/optional-chaining/chaining.js
var street = user.address?.street var fooValue = myForm.querySelector('input[name=foo]')?.value obj?.prop; obj?.[expr]; func?.(...args); a?.(); a?.[++x]; a?.b.c(++x).d; a?.b[3].c?.(x).d; a?.b.c; (a?.b).c; a?.b?.c; delete a?.b; a?.b[3].c?.(x).d.e?.f[3].g?.(y).h; (a?.b).c(); (a?.b[c]).c(); (a?.b)?.c.d?.e; (a ? b : c...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/optional-chaining/format.test.js
tests/format/js/optional-chaining/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/optional-chaining/eval.js
tests/format/js/optional-chaining/eval.js
// https://github.com/babel/babel/pull/11850 let foo; /* indirect eval calls */ eval?.(foo); (eval)?.(foo); eval?.()(); eval?.().foo; /* direct eval calls */ eval()?.(); eval()?.foo; /* plain function calls */ foo.eval?.(foo); eval.foo?.(foo);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/spread/spread.js
tests/format/js/spread/spread.js
const foo = { ...(a || b) }; const foo2 = { ...a || b }; const foo3 = { ...(a ? b : c) }; async () => ({ ...(await foo) });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/spread/format.test.js
tests/format/js/spread/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/functional-composition/mongo_connect.js
tests/format/js/functional-composition/mongo_connect.js
MongoClient.connect( "mongodb://localhost:27017/posts", (err, db) => { assert.equal(null, err); db.close(); } );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/functional-composition/ramda_compose.js
tests/format/js/functional-composition/ramda_compose.js
var classyGreeting = (firstName, lastName) => "The name's " + lastName + ", " + firstName + " " + lastName; var yellGreeting = R.compose(R.toUpper, classyGreeting); yellGreeting("James", "Bond"); //=> "THE NAME'S BOND, JAMES BOND" R.compose(Math.abs, R.add(1), R.multiply(2))(-4); //=> 7 // get :: String -> Object ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/functional-composition/lodash_flow_right.js
tests/format/js/functional-composition/lodash_flow_right.js
import { flowRight } from "lodash"; const foo = flowRight( x => x + 1, x => x * 3, x => x - 6, ); foo(6); import * as _ from "lodash"; const bar = _.flowRight( x => x + 1, x => x * 3, x => x - 6, ); bar(6);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/functional-composition/pipe-function-calls-with-comments.js
tests/format/js/functional-composition/pipe-function-calls-with-comments.js
// input with some comments added to avoid reformatting (() => { pipe( // add a descriptive comment here timelines, everyCommitTimestamps, A.sort(ordDate), A.head ); pipe( // add a descriptive comment here serviceEventFromMessage(msg), TE.chain( flow( // add a descr...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/functional-composition/redux_compose.js
tests/format/js/functional-composition/redux_compose.js
import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import DevTools from './containers/DevTools'; import reducer from '../reducers'; const store = createStore( reducer, compose( applyMiddleware(thunk), DevTools.instrument() ) )
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/functional-composition/redux_connect.js
tests/format/js/functional-composition/redux_connect.js
const ArtistInput = connect(mapStateToProps, mapDispatchToProps, mergeProps)(Component);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/functional-composition/rxjs_pipe.js
tests/format/js/functional-composition/rxjs_pipe.js
import { range } from 'rxjs/observable/range'; import { map, filter, scan } from 'rxjs/operators'; const source$ = range(0, 10); source$.pipe( filter(x => x % 2 === 0), map(x => x + x), scan((acc, x) => acc + x, 0) ) .subscribe(x => console.log(x))
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/functional-composition/functional_compose.js
tests/format/js/functional-composition/functional_compose.js
compose( sortBy(x => x), flatten, map(x => [x, x*2]) ); somelib.compose( sortBy(x => x), flatten, map(x => [x, x*2]) ); composeFlipped( sortBy(x => x), flatten, map(x => [x, x*2]) ); somelib.composeFlipped( sortBy(x => x), flatten, map(x => [x, x*2]) ); // no regression (#4602) const hasValu...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/functional-composition/ramda_pipe.js
tests/format/js/functional-composition/ramda_pipe.js
var f = R.pipe(Math.pow, R.negate, R.inc); f(3, 4); // -(3^4) + 1 // parseJson :: String -> Maybe * // get :: String -> Object -> Maybe * // getStateCode :: Maybe String -> Maybe String var getStateCode = R.pipeK( parseJson, get("user"), get("address"), get("state"), R.compose(Maybe.of, R.toUpper) ); g...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/functional-composition/lodash_flow.js
tests/format/js/functional-composition/lodash_flow.js
import { flow } from "lodash"; const foo = flow( x => x + 1, x => x * 3, x => x - 6, ); foo(6); import * as _ from "lodash"; const bar = _.flow( x => x + 1, x => x * 3, x => x - 6, ); bar(6);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/functional-composition/pipe-function-calls.js
tests/format/js/functional-composition/pipe-function-calls.js
(() => { pipe( timelines, everyCommitTimestamps, A.sort(ordDate), A.head ); pipe( serviceEventFromMessage(msg), TE.chain( flow( publishServiceEvent(analytics), TE.mapLeft(nackFromError) ) ) )() .then(messageResponse(logger, msg)) .catch((err) => {...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/functional-composition/reselect_createselector.js
tests/format/js/functional-composition/reselect_createselector.js
import { createSelector } from 'reselect'; const foo = createSelector( getIds, getObjects, (ids, objects) => ids.map(id => objects[id]) ); const bar = createSelector( [getIds, getObjects], (ids, objects) => ids.map(id => objects[id]) );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/functional-composition/format.test.js
tests/format/js/functional-composition/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"], { errors: { acorn: [], espree: [], }, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/functional-composition/gobject_connect.js
tests/format/js/functional-composition/gobject_connect.js
button.connect( "clicked", () => doSomething() ); app.connect( "activate", async () => { await data.load(); win.show_all(); } );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/module-blocks/module-blocks.js
tests/format/js/module-blocks/module-blocks.js
module { await 3 }; class B { #p() { module { class C { [this.#p]; } }; } } const m = module { export const foo = "foo"; export { foo }; }; module { export { foo } }; const m = module {}; const worker = new Worker(module { export const foo = "foo"; }); let m = module { module { ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/module-blocks/non-module-blocks.js
tests/format/js/module-blocks/non-module-blocks.js
const m = module {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/module-blocks/comments.js
tests/format/js/module-blocks/comments.js
const m = /*A1*/ module /*A2*/ { /*A3*/ /*A4*/ export const foo = "foo"; export { foo }; /*A5*/ /*A6*/ }/*A7*/;/*A8*/ const m2 = module/* B1 */{ /* B2 */ };
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/module-blocks/range.js
tests/format/js/module-blocks/range.js
let moduleBlock = module { <<<PRETTIER_RANGE_START>>>export let y = 1; }; fo<<<PRETTIER_RANGE_END>>>o(module { export let foo = "foo"; })
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/module-blocks/format.test.js
tests/format/js/module-blocks/format.test.js
const errors = { acorn: ["module-blocks.js", "range.js", "comments.js"], espree: ["module-blocks.js", "range.js", "comments.js"], meriyah: ["module-blocks.js", "range.js", "comments.js"], oxc: ["module-blocks.js", "range.js", "comments.js"], "oxc-ts": ["module-blocks.js", "range.js", "comments.js"], }; runFo...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/module-blocks/quote-props/worker.js
tests/format/js/module-blocks/quote-props/worker.js
worker = new Worker(module { onmessage = function({data}) { let mod = import(data); postMessage(mod.fn()); } }, {type: "module"}); worker = new Worker(module { onmessage = function({data}) { let mod = import(data); postMessage(mod.fn()); } }, {'type': "module"}); worker = new Worker(module { ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/module-blocks/quote-props/format.test.js
tests/format/js/module-blocks/quote-props/format.test.js
runFormatTest(import.meta, ["babel"], { errors: { acorn: ["worker.js"], espree: ["worker.js"], meriyah: ["worker.js"], oxc: ["worker.js"], "oxc-ts": ["worker.js"], }, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/export-star/export-star.js
tests/format/js/export-star/export-star.js
export * from "mod";
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/export-star/export-star-as-default.js
tests/format/js/export-star/export-star-as-default.js
export * as default from 'foo'
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/export-star/export-star-as-string2.js
tests/format/js/export-star/export-star-as-string2.js
export * as "foo" from 'foo'
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/export-star/export-star-as-reserved-word.js
tests/format/js/export-star/export-star-as-reserved-word.js
export * as function from 'foo' export * as const from 'foo' export * as as from 'foo' export * as from from 'foo'
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/export-star/export-star-as-string.js
tests/format/js/export-star/export-star-as-string.js
export * as 'foo' from 'foo'
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/export-star/format.test.js
tests/format/js/export-star/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"], { errors: { flow: ["export-star-as-string.js", "export-star-as-string2.js"], hermes: ["export-star-as-string.js", "export-star-as-string2.js"], }, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/export-star/export-star-as.js
tests/format/js/export-star/export-star-as.js
export * as ns from "mod";
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/logical-expressions/in-unary-expression.js
tests/format/js/logical-expressions/in-unary-expression.js
// https://github.com/estree/estree/blob/96fee942ecc2b3b9d3c34163ec142b75daf4cca1/es5.md#unaryoperator [ !( // octahedralAnteaterGenerator || // stellatedFossilProcessor ), +( // octahedralAnteaterGenerator && // stellatedFossilProcessor ), typeof ( // octahedralAnteaterGenerator ?? // stellat...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/logical-expressions/logical-expression-operators.js
tests/format/js/logical-expressions/logical-expression-operators.js
// Same operators do not require parens (foo && bar) && baz; foo && (bar && baz); foo && ((bar && baz) && qux); foo && (bar && (baz && qux)); foo && (bar && ((baz && qux) && xyz)); foo && (bar && (baz && (qux && xyz))); (foo || bar) || baz; foo || (bar || baz); foo || ((bar || baz) || qux); foo || (bar || (baz || qux)...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/logical-expressions/issue-7024.js
tests/format/js/logical-expressions/issue-7024.js
const radioSelectedAttr = (isAnyValueSelected && node.getAttribute(radioAttr.toLowerCase()) === radioValue) || ((!isAnyValueSelected && values[a].default === true) || a === 0);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/logical-expressions/format.test.js
tests/format/js/logical-expressions/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/logical-expressions/multiple-comments/17192.js
tests/format/js/logical-expressions/multiple-comments/17192.js
ErrorLike = SerializedProps && // cause is a new addition to Error that is not yet available in all runtimes. We have added // it to try and pinpoint additional reasoning for failures such as Node's fetch. // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause { cause:...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/logical-expressions/multiple-comments/format.test.js
tests/format/js/logical-expressions/multiple-comments/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"]); runFormatTest(import.meta, ["babel", "flow", "typescript"], { experimentalOperatorPosition: "start", });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/do/do.js
tests/format/js/do/do.js
const envSpecific = { domain: do { if(env === 'production') 'https://abc.mno.com/'; else if(env === 'development') 'http://localhost:4000'; } }; let x = do { let tmp = f(); tmp * tmp + 1 }; let y = do { if (foo()) { f() } else if (bar()) { g() } else { h() } }; function foo() { retu...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/do/call-arguments.js
tests/format/js/do/call-arguments.js
// from https://github.com/babel/babel/pull/13122/ expect( do { var bar = "foo"; if (!bar) throw new Error( "unreachable" ) bar; } ).toBe("foo"); expect(bar).toBe("foo"); var x = do { var bar = "foo"; if (!bar) throw new Error( "unreachable" ) bar; }; expect( do { var bar =...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/do/format.test.js
tests/format/js/do/format.test.js
runFormatTest(import.meta, ["babel"], { errors: { acorn: true, espree: true, meriyah: true, oxc: true, "oxc-ts": true, }, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/for-of/async-identifier.js
tests/format/js/for-of/async-identifier.js
for ((async) of []); for ((foo) of async); for ((foo) of []) async; async function f() { for await (async of []); for await ((async) of []); for await ((foo) of async); for await ((foo) of []) async; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/for-of/format.test.js
tests/format/js/for-of/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"], { errors: { meriyah: ["async-identifier.js"] }, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/yaml/flow-mapping/format.test.js
tests/format/yaml/flow-mapping/format.test.js
runFormatTest(import.meta, ["yaml"]); runFormatTest(import.meta, ["yaml"], { tabWidth: 4 }); runFormatTest(import.meta, ["yaml"], { bracketSpacing: false });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/yaml/flow-mapping/trailing-comma/format.test.js
tests/format/yaml/flow-mapping/trailing-comma/format.test.js
runFormatTest(import.meta, ["yaml"]); runFormatTest(import.meta, ["yaml"], { trailingComma: "none" }); runFormatTest(import.meta, ["yaml"], { trailingComma: "es5" }); runFormatTest(import.meta, ["yaml"], { trailingComma: "all" });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/yaml/flow-mapping/comments/format.test.js
tests/format/yaml/flow-mapping/comments/format.test.js
runFormatTest(import.meta, ["yaml"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/yaml/mapping/format.test.js
tests/format/yaml/mapping/format.test.js
runFormatTest(import.meta, ["yaml"]); runFormatTest(import.meta, ["yaml"], { tabWidth: 4 });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/yaml/mapping/duplicated-keys/format.test.js
tests/format/yaml/mapping/duplicated-keys/format.test.js
runFormatTest(import.meta, ["yaml"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/yaml/mapping/long-key/format.test.js
tests/format/yaml/mapping/long-key/format.test.js
runFormatTest(import.meta, ["yaml"]); runFormatTest(import.meta, ["yaml"], { proseWrap: "always" });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/yaml/inline-extend-syntax/format.test.js
tests/format/yaml/inline-extend-syntax/format.test.js
runFormatTest(import.meta, ["yaml"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/yaml/json-test-suite/format.test.js
tests/format/yaml/json-test-suite/format.test.js
import { parsing, transform } from "json-test-suite"; const SKIP = new Set([ // Prettier doesn't support other encodings than utf8 "i_string_utf16LE_no_BOM.json", // Maximum call stack size exceeded "i_structure_500_nested_arrays.json", ]); const cases = [...parsing, ...transform] .map(({ name, input, erro...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/yaml/block-literal/format.test.js
tests/format/yaml/block-literal/format.test.js
import { outdent } from "outdent"; const snippets = [ { code: outdent` block_with_ideographic_space: | \u{3000}x `, output: outdent` block_with_ideographic_space: | \u{3000}x `, }, ].map((test) => ({ ...test, output: test.output + "\n" })); runFormatTest({ importMeta: i...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/yaml/root/format.test.js
tests/format/yaml/root/format.test.js
runFormatTest({ importMeta: import.meta, snippets: [""] }, ["yaml"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/yaml/home-assistant/format.test.js
tests/format/yaml/home-assistant/format.test.js
runFormatTest(import.meta, ["yaml"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/yaml/require-pragma/format.test.js
tests/format/yaml/require-pragma/format.test.js
runFormatTest(import.meta, ["yaml"], { requirePragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/yaml/quote/format.test.js
tests/format/yaml/quote/format.test.js
runFormatTest(import.meta, ["yaml"]); runFormatTest(import.meta, ["yaml"], { singleQuote: true }); runFormatTest(import.meta, ["yaml"], { proseWrap: "never" }); runFormatTest(import.meta, ["yaml"], { proseWrap: "always" });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false