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/handlebars/newline/format.test.js
tests/format/handlebars/newline/format.test.js
runFormatTest(import.meta, ["glimmer"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/handlebars/text-wrap/format.test.js
tests/format/handlebars/text-wrap/format.test.js
runFormatTest(import.meta, ["glimmer"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/handlebars/element-node/format.test.js
tests/format/handlebars/element-node/format.test.js
runFormatTest( { importMeta: import.meta, /* Missed HTML void tags in glimmer parser https://github.com/glimmerjs/glimmer-vm/blob/ec5648f3895b9ab8d085523be001553746221449/packages/%40glimmer/syntax/lib/parser/tokenizer-event-handlers.ts#LL7C13-L7C13 https://github.com/glimmerjs/glimmer-vm/blob/ec5...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/handlebars/block-statement/format.test.js
tests/format/handlebars/block-statement/format.test.js
runFormatTest(import.meta, ["glimmer"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/handlebars/block-statement/print-width-5/format.test.js
tests/format/handlebars/block-statement/print-width-5/format.test.js
runFormatTest(import.meta, ["glimmer"], { printWidth: 5 });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/handlebars/sub-expression/format.test.js
tests/format/handlebars/sub-expression/format.test.js
runFormatTest(import.meta, ["glimmer"]); runFormatTest(import.meta, ["glimmer"], { singleQuote: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/handlebars/basics/format.test.js
tests/format/handlebars/basics/format.test.js
runFormatTest(import.meta, ["glimmer"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/handlebars/single-quote-option/format.test.js
tests/format/handlebars/single-quote-option/format.test.js
runFormatTest(import.meta, ["glimmer"], { singleQuote: false }); runFormatTest(import.meta, ["glimmer"], { singleQuote: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/handlebars/concat-statement/format.test.js
tests/format/handlebars/concat-statement/format.test.js
runFormatTest(import.meta, ["glimmer"]); runFormatTest(import.meta, ["glimmer"], { singleQuote: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/handlebars/attr-node/format.test.js
tests/format/handlebars/attr-node/format.test.js
runFormatTest(import.meta, ["glimmer"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/handlebars/html-whitespace-sensitivity/format.test.js
tests/format/handlebars/html-whitespace-sensitivity/format.test.js
import { outdent } from "outdent"; runFormatTest(import.meta, ["glimmer"], { htmlWhitespaceSensitivity: "ignore", printWidth: 40, }); runFormatTest( { importMeta: import.meta, snippets: [ // single // https://developer.mozilla.org/en-US/docs/Glossary/Whitespace#In_HTML ...["\u0009", "\u...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/case/format.test.js
tests/format/html/case/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/whitespace/format.test.js
tests/format/html/whitespace/format.test.js
import { outdent } from "outdent"; runFormatTest( { importMeta: import.meta, snippets: [ ...[ // https://developer.mozilla.org/en-US/docs/Glossary/Whitespace#In_HTML // single "\u0009", "\u000A", "\u000C", "\u000D", "\u0020", // many ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/symbol_entities/format.test.js
tests/format/html/symbol_entities/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/css/format.test.js
tests/format/html/css/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/magic_comments/format.test.js
tests/format/html/magic_comments/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/cursor/format.test.js
tests/format/html/cursor/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/pragma/format.test.js
tests/format/html/pragma/format.test.js
runFormatTest(import.meta, ["html"], { requirePragma: true }); runFormatTest(import.meta, ["html"], { insertPragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/front-matter/format.test.js
tests/format/html/front-matter/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/multiparser/css/format.test.js
tests/format/html/multiparser/css/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/multiparser/js/format.test.js
tests/format/html/multiparser/js/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/multiparser/unknown/format.test.js
tests/format/html/multiparser/unknown/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/multiparser/ts/format.test.js
tests/format/html/multiparser/ts/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/multiparser/markdown/format.test.js
tests/format/html/multiparser/markdown/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/prettier_ignore/format.test.js
tests/format/html/prettier_ignore/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/tags/format.test.js
tests/format/html/tags/format.test.js
runFormatTest(import.meta, ["html"]); runFormatTest(import.meta, ["html"], { printWidth: 1 }); runFormatTest(import.meta, ["html"], { printWidth: Number.POSITIVE_INFINITY }); runFormatTest(import.meta, ["html"], { htmlWhitespaceSensitivity: "strict" }); runFormatTest(import.meta, ["html"], { htmlWhitespaceSensitivity: ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/tags/object-prototype-properties/format.test.js
tests/format/html/tags/object-prototype-properties/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/js/format.test.js
tests/format/html/js/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/attributes/format.test.js
tests/format/html/attributes/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/attributes/no-semi/format.test.js
tests/format/html/attributes/no-semi/format.test.js
runFormatTest(import.meta, ["html"], { semi: false });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/attributes/iframe-allow-attribute/format.test.js
tests/format/html/attributes/iframe-allow-attribute/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/attributes/iframe-allow-attribute/small-print-width/format.test.js
tests/format/html/attributes/iframe-allow-attribute/small-print-width/format.test.js
runFormatTest(import.meta, ["html"], { printWidth: 1 });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/yaml/format.test.js
tests/format/html/yaml/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/handlebars-venerable/format.test.js
tests/format/html/handlebars-venerable/format.test.js
runFormatTest(import.meta, ["html"]); runFormatTest(import.meta, ["html"], { singleQuote: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/comments/format.test.js
tests/format/html/comments/format.test.js
runFormatTest(import.meta, ["html"]); runFormatTest(import.meta, ["html"], { printWidth: 1 }); runFormatTest(import.meta, ["html"], { printWidth: Number.POSITIVE_INFINITY }); runFormatTest(import.meta, ["html"], { htmlWhitespaceSensitivity: "strict" }); runFormatTest(import.meta, ["html"], { htmlWhitespaceSensitivity: ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/srcset/format.test.js
tests/format/html/srcset/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/single-attribute-per-line/format.test.js
tests/format/html/single-attribute-per-line/format.test.js
runFormatTest(import.meta, ["html"]); runFormatTest(import.meta, ["html"], { singleAttributePerLine: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/script/format.test.js
tests/format/html/script/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/cdata/format.test.js
tests/format/html/cdata/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/next_empty_line/format.test.js
tests/format/html/next_empty_line/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/basics/format.test.js
tests/format/html/basics/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/text/format.test.js
tests/format/html/text/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/aurelia/format.test.js
tests/format/html/aurelia/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/bracket-same-line/format.test.js
tests/format/html/bracket-same-line/format.test.js
runFormatTest(import.meta, ["html"], { bracketSameLine: true }); runFormatTest(import.meta, ["html"], { bracketSameLine: false });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/interpolation/format.test.js
tests/format/html/interpolation/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/svg/format.test.js
tests/format/html/svg/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/svg/embeded/format.test.js
tests/format/html/svg/embeded/format.test.js
runFormatTest(import.meta, ["html"]); runFormatTest(import.meta, ["html"], { embeddedLanguageFormatting: "off" });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/html/doctype_declarations/format.test.js
tests/format/html/doctype_declarations/format.test.js
runFormatTest(import.meta, ["html"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/literal-numeric-separator/test.js
tests/format/js/literal-numeric-separator/test.js
1_1 1_1.1_1 0o1_1 0o0_11 1.1_0_1e1 1.1_0_1E1 .1_1 0x1_1 0xa_1 0xA_1 0b01_1 0b0_1_1
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/literal-numeric-separator/format.test.js
tests/format/js/literal-numeric-separator/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/empty-statement/body.js
tests/format/js/empty-statement/body.js
with (a); if (1); else if (2); else; for (;;); while (1); for (var i in o); for (var i of o); do; while(1);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/empty-statement/no-newline.js
tests/format/js/empty-statement/no-newline.js
if (a) { b; ; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/empty-statement/format.test.js
tests/format/js/empty-statement/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/line-suffix-boundary/boundary.js
tests/format/js/line-suffix-boundary/boundary.js
`${ a + // a a } ${a // comment } ${b /* comment */} ${/* comment */ c /* comment */} ${// comment d //comment } ${// $FlowFixMe found when converting React.createClass to ES6 ExampleStory.getFragment('story')} `; <div> {ExampleStory.getFragment('story') // $FlowFixMe found when converting React.createClass to...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/line-suffix-boundary/format.test.js
tests/format/js/line-suffix-boundary/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/empty/format.test.js
tests/format/js/empty/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ ...[ // empty "", // empty lines "\n", "\n\n\n\n", // semicolons ";", ";;;;", ";\n", ";\n\n;;;\n", ].map((code) => ({ code, output: "" })), // comments ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/decorators/redux.js
tests/format/js/decorators/redux.js
@connect(mapStateToProps, mapDispatchToProps) export class MyApp extends React.Component {} @connect(state => ({ todos: state.todos })) export class Home extends React.Component {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/decorators/member-expression.js
tests/format/js/decorators/member-expression.js
[ class { @(decorator) method() {} }, class { @(decorator()) method() {} }, class { @(decorator?.()) method() {} }, class { @(decorators[0]) method() {} }, class { @decorators[0] method() {} }, class { @(decorators?.[0]) method() {} }, class { ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/decorators/classes.js
tests/format/js/decorators/classes.js
@deco class Foo {} @deco export class Bar {} @deco export default class Baz {} const foo = @deco class { // }; const bar = @deco class { // };
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/decorators/methods.js
tests/format/js/decorators/methods.js
class Yo { @foo("hello") async plop() {} @anotherDecoratorWithALongName("and a very long string as a first argument") async plip() {} @anotherDecoratorWithALongName("another very long string, but now inline") async plip() {} }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/decorators/mixed.js
tests/format/js/decorators/mixed.js
// https://github.com/prettier/prettier/issues/6747 @foo export default class MyComponent { @task *foo() { } }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/decorators/comments.js
tests/format/js/decorators/comments.js
var x = 100 @Hello({ a: 'a', // Comment is in the wrong place // test b: '2' }) class X { } @NgModule({ // Imports. imports: [ // Angular modules. BrowserModule, // App modules. CoreModule, SharedModule, ], }) export class AppModule {} // A @Foo() // B @Bar() // C export class Bar{...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/decorators/parens.js
tests/format/js/decorators/parens.js
class X { @(computed().volatile()) x }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/decorators/multiple.js
tests/format/js/decorators/multiple.js
const dog = class { @readonly @nonenumerable @doubledValue legs = 4; @readonly @nonenumerable @doubledValue eyes() {return 2} }; const foo = class { @multipleDecorators @inline @theyWontAllFitInOneline aVeryLongPropName = "A very long string as value" @multipleDecorators @inline @theyWontAllFitInO...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/decorators/mobx.js
tests/format/js/decorators/mobx.js
import {observable} from "mobx"; @observer class OrderLine { @observable price = 0; @observable amount = 1; constructor(price) { this.price = price; } @computed get total() { return this.price * this.amount; } @action.bound setPrice(price) { this.price = price; } @computed get total...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/decorators/multiline.js
tests/format/js/decorators/multiline.js
class Foo { @deco([ foo, bar ]) prop = value; @decorator([]) method() {} @decorator([ ]) method() {} @decorator({}) method() {} @decorator({ }) method() {} }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/decorators/format.test.js
tests/format/js/decorators/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"], { errors: { acorn: true, espree: true, flow: ["classes.js"], hermes: true }, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/decorators/class-expression/member-expression.js
tests/format/js/decorators/class-expression/member-expression.js
(@deco class Foo {}).name; (@deco class {}).name;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/decorators/class-expression/arguments.js
tests/format/js/decorators/class-expression/arguments.js
console.log(@deco class Foo {}) console.log(@deco class {})
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/decorators/class-expression/class-expression.js
tests/format/js/decorators/class-expression/class-expression.js
const a1 = (@deco class Foo {}); const a2 = (@deco class {}); (@deco class Foo {}); (@deco class {}); const b1 = [] ;(@deco class Foo {}) const b2 = [] ;(@deco class {}) // This is not a `ClassExpression` but `ClassDeclaration` @deco class Foo {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/decorators/class-expression/super-class.js
tests/format/js/decorators/class-expression/super-class.js
class Foo extends (@deco class Foo {}){} class Foo extends (@deco class {}){}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/decorators/class-expression/format.test.js
tests/format/js/decorators/class-expression/format.test.js
const errors = { flow: true, hermes: true, acorn: true, espree: true, }; runFormatTest(import.meta, ["babel", "flow", "typescript"], { errors }); runFormatTest(import.meta, ["babel", "flow", "typescript"], { semi: false, errors, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/new-expression/call.js
tests/format/js/new-expression/call.js
new (factory())() new factory()() new (factory())(factory())
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/new-expression/with-member-expression.js
tests/format/js/new-expression/with-member-expression.js
function functionName() { // indent to make the line break if (true) { this._aVeryLongVariableNameToForceLineBreak = new this.Promise( (resolve, reject) => { // do something } ); } } foo = new long_long_member.long_long_member.long_long_member.long_long_member.long_long_member(); new ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/new-expression/new_expression.js
tests/format/js/new-expression/new_expression.js
new (memoize.Cache || MapCache) new (typeof this == "function" ? this : Dict()) new (createObj()).prop(a()); new (x()``.y)(); new e[f().x].y(); new e[f()].y(); new (a().b)(); new (a().b().c)(); new (a``());
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/new-expression/format.test.js
tests/format/js/new-expression/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/throw_statement/binaryish.js
tests/format/js/throw_statement/binaryish.js
function f() { throw ( property.isIdentifier() && FUNCTIONS[property.node.name] && (object.isIdentifier(JEST_GLOBAL) || (callee.isMemberExpression() && shouldHoistExpression(object))) && FUNCTIONS[property.node.name](expr.get('arguments')) ); throw ( chalk.bold( 'No tests found...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/throw_statement/jsx.js
tests/format/js/throw_statement/jsx.js
function foo() { throw <Bar />; } function foo() { throw <Bar>baz</Bar>; } function foo() { throw <Bar baz={baz} />; } function foo() { throw <Bar baz={baz}>foo</Bar>; } function foo() { throw <></>; } function foo() { throw <>foo</>; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/throw_statement/comment.js
tests/format/js/throw_statement/comment.js
function x() { throw func2 //comment .bar(); } function f() { throw ( foo // comment .bar() ); } fn(function f() { throw ( foo // comment .bar() ); });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/throw_statement/format.test.js
tests/format/js/throw_statement/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/destructuring/issue-5988.js
tests/format/js/destructuring/issue-5988.js
const { foo, bar: bazAndSomething, quxIsLong } = someBigFunctionName("foo")("bar");
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/destructuring/destructuring.js
tests/format/js/destructuring/destructuring.js
const [one, two = null, three = null] = arr; a = ([s=1,]) => 1 const { children, ...props } = this.props const { user: { firstName, lastName } } = this.props; const { name: { first, last }, organisation: { address: { street: orgStreetAddress, postcode: orgPostcode } } } = user; function f({ data: { name } }) {} ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/destructuring/format.test.js
tests/format/js/destructuring/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"], { errors: { hermes: ["destructuring.js"], }, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/tab-width/nested-functions.spec.js
tests/format/js/tab-width/nested-functions.spec.js
const c = () => {}; function a() { return function b() { return () => { return function() { return c; } } } }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/tab-width/class.js
tests/format/js/tab-width/class.js
class A { method() { var x = 1; while(typeof x == "number" || typeof x == "string") { x = x + 1; if (true) x = ""; } var z = x; } }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/tab-width/format.test.js
tests/format/js/tab-width/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"]); runFormatTest(import.meta, ["babel", "flow", "typescript"], { tabWidth: 4 });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-comments/comment-inside.js
tests/format/js/multiparser-comments/comment-inside.js
// #9274 html` <div> ${this.set && this.set.artist /* avoid console errors if `this.set` is undefined */} </div> `; html`${ foo /* comment */ }`; html` ${ foo /* comment */ } `; graphql`${ foo /* comment */ }`; graphql` ${ foo /* comment */ } `; css`${ foo /* com...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-comments/comments.js
tests/format/js/multiparser-comments/comments.js
graphql.experimental` # required by createPaginationContainer fragment MobileHomeDiffsSearchList_search on DifferentialRevisionSearch { # required by createPaginationContainer name } `;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-comments/format.test.js
tests/format/js/multiparser-comments/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-comments/tagged.js
tests/format/js/multiparser-comments/tagged.js
foo(html // oops ` <div><p>bar</p>foo</div> `);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/non-strict/argument-name-clash.js
tests/format/js/non-strict/argument-name-clash.js
function f(a,a){return a}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/non-strict/keywords.js
tests/format/js/non-strict/keywords.js
var package = require('../package'); /** * My amazing comment */ function myFunction() { return 'StringGainz'; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/non-strict/octal-number.js
tests/format/js/non-strict/octal-number.js
0777
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/non-strict/format.test.js
tests/format/js/non-strict/format.test.js
runFormatTest(import.meta, ["babel", "typescript"], { errors: { typescript: ["octal-number.js"] }, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/explicit-resource-management/valid-using-as-identifier-expression-statement.js
tests/format/js/explicit-resource-management/valid-using-as-identifier-expression-statement.js
using reader = getReader()
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/explicit-resource-management/valid-using-as-identifier-for-of.js
tests/format/js/explicit-resource-management/valid-using-as-identifier-for-of.js
for (using of of); for (using.foo of of); for (using().foo of of); for (using``.foo of of);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/explicit-resource-management/valid-for-using-declaration.js
tests/format/js/explicit-resource-management/valid-for-using-declaration.js
async function f() { for (await using basic = reader();;); }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/explicit-resource-management/valid-await-using-comments.js
tests/format/js/explicit-resource-management/valid-await-using-comments.js
async function f() { { /*0*/await/*1*/using/*2*/b/*3*/=/*4*/f()/*5*/; } { /*0*/for/*1*/(/*2*/await/*3*/using/*4*/b/*5*/=/*6*/x/*7*/;/*8*/;/*9*/)/*10*/; } { /*0*/for/*1*/(/*2*/await/*3*/using/*4*/b/*5*/of/*6*/x/*7*/)/*8*/; } { /*0*/for/*1*/await/*2*/(/*3*/await/*4*/using/*5*/b/*6*/of/*7*/x/*8*/)/*9*/; } }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/explicit-resource-management/using-declarations.js
tests/format/js/explicit-resource-management/using-declarations.js
{ using /* 1 */ a = foo(), /* 2 */ b = foo() } for(using /* 1 */ a = foo(), /* 2 */ b = foo();;); for(using /* 1 */ foo of bar());
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/explicit-resource-management/valid-using-as-identifier-for-in.js
tests/format/js/explicit-resource-management/valid-using-as-identifier-for-in.js
for (using in []); for (using.foo in []); for (using().foo in []); for (using``.foo in []);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false