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/export-default/escaped/format.test.js
tests/format/js/export-default/escaped/format.test.js
runFormatTest(import.meta, ["babel", "flow"], { errors: { acorn: true, espree: true, meriyah: true, flow: true, hermes: 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/import-meta/import_meta.js
tests/format/js/import-meta/import_meta.js
const x = import.meta; const url = import.meta.url; import.meta; import.meta.url; import.meta.couldBeMutable = true;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/import-meta/format.test.js
tests/format/js/import-meta/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/arrow-call/class-property.js
tests/format/js/arrow-call/class-property.js
const composition = (ViewComponent, ContainerComponent) => class extends React.Component { static propTypes = {}; };
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrow-call/arrow_call.js
tests/format/js/arrow-call/arrow_call.js
const testResults = results.testResults.map(testResult => formatResult(testResult, formatter, reporter) ); it('mocks regexp instances', () => { expect( () => moduleMocker.generateFromMetadata(moduleMocker.getMetadata(/a/)), ).not.toThrow(); }); expect(() => asyncRequest({ url: "/test-endpoint" })) .toThro...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrow-call/format.test.js
tests/format/js/arrow-call/format.test.js
const errors = {}; runFormatTest(import.meta, ["babel", "flow", "typescript"], { trailingComma: "es5", errors, }); runFormatTest(import.meta, ["babel", "flow", "typescript"], { trailingComma: "all", errors, }); runFormatTest(import.meta, ["babel", "flow", "typescript"], { arrowParens: "always", errors, });...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/shebang/shebang-newline.js
tests/format/js/shebang/shebang-newline.js
#!/usr/bin/env node function a() {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/shebang/shebang.js
tests/format/js/shebang/shebang.js
#!/usr/bin/env node function a() {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/shebang/format.test.js
tests/format/js/shebang/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ { name: "Empty file with shebang", code: "#!/usr/bin/env node", }, { name: "Empty file with shebang", code: "#!/usr/bin/env node\n", }, ], }, ["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-property-comment/after-key.js
tests/format/js/object-property-comment/after-key.js
let a = { a /* comment */: () => 1 }; let b = { "a" /* comment */: () => 1 };
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/object-property-comment/format.test.js
tests/format/js/object-property-comment/format.test.js
runFormatTest(import.meta, ["babel", "flow"], { errors: { acorn: ["comment.js"], espree: ["comment.js"] }, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/object-colon-bug/bug.js
tests/format/js/object-colon-bug/bug.js
const foo = { bar: props.bar ? props.bar : noop, baz: props.baz }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/object-colon-bug/format.test.js
tests/format/js/object-colon-bug/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"], { printWidth: 35 });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/end-of-line/example.js
tests/format/js/end-of-line/example.js
function f() { console.log("testing line endings"); }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/end-of-line/format.test.js
tests/format/js/end-of-line/format.test.js
runFormatTest(import.meta, ["babel"], { endOfLine: "lf" }); runFormatTest(import.meta, ["babel"], { endOfLine: "cr" }); runFormatTest(import.meta, ["babel"], { endOfLine: "crlf" });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/optional-chaining-assignment/invalid-fn-param-assign.js
tests/format/js/optional-chaining-assignment/invalid-fn-param-assign.js
function f(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-assignment/valid-complex-case.js
tests/format/js/optional-chaining-assignment/valid-complex-case.js
let?.()[a] =1; let?.[a] = 1;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/optional-chaining-assignment/invalid-fn-param.js
tests/format/js/optional-chaining-assignment/invalid-fn-param.js
function f(a?.b) {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/optional-chaining-assignment/valid-parenthesized.js
tests/format/js/optional-chaining-assignment/valid-parenthesized.js
(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-assignment/invalid-fn-param-arrow.js
tests/format/js/optional-chaining-assignment/invalid-fn-param-arrow.js
(a?.b) => {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/optional-chaining-assignment/valid-lhs-eq.js
tests/format/js/optional-chaining-assignment/valid-lhs-eq.js
a?.b.c = d;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/optional-chaining-assignment/invalid-inc-prefix.js
tests/format/js/optional-chaining-assignment/invalid-inc-prefix.js
++a?.b;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/optional-chaining-assignment/invalid-for-of.js
tests/format/js/optional-chaining-assignment/invalid-for-of.js
for (a?.b of x);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/optional-chaining-assignment/invalid-inc-postfix.js
tests/format/js/optional-chaining-assignment/invalid-inc-postfix.js
a?.b++;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/optional-chaining-assignment/invalid-for-in.js
tests/format/js/optional-chaining-assignment/invalid-for-in.js
for (a?.b in x);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/optional-chaining-assignment/invalid-for-await-of.js
tests/format/js/optional-chaining-assignment/invalid-for-await-of.js
for (a?.b of x);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/optional-chaining-assignment/valid-lhs-plus-eq.js
tests/format/js/optional-chaining-assignment/valid-lhs-plus-eq.js
a?.b.c += d;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/optional-chaining-assignment/invalid-destructuring-arr.js
tests/format/js/optional-chaining-assignment/invalid-destructuring-arr.js
[a?.b] = [];
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/optional-chaining-assignment/format.test.js
tests/format/js/optional-chaining-assignment/format.test.js
const invalidSyntaxTests = [ "invalid-destructuring-arr.js", "invalid-destructuring-obj.js", "invalid-fn-param-arrow.js", "invalid-fn-param.js", "invalid-fn-param-assign.js", "invalid-for-await-of.js", "invalid-for-in.js", "invalid-for-of.js", "invalid-inc-postfix.js", "invalid-inc-prefix.js", ]; 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-assignment/invalid-destructuring-obj.js
tests/format/js/optional-chaining-assignment/invalid-destructuring-obj.js
({ prop: a?.b } = {});
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/return-outside-function/return-outside-function.js
tests/format/js/return-outside-function/return-outside-function.js
return someVeryLongStringA && someVeryLongStringB && someVeryLongStringC && someVeryLongStringD
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/return-outside-function/format.test.js
tests/format/js/return-outside-function/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/throw_expressions/throw_expression.js
tests/format/js/throw_expressions/throw_expression.js
function save(filename = throw new TypeError("Argument required")) {} lint(ast, { with: () => throw new Error("avoid using 'with' statements.") }); function getEncoder(encoding) { const encoder = encoding === "utf8" ? new UTF8Encoder() : encoding === "utf16le" ? new UTF16Encoder(false) ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/throw_expressions/format.test.js
tests/format/js/throw_expressions/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/object-multiline/multiline.js
tests/format/js/object-multiline/multiline.js
const a = { name1: 'value1', name2: 'value2', }; const b = { name1: 'value1', name2: 'value2', }; const c = { name1: 'value1', name2: 'value2', }; const d = { name1: 'value1', name2: 'value2', }; const e = { name1: 'value1', name2: 'value2', };
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/object-multiline/format.test.js
tests/format/js/object-multiline/format.test.js
runFormatTest(import.meta, ["babel"]); runFormatTest(import.meta, ["babel"], { objectWrap: "collapse" });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/trailing-comma/es5.js
tests/format/js/trailing-comma/es5.js
function send_single_email( app, email_id, email_address, subject, html, reply_to ) { send_single_email_implementation( app, email_id, email_address, subject, html, reply_to); return "nothing"; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/trailing-comma/dynamic-import.js
tests/format/js/trailing-comma/dynamic-import.js
import( 'myreallylongdynamicallyloadedmodulenamemyreallylongdynamicallyloadedmodulename' );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/trailing-comma/function-calls.js
tests/format/js/trailing-comma/function-calls.js
const a = (param1, param2, param3) => {} a('value', 'value2', 'value3'); a( 'a-long-value', 'a-really-really-long-value', 'a-really-really-really-long-value', ); a('value', 'value2', a('long-nested-value', 'long-nested-value2', 'long-nested-value3')); a.b().c( { d, }, () => {} );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/trailing-comma/jsx.js
tests/format/js/trailing-comma/jsx.js
<div onClick={() => doSomething({ foo: bar }) } />;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/trailing-comma/object.js
tests/format/js/trailing-comma/object.js
const a = { b: true, c: { c1: 'hello' }, d: false }; const aLong = { bHasALongName: 'a-long-value', cHasALongName: { c1: 'a-really-long-value', c2: 'a-really-really-long-value', }, dHasALongName: 'a-long-value-too' }; const bLong = { dHasALongName: 'a-long-value-too', eHasABooleanExpre...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/trailing-comma/trailing_whitespace.js
tests/format/js/trailing-comma/trailing_whitespace.js
let example = [ 'FOO', 'BAR', // Comment ]; foo({}, // Comment ); o = { state, // Comment }; o = { state, // Comment }; function supersupersupersuperLongF( supersupersupersuperLongA, supersupersupersuperLongB // Comment ) { a } function supersupersupersuperLongF( supersupersupersuperLongA...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/trailing-comma/format.test.js
tests/format/js/trailing-comma/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"], { trailingComma: "none", }); runFormatTest(import.meta, ["babel", "flow", "typescript"], { trailingComma: "all", }); runFormatTest(import.meta, ["babel", "flow", "typescript"], { trailingComma: "es5", });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/dangling.js
tests/format/js/comments/dangling.js
var a = {/* dangling */}; var b = { // dangling }; var b = [/* dangling */]; function d() { /* dangling */ } new Thing(/* dangling */); Thing(/* dangling */); export /* dangling */{};
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/array-and-object.js
tests/format/js/comments/array-and-object.js
let object = // Comment { key: 'value' } let array = // Comment [ 'value' ]
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/before-comma.js
tests/format/js/comments/before-comma.js
const foo = { a: 'a' /* comment for this line */, /* Section B */ b: 'b', };
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/emoji.js
tests/format/js/comments/emoji.js
/* #2091 */ const test = '💖' // This comment // should not get collapsed
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/switch.js
tests/format/js/comments/switch.js
switch (node && node.type) { case "Property": case "MethodDefinition": prop = node.key; break; case "MemberExpression": prop = node.property; break; // no default } switch (foo) { case "bar": doThing() // no default } switch (foo) { case "bar": //comment doThing(); //comment ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/return-statement-2.js
tests/format/js/comments/return-statement-2.js
function foo() { return ( // Comment a, b ); return ( // Comment a, b ); return /* Comment*/ ( a, b ); return (/* Comment*/ a, b ); return ( /* Comment*/ a, b ); return ( // Comment a = b ); return ( // Comment a = b ); throw ( // Comment a...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/function-declaration.js
tests/format/js/comments/function-declaration.js
function a(/* comment */) {} // comment function b() {} // comment function c(/* comment */ argA, argB, argC) {} // comment call((/*object*/ row) => {}); KEYPAD_NUMBERS.map(num => ( // Buttons 0-9 <div /> )); function f1 /* f */() {} function f2 (/* args */) {} function f3 () /* returns */ {} function f4 /* f */(/* ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/if.js
tests/format/js/comments/if.js
if (1) // comment { false } // comment else if (2) true // multi // ple // lines else if (3) // existing comment true // okay? else if (4) { // empty with existing comment } // comment else { } if (5) // comment true if (6) // comment {true} else if (7) // comment true else // comment {true} if (8) // comm...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/tagged-template-literal.js
tests/format/js/comments/tagged-template-literal.js
foo``; // comment 1 foo // comment 2 ``; foo // comment 3 ` `; foo /* comment 4 */` `; foo /* comment 5 */ ` `;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/single-star-jsdoc.js
tests/format/js/comments/single-star-jsdoc.js
/* * Looking good! */ if(true) { /* * Oh no */ } /** first line * second line * third line */ /* first line * second line * third line */ /*! first line *second line * third line */ /*! * Extracted from vue codebase * https://github.com/vuejs/vue/blob/cfd73c2386623341fdbb3ac636c4baf...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/binary-expressions.js
tests/format/js/comments/binary-expressions.js
function addition() { 0 // Comment + x } function multiplication() { 0 // Comment * x } function division() { 0 // Comment / x } function substraction() { 0 // Comment - x } function remainder() { 0 // Comment % x } function exponentiation() { 0 // Comment ** x } function leftShift() { 0 // Co...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/jsdoc.js
tests/format/js/comments/jsdoc.js
/** @type {any} */ const x = ( <div> <div /> </div> ); /** * @type {object} */ () => ( <div> sajdfpoiasdjfpoiasdjfpoiasdjfpoiadsjfpaoisdjfapsdiofjapioisadfaskfaspiofjp </div> ); /** * @type {object} */ function HelloWorld() { return ( <div> <span>Test</span> ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/multi-comments.js
tests/format/js/comments/multi-comments.js
// #8323 import { MapViewProps } from 'react-native-maps'; /* comment 14 */ /* comment1 10 */ /*/ comment 13 */ /* comment 9 ****/ import * as ts from 'typescript'; x; /* 1 */ /* 2 */ y x; /*1*//*2*/ y;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/last-arg.js
tests/format/js/comments/last-arg.js
class Foo { a(lol /*string*/) {} b(lol /*string*/ ) {} d( lol /*string*/, lol2 /*string*/, lol3 /*string*/, lol4 /*string*/ ) {} d( lol /*string*/, lol2 /*string*/, lol3 /*string*/, lol4 /*string*/ ) /*string*/ {} // prettier-ignore c(lol /*string*/ ) {} // pr...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/binary-expressions-block-comments.js
tests/format/js/comments/binary-expressions-block-comments.js
a = b || /** Comment */ c; a = b /** Comment */ || c; a = b || /** TODO this is a very very very very long comment that makes it go > 80 columns */ c; a = b /** TODO this is a very very very very long comment that makes it go > 80 columns */ || c; a = b || /** TODO this is a very very very very long comment that ma...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/multi-comments-on-same-line-2.js
tests/format/js/comments/multi-comments-on-same-line-2.js
/* 1 */ /* 2 */ /* 3 */ a; a; /* 4 */ /* 5 */ /* 6 */
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/export.js
tests/format/js/comments/export.js
export //comment {} export /* comment */ {}; const foo = '' export { foo // comment } const bar = '' export { // comment bar } const fooo = '' const barr = '' export { fooo, // comment barr, // comment } const foooo = '' const barrr = '' export { foooo, barrr as // comment baz, } from 'foo' con...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/dangling_for.js
tests/format/js/comments/dangling_for.js
for // comment (;;); for /* comment */(;;);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/variable_declarator.js
tests/format/js/comments/variable_declarator.js
let obj1 = // Comment { key: 'val' } let obj2 // Comment = { key: 'val' } let obj3 = { // Comment key: 'val' } let obj4 = { // Comment key: 'val' } let obj5 = // Comment [ 'val' ] let obj6 // Comment = [ 'val' ] let obj7 = [ // Comment 'val' ] let obj8 = [ // Comment 'val' ] let obj9 = // Co...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/binary-expressions-parens.js
tests/format/js/comments/binary-expressions-parens.js
Math.min( ( /* $FlowFixMe(>=0.38.0 site=www) - Flow error detected during the * deployment of v0.38.0. To see the error, remove this comment and * run flow */ document.body.scrollHeight - (window.scrollY + window.innerHeight) ) - devsite_footer_height, 0, )
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/binary-expressions-single-comments.js
tests/format/js/comments/binary-expressions-single-comments.js
a = b || // Comment c; a = b || // TODO this is a very very very very long comment that makes it go > 80 columns c; a = b && // Comment c; a = b && // TODO this is a very very very very long comment that makes it go > 80 columns c; a = b + // Comment c; a = b + // TODO this is a very very very very long comment th...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/assignment-pattern.js
tests/format/js/comments/assignment-pattern.js
const { a /* comment */ = 1 } = b; const { c = 1 /* comment */ } = d; let {d //comment = b} = c
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/call_comment.js
tests/format/js/comments/call_comment.js
render( // Warm any cache <ChildUpdates renderAnchor={true} anchorClassOn={true} />, container ); React.render( // Warm any cache <ChildUpdates renderAnchor={true} anchorClassOn={true} />, container ); render?.( // Warm any cache <ChildUpdates renderAnchor={true} anchorClassOn={true} />, container );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/multi-comments-2.js
tests/format/js/comments/multi-comments-2.js
const x = 0; /* istanbul ignore if */ // debug case currently not triggered if (true) { x; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/return-statement.js
tests/format/js/comments/return-statement.js
function jsx() { return ( // Comment <div /> ); } function unary() { return ( // Comment !!x ); } function numericLiteralNoParen() { return 1337; // Comment } function logical() { return ( // Reason for 42 42 ) && 84 } function binary() { return ( // Reason for 42 42 ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/empty-statements.js
tests/format/js/comments/empty-statements.js
a; /* a */ // b ; /* c */ foo; // first ;// second ;// third function x() { } // first ; // second a = ( b // 1 + // 2 c // 3 + // 4 d // 5 + /* 6 */ e // 7 );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/jsx.js
tests/format/js/comments/jsx.js
<div> { /* comment */ } </div>; <div> {/* comment */ } </div>; <div> {/* comment */ } </div>; <div> {a/* comment */ } </div>; <div> {/* comment */ a } </div>; <div> {/* comment */ } </div>; <div> {/* comment */} </div>; <div> { // single line comment } </div>; <div> { ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/blank.js
tests/format/js/comments/blank.js
// This file only // has comments. This comment // should still exist // // when printed. /** * @typedef {DataDrivenMapping|ConstantMapping} Mapping */ /** * @typedef {Object.<String, Mapping>} ConfigurationMapping */ /** * @typedef {Function} D3Scale - a D3 scale * @property {Function} ticks * @property {Func...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/preserve-new-line-last.js
tests/format/js/comments/preserve-new-line-last.js
function f() { a /* eslint-disable */ } function f() { a /* eslint-disable */ } function name() { // comment1 func1() // comment2 func2() // comment3 why func3 commented // func3() }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/jsdoc-nestled.js
tests/format/js/comments/jsdoc-nestled.js
const issues = { see: "#7724 and #12653" /** Trailing comment 1 (not nestled as both comments should be multiline for that) *//** * Trailing comment 2 */ }; /** * @template T * @param {Type} type * @param {T} value * @return {Value} *//** * @param {Type} type * @return {Value} */ function value(type, v...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/first-line.js
tests/format/js/comments/first-line.js
a // comment b
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/jsdoc-nestled-dangling.js
tests/format/js/comments/jsdoc-nestled-dangling.js
{{{{{{{ o={ /** * A *//** * B */ } }}}}}}}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/multi-comments-on-same-line.js
tests/format/js/comments/multi-comments-on-same-line.js
/*========= All on same line =========*/ a; /*1*//*2*//*3*/ b; a;/*1*//*2*//*3*/ b; a; /*1*//*2*//*3*/b; a; /* 1*//*2*//*3 */ b; a;/* 1*//*2*//*3 */ b; a;/* 1*//*2*//*3 */b; /*========= First two on same line =========*/ a; /*1*//*2*/ /*3*/ b; a;/*1*//*2*/ /*3*/ b; a; /*1*//*2*/ /*3*/b; a; /* 1*//*2*/ /*3 */ b...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/while.js
tests/format/js/comments/while.js
while( true // Comment ) {} while(true)// Comment {} while(true){}// Comment while(true)/*Comment*/{} while( true // Comment && true // Comment ){} while(true) {} // comment while(true) /* comment */ ++x; while(1) // Comment foo();
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/16398.js
tests/format/js/comments/16398.js
if (foo) a = b; /* foo */ else foo.split; if (foo) a = b; else /* foo */ foo.split;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/try.js
tests/format/js/comments/try.js
// Comment 1 try { // Comment 2 // Comment 3 } // Comment 4 catch(e) { // Comment 5 // Comment 6 } // Comment 7 finally { // Comment 8 // Comment 9 } // Comment 10
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/arrow.js
tests/format/js/comments/arrow.js
const fn = (/*event, data*/) => doSomething(); const fn2 = (/*event, data*/) => doSomething(anything);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/class.js
tests/format/js/comments/class.js
// #8718 class C { ma() {} /* D */ /* E */ mb() {} } class D { ma() {} /* D */ /* E */ /* F */ mb() {} }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/trailing_space.js
tests/format/js/comments/trailing_space.js
#!/there/is-space-here-> // Do not trim trailing whitespace from this source file! // There is some space here ->
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/issue-3532.js
tests/format/js/comments/issue-3532.js
import React from 'react'; /* import styled from 'react-emotion'; const AspectRatioBox = styled.div` &::before { content: ''; width: 1px; margin-left: -1px; float: left; height: 0; padding-top: ${props => 100 / props.aspectRatio}%; } &::after { /* To clear float *//* content: ''...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/trailing-jsdocs.js
tests/format/js/comments/trailing-jsdocs.js
const CONNECTION_STATUS = exports.CONNECTION_STATUS = { CLOSED: Object.freeze({ kind: 'CLOSED' }), CONNECTED: Object.freeze({ kind: 'CONNECTED' }), CONNECTING: Object.freeze({ kind: 'CONNECTING' }), NOT_CONNECTED: Object.freeze({ kind: 'NOT_CONNECTED' }) }; /* A comment */ /** * A type that can be written to a...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/issues.js
tests/format/js/comments/issues.js
// Does not need to break as it fits in 80 columns this.call(a, /* comment */ b); // Comments should either stay at the end of the line or always before, but // not one before and one after. throw new ProcessSystemError({ code: acc.error.code, // Alias of errno originalError: acc.error, // Just in case. }); // Mi...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/dangling_array.js
tests/format/js/comments/dangling_array.js
expect(() => {}).toTriggerReadyStateChanges([ // Nothing. ]); [1 /* first comment */, 2 /* second comment */, 3];
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/template-literal.js
tests/format/js/comments/template-literal.js
` ${a // comment } ${b /* comment */} ${/* comment */ c /* comment */} ${// comment d //comment }; `
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/break-continue-statements.js
tests/format/js/comments/break-continue-statements.js
for (;;) { break /* comment */; continue /* comment */; } loop: for (;;) { break /* comment */ loop; break loop /* comment */; continue /* comment */ loop; continue loop /* comment */; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/dynamic_imports.js
tests/format/js/comments/dynamic_imports.js
import(/* Hello */ 'something') import('something' /* Hello */) import(/* Hello */ 'something' /* Hello */) import('something' /* Hello */ + 'else') import( /* Hello */ 'something' /* Hello */ ) wrap( import(/* Hello */ 'something' ) )
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/15661.js
tests/format/js/comments/15661.js
!( x || // foo y || // bar z /* * comment */ ) !( cond1 || // foo cond2 || // bar cond3 // baz ); !( a && // alpha b || // bravo c // charlie ); !( x || // foo (y && z) // bar ); !( a || // first condition (b || c) // second condition || d // third con...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/export-and-import.js
tests/format/js/comments/export-and-import.js
// These are tests to compare comment formats in `export` and `import`. export { foo, bar as // comment baz, } from 'foo' const fooo = "" const barr = "" export { fooo, barr as // comment bazz, } import { foo, bar as // comment baz, } from 'foo'
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/format.test.js
tests/format/js/comments/format.test.js
const fixtures = { importMeta: import.meta, snippets: [ "var a = { /* comment */ \nb };", // trailing whitespace after comment "var a = { /* comment */\nb };", ], }; runFormatTest(fixtures, ["babel", "flow", "typescript"]); runFormatTest(fixtures, ["babel", "flow", "typescript"], { semi: false });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/flow-types/inline.js
tests/format/js/comments/flow-types/inline.js
btnActions[1] = () => ( <button> test </button> // :testC ) a( // :: 1 );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/flow-types/format.test.js
tests/format/js/comments/flow-types/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/comments/html-like/comment.js
tests/format/js/comments/html-like/comment.js
<!-- alert(1) -->
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/html-like/format.test.js
tests/format/js/comments/html-like/format.test.js
runFormatTest(import.meta, ["meriyah"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/tagged-template-literal/11662.js
tests/format/js/comments/tagged-template-literal/11662.js
foo // TEST // 1 // 2 // 3 // 4 // 5 `x`
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/tagged-template-literal/format.test.js
tests/format/js/comments/tagged-template-literal/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/comments/function/between-parentheses-and-function-body.js
tests/format/js/comments/function/between-parentheses-and-function-body.js
function function_declaration() // this is a function { return 42 } (function named() // this is a function { return 42 })(); (function () // this is a function { return 42 })(); /* anonymous declaration */ export default function () // this is a function { return 42 } a = { foo() // this is a function...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments/function/18146.js
tests/format/js/comments/function/18146.js
class x { a() // class 1 { } b() // class 2 { // comment } c() // class 3 { call() } constructor() // class constructor {} static staticMethod() // class static {} get getter() // class getter {} } const x2 = { a() // object 1 { }, b() // object 2 { // comment ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false