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/nullish-coalescing/nullish_coalesing_operator.js | tests/format/js/nullish-coalescing/nullish_coalesing_operator.js | obj.foo ?? "default";
const x = (foo, bar = foo ?? bar) => {};
foo ? bar ?? foo : baz;
foo ?? (bar ?? baz);
(foo ?? bar) ?? baz;
// Mixing ?? and (&& or ||) requires parens
// It's a syntax error without it.
(foo ?? baz) || baz;
foo ?? (baz || baz);
(foo ?? baz) && baz;
foo ?? (baz && baz);
(foo || baz) ?? baz;
f... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/nullish-coalescing/format.test.js | tests/format/js/nullish-coalescing/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/top-level-await/in-expression.js | tests/format/js/top-level-await/in-expression.js | call(
await something()
)
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/top-level-await/test.js | tests/format/js/top-level-await/test.js | await(1);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/top-level-await/example.js | tests/format/js/top-level-await/example.js | await something();
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/top-level-await/format.test.js | tests/format/js/top-level-await/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/for-await/for-await.js | tests/format/js/for-await/for-await.js | async function foo() {
for await (num of asyncIterable) {
console.log(num);
}
for await (num of asyncGeneratorFunc()) {
console.log(num);
}
}
(async () => {
for await (num of asyncIterable) {
console.log(num);
}
for await (const x of delegate_yield()) {
x;
}
})();
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/for-await/format.test.js | tests/format/js/for-await/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-graphql/comment-tag.js | tests/format/js/multiparser-graphql/comment-tag.js | const query = /* GraphQL */`
{
user( id : 5 ) {
firstName
lastName
}
}
`;
/* GraphQL */`
{
user( id : 5 , type:
"without variable assignment" ) {
firstName
lastName
}
}
`;
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-graphql/graphql.js | tests/format/js/multiparser-graphql/graphql.js | graphql(schema, `
mutation MarkReadNotificationMutation(
$input
: MarkReadNotificationData!
)
{ markReadNotification(data: $input ) { notification {seenState} } }`)
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-graphql/react-relay.js | tests/format/js/multiparser-graphql/react-relay.js | const { graphql } = require("react-relay");
graphql`
mutation MarkReadNotificationMutation(
$input
: MarkReadNotificationData!
)
{ markReadNotification(data: $input ) { notification {seenState} } }
`;
graphql.experimental`
mutation MarkReadNotificationMutation(
$input
: MarkReadNotificatio... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-graphql/escape.js | tests/format/js/multiparser-graphql/escape.js | gql`
"\`foo\` mutation payload."
type FooPayload {
bar: String
}
`
gql`
type Project {
"Pattern: \`\${project}\`"
pattern: String
"""
Pattern: \`\${project}\`
"""
pattern: String
# Also: Escaping the first parentheses...
"Pattern: \`$\{project}\`"
pattern: String
... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-graphql/invalid.js | tests/format/js/multiparser-graphql/invalid.js | // none of the embedded GraphQL should be formatted
// for they have an invalid escape sequence
gql`
"\x"
type Foo {
a: string
}
`;
gql`
type Foo {
a: string
}
${stuff}
"\x"
type Bar {
b : string
}
`;
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-graphql/definitions.js | tests/format/js/multiparser-graphql/definitions.js | graphql`
fragment x on y {
z
}
fragment a on b {
c
}
`;
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-graphql/expressions.js | tests/format/js/multiparser-graphql/expressions.js | graphql(schema, `
query allPartsByManufacturerName($name: String!) {
allParts(filter:{manufacturer: {name: $name}}) {
... PartAll
}}
${fragments.all}
`)
const veryLongVariableNameToMakeTheLineBreak = graphql(schema, `
query allPartsByManufacturerName($name: String!) {
allParts(filter:{manufacturer: {name: $name... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-graphql/graphql-tag.js | tests/format/js/multiparser-graphql/graphql-tag.js | import gql from "graphql-tag";
const query = gql`
{
user( id : 5 ) {
firstName
lastName
}
}
`;
// With interpolations:
gql`
query User {
user(id:5){
...UserDetails
...Friends
}
}
${USER_DETAILS_FRAGMENT}${FRIENDS_FRAGMENT}
`
// Skip if non-toplevel interpolation:
g... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-graphql/format.test.js | tests/format/js/multiparser-graphql/format.test.js | runFormatTest(import.meta, ["babel"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/regex/d-flag.js | tests/format/js/regex/d-flag.js | /./d;
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/regex/v-flag.js | tests/format/js/regex/v-flag.js | /a/v;
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/regex/test.js | tests/format/js/regex/test.js | /[/]\/\u0aBc/mgi;
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/regex/regexp-modifiers.js | tests/format/js/regex/regexp-modifiers.js | /(?ims:^[a-z])/u;
/(?-ims:^[a-z].)(^[a-z].)/uims;
/(?ims:^[a-z].1$)/;
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/regex/format.test.js | tests/format/js/regex/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/regex/multiple-flags.js | tests/format/js/regex/multiple-flags.js | /.*/ms;
/.*/my;
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/identifier/parentheses/const.js | tests/format/js/identifier/parentheses/const.js | const [a = ((let)[0] = 1)] = 2;
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/identifier/parentheses/let.js | tests/format/js/identifier/parentheses/let.js | let.a = 1;
let.a[0] = 1;
(let[a] = 1);
(let[a].b.c.e = 1);
foo[let[a]] = 1;
(let)[let[a]] = 1;
(let[a] ??= 1);
foo = let[a];
let()[a] = 1;
foo(let)[a] = 1;
foo(let[a])[a] = 1;
(let[0] = 1);
(let["a"] = 1);
let = 1;
var let = 1;
[let[a]] = 1;
({a: let[a]} = 1);
alert(let[0] = 1);
(let[0] = 1) || 2;
((... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/identifier/parentheses/format.test.js | tests/format/js/identifier/parentheses/format.test.js | runFormatTest(import.meta, [
"babel",
// "flow",
"typescript",
]);
runFormatTest(
import.meta,
[
"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/identifier/for-of/await.js | tests/format/js/identifier/for-of/await.js | async function a() {
for await((let) of foo);
for await((let).a of foo);
for await((let)[a] of foo);
for await((let)()[a] of foo);
}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/identifier/for-of/let.js | tests/format/js/identifier/for-of/let.js | for ((let) of foo);
for (foo of let);
for (foo of let.a);
for (foo of let[a]);
for ((let.a) of foo);
for ((let[a]) of foo);
for ((let)().a of foo);
for (letFoo of foo);
for ((let.a) in foo);
for ((let[a]) in foo);
for (let of of let);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/identifier/for-of/format.test.js | tests/format/js/identifier/for-of/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/require-amd/require.js | tests/format/js/require-amd/require.js | require(
[
'jquery',
'common/global.context',
'common/log.event',
'some_project/square',
'some_project/rectangle',
'some_project/triangle',
'some_project/circle',
'some_project/star',
],
function($, Context, EventLogger, Square, Rectangle, Tria... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/require-amd/named-amd-module.js | tests/format/js/require-amd/named-amd-module.js | define("foo/title",
["my/cart", "my/inventory"],
function(cart, inventory) {
//Define foo/title object in here.
}
)
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/require-amd/non-amd-define.js | tests/format/js/require-amd/non-amd-define.js | const someVariable = define(
"some string literal",
anotherVariable,
yetAnotherVariable
);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/require-amd/format.test.js | tests/format/js/require-amd/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/classes-private-fields/private_fields.js | tests/format/js/classes-private-fields/private_fields.js | class A { #x; #y; }
class B { #x = 0; #y = 1; }
class C {
static #x;
static #y = 1;
}
class D {
#x
#y
}
class Point {
#x = 1;
#y = 2;
constructor(x = 0, y = 0) {
this.#x = +x;
this.#y = +y;
}
get x() { return this.#x }
set x(value) { this.#x = +value }
get y() { return this.#y }
se... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/classes-private-fields/optional-chaining.js | tests/format/js/classes-private-fields/optional-chaining.js | // https://github.com/babel/babel/pull/11669
delete obj?.#x.a
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/classes-private-fields/with_comments.js | tests/format/js/classes-private-fields/with_comments.js | class A {
#foobar =
// comment to break
1 +
// comment to break again
2;
}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/classes-private-fields/format.test.js | tests/format/js/classes-private-fields/format.test.js | const errors = {
espree: ["optional-chaining.js"],
};
runFormatTest(import.meta, ["babel"], {
errors,
});
runFormatTest(import.meta, ["babel"], {
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/cursor/range-5.js | tests/format/js/cursor/range-5.js | const myVar = <<<PRETTIER_RANGE_START>>>aFunction<|><<<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/cursor/comments-2.js | tests/format/js/cursor/comments-2.js | <|>
// howdy
// hi lol
const y = 5
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/file-start-with-comment-2.js | tests/format/js/cursor/file-start-with-comment-2.js | // hi lol
haha()<|>
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/range-8.js | tests/format/js/cursor/range-8.js | thisWontBeFormatted ( 1 ,3)
<<<PRETTIER_RANGE_START>>>
thisWillBeFormatted (2 ,3, )<|>
<<<PRETTIER_RANGE_END>>> thisWontBeFormatted (2, 90 ,)
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/cursor-5.js | tests/format/js/cursor/cursor-5.js | const /* h<|>i */ y = 5
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/cursor-3.js | tests/format/js/cursor/cursor-3.js |
<|>
const y = 5
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/range-2.js | tests/format/js/cursor/range-2.js | thisWontBeFormatted ( 1 ,3)
<<<PRETTIER_RANGE_START>>> thisWillBeFormatted (2 ,3, <|> )
<<<PRETTIER_RANGE_END>>> thisWontBeFormatted (2, 90 ,)
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/cursor-10.js | tests/format/js/cursor/cursor-10.js | const y = 5
<|>
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/comments-1.js | tests/format/js/cursor/comments-1.js | // hi l<|>ol
function ehllooo () {
const hi = "hi"
}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/cursor-1.js | tests/format/js/cursor/cursor-1.js | (function(){return <|>15})()
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/cursor-13.js | tests/format/js/cursor/cursor-13.js | import lib from './lib.js';
function myFunction() { return 'foo'; }<|>
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/cursor-9.js | tests/format/js/cursor/cursor-9.js | thisWillBeFormatted <|> (2 ,3, ) | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/file-start-with-comment-1.js | tests/format/js/cursor/file-start-with-comment-1.js | // hi<|> lol
haha()
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/cursor-4.js | tests/format/js/cursor/cursor-4.js |
const y = 5
<|>
const z = 9
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/cursor-6.js | tests/format/js/cursor/cursor-6.js | const y /* h<|>i */ = 5
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/comments-4.js | tests/format/js/cursor/comments-4.js | // howdy
// hi lol
const y = 5
// traling! <|>
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/cursor-emoji.js | tests/format/js/cursor/cursor-emoji.js | "😀😀😀😀<|>"
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/file-start-with-comment-3.js | tests/format/js/cursor/file-start-with-comment-3.js | // All messages are represented in JSON.
// So, the prettier.py controls a subprocess which spawns "node {this_file}".
import {<|> } from "fs"
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/range-6.js | tests/format/js/cursor/range-6.js | const myVar = <<<PRETTIER_RANGE_START>>>aFunction;<|><<<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/cursor/comments-3.js | tests/format/js/cursor/comments-3.js | /<|>/ howdy
// hi lol
const y = 5
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/cursor-8.js | tests/format/js/cursor/cursor-8.js | func<|>tion banana(){} | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/range-3.js | tests/format/js/cursor/range-3.js | thisWontBeFormatted <|> ( 1 ,3)
<<<PRETTIER_RANGE_START>>>
thisWillBeFormatted (2 ,3, )
<<<PRETTIER_RANGE_END>>> thisWontBeFormatted (2, 90 ,)
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/range-0.js | tests/format/js/cursor/range-0.js | thisWontBeFormatted ( 1 ,3)
<<<PRETTIER_RANGE_START>>> thisWillBeFormatted <|> (2 ,3, )
<<<PRETTIER_RANGE_END>>> thisWontBeFormatted (2, 90 ,)
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/range-7.js | tests/format/js/cursor/range-7.js | const myVar = <<<PRETTIER_RANGE_START>>>aFunction<|>;<<<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/cursor/range-4.js | tests/format/js/cursor/range-4.js | thisWontBeFormatted ( 1 ,3)
<<<PRETTIER_RANGE_START>>> thisWillBeFormatted (2 ,3, )
<<<PRETTIER_RANGE_END>>>thisWontBeFormatted (2, 9<|>0 ,)
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/cursor-7.js | tests/format/js/cursor/cursor-7.js | const y = 5
<|>
const z = 9
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/cursor-2.js | tests/format/js/cursor/cursor-2.js |
foo <|> (bar);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/range-1.js | tests/format/js/cursor/range-1.js | thisWontBeFormatted ( 1 ,3)
<<<PRETTIER_RANGE_START>>> thisWillBeFormatted (2 ,3<|>, )
<<<PRETTIER_RANGE_END>>> thisWontBeFormatted (2, 90 ,)
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/cursor-0.js | tests/format/js/cursor/cursor-0.js | (function() {return <|> 15})()
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/format.test.js | tests/format/js/cursor/format.test.js | import { outdent } from "outdent";
import getPrettier from "../../../config/get-prettier.js";
runFormatTest(import.meta, ["babel", "typescript", "flow"]);
let prettier;
beforeAll(async () => {
prettier = await getPrettier();
});
test("translates cursor correctly in basic case", async () => {
expect(
await pr... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/cursor-12.js | tests/format/js/cursor/cursor-12.js | // At the time of adding this test, the cursor positioning we end up with
// here seems clearly wrong.
// I'm adding the test case anyway to demonstrate the brokenness and ensure
// that if a future changes fixes it, it'll be obvious from the PR diff that
// the fix happened.
[
[
[
[
1,
2,
... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/cursor-11.js | tests/format/js/cursor/cursor-11.js | [
[
[
[
1,
2,
<|> 3, "looooooooooooooooooooooooooooooooooooooooooooooooooong",
"looooooooooooooooooooooooooooooooooooooooooooooooooong",
]
]
]
]
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/require-pragma/cursor-without-pragma.js | tests/format/js/cursor/require-pragma/cursor-without-pragma.js | (function() {return <|> 15})()
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/cursor/require-pragma/format.test.js | tests/format/js/cursor/require-pragma/format.test.js | runFormatTest(import.meta, ["babel", "typescript", "flow"], {
requirePragma: true,
});
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/call/first-argument-expansion/issue-4401.js | tests/format/js/call/first-argument-expansion/issue-4401.js | export function test() {
setTimeout(
() => { console.warn({}, 'Lambda approaching timeout.') },
Math.max(context.getRemainingTimeInMillis() - WARN_TIMEOUT_MS, 0),
);
}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/call/first-argument-expansion/issue-12892.js | tests/format/js/call/first-argument-expansion/issue-12892.js | setTimeout(() => {
console.log('test');
}, someFunctionCall(
veryLongParameterName1,
veryLongParameterName2,
veryLongParameterName3,
veryLongParameterName4,
));
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/call/first-argument-expansion/test.js | tests/format/js/call/first-argument-expansion/test.js | setTimeout(function() {
thing();
}, 500);
["a","b","c"].reduce(function(item, thing) {
return thing + " " + item;
}, "letters:")
func(() => {
thing();
}, identifier);
func(function() {
thing();
}, this.props.timeout * 1000);
func((that) => {
thing();
}, this.props.getTimeout());
func(() => {
thing();
}... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/call/first-argument-expansion/jsx.js | tests/format/js/call/first-argument-expansion/jsx.js | <elem onFlip={wrap(function () {flop('!'); }, arg2)}>content</elem>
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/call/first-argument-expansion/expression-2nd-arg.js | tests/format/js/call/first-argument-expansion/expression-2nd-arg.js | call(
function() {
return 1;
},
200_000_000_000n * askTrovenaBeenaDependsRowans
);
call(
function() {
return 1;
},
200_000_000_000n * askTrovenaBeenaDependsRowans / glimseGlyphsHazardNoopsTieTie
);
call(
function() {
return 1;
},
askTrovenaBeenaDependsRowans = glimseGlyphsHazardNoopsTieT... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/call/first-argument-expansion/issue-13237.js | tests/format/js/call/first-argument-expansion/issue-13237.js | /* version 1 */
exportDefaultWhatever(function (
aaaaaaaaaaaString,
bbbbbbbbbbbString,
cccccccccccString,
) {
return null;
}, "xyz");
/* version 2 (only difference is that `//`) */
exportDefaultWhatever(function (
aaaaaaaaaaaString, //
bbbbbbbbbbbString,
cccccccccccString,
) {
return null;
}, "xyz")... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/call/first-argument-expansion/issue-14454.js | tests/format/js/call/first-argument-expansion/issue-14454.js | f(() => {}, scroller.qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq)
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/call/first-argument-expansion/issue-2456.js | tests/format/js/call/first-argument-expansion/issue-2456.js | f(x => { y }, err.message.includes("asd") && err.message.includes("id") &&
err.message.includes('"1"') && err.message.includes("Model") &&
err.message.includes("/id") && err.message.includes("identifier(number)")
)
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/call/first-argument-expansion/issue-5172.js | tests/format/js/call/first-argument-expansion/issue-5172.js | call(
function() {
return 1;
},
$var ?? $var ?? $var ?? $var ?? $var ?? $var ?? $var ?? $var ?? $var ?? 'test'
);
call(function () {
return 1;
}, $var || ($var ?? $var ?? $var ?? $var ?? $var ?? $var ?? $var ?? $var ?? "test"));
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/call/first-argument-expansion/format.test.js | tests/format/js/call/first-argument-expansion/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/call/no-argument/special-cases.js | tests/format/js/call/no-argument/special-cases.js | require(/* comment */)
new require(/* comment */)
define(/* comment */)
new define(/* comment */)
it(/* comment */)
new it(/* comment */)
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/call/no-argument/format.test.js | tests/format/js/call/no-argument/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/call/boolean/boolean.js | tests/format/js/call/boolean/boolean.js | a = Boolean(
a_long_long_long_long_condition || a_long_long_long_long_condition || a_long_long_long_long_condition,
);
a = Boolean(
a_long_long_long_long_condition || a_long_long_long_long_condition || a_long_long_long_long_condition,
)?.toString();
a = new Boolean(
a_long_long_long_long_condition || a_long_long_... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/call/boolean/format.test.js | tests/format/js/call/boolean/format.test.js | runFormatTest(import.meta, ["babel", "typescript", "flow"]);
runFormatTest(import.meta, ["babel", "typescript", "flow"], {
experimentalOperatorPosition: "start",
});
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/call/invalid/null-arguments-item.js | tests/format/js/call/invalid/null-arguments-item.js | foor('a', , 'b');
foo('looooooooooooooooooooooooooooooooooooooooooooooong', , 'looooooooooooooooooooooooooooooooooooooooooooooong');
foo("a",
//1
, "b");
foo("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/call/invalid/format.test.js | tests/format/js/call/invalid/format.test.js | runFormatTest(import.meta, ["babel"], {
errors: {
babel: true,
__babel_estree: true,
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/multiparser-invalid/format.test.js | tests/format/js/multiparser-invalid/format.test.js | runFormatTest(import.meta, ["babel", "flow", "typescript"], {
errors: {
acorn: true,
espree: true,
flow: true,
hermes: true,
typescript: 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/multiparser-invalid/text.js | tests/format/js/multiparser-invalid/text.js | foo = foo`\u{prettier}\u{0065}`;
foo = html`\u{prettier}\u{0065}`;
foo = graphql`\u{prettier}\u{0065}`;
foo = markdown`\u{prettier}\u{0065}`;
foo = css`\u{prettier}\u{0065}`;
foo = /* HTML */`\u{prettier}\u{0065}`;
foo = /* GraphQL */`\u{prettier}\u{0065}`;
foo = foo`\u{prettier}${foo}pr\u{0065}ttier`;
foo = html`\u{p... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/break-calls/reduce.js | tests/format/js/break-calls/reduce.js | const [ first1 ] = array.reduce(
() => [accumulator, element, accumulator, element],
[fullName]
);
const [ first2 ] = array.reduce(
(accumulator, element, ) => [accumulator, element],
[fullName]
);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/break-calls/break.js | tests/format/js/break-calls/break.js | h(f(g(() => {
a
})))
deepCopyAndAsyncMapLeavesA(
{ source: sourceValue, destination: destination[sourceKey] },
{ valueMapper, overwriteExistingKeys }
)
deepCopyAndAsyncMapLeavesB(
1337,
{ source: sourceValue, destination: destination[sourceKey] },
{ valueMapper, overwriteExistingKeys }
)
deepCopyAndAsync... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/break-calls/react.js | tests/format/js/break-calls/react.js | function helloWorld() {
useEffect(() => {
// do something
}, [props.value])
useEffect(() => {
// do something
}, [props.value, props.value, props.value, props.value, props.value, props.value, props.value, props.value, props.value, props.value, props.value])
}
function helloWorldWithReact() {
React.us... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/break-calls/parent.js | tests/format/js/break-calls/parent.js | runtimeAgent.getProperties(
objectId,
false, // ownProperties
false, // accessorPropertiesOnly
false, // generatePreview
(error, properties, internalProperties) => {
return 1
},
);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/break-calls/format.test.js | tests/format/js/break-calls/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/deferred-import-evaluation/dynamic-import.js | tests/format/js/deferred-import-evaluation/dynamic-import.js | import.defer("foo");
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/deferred-import-evaluation/no-default.js | tests/format/js/deferred-import-evaluation/no-default.js | import defer x from "x";
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/deferred-import-evaluation/import-defer-attributes-declaration.js | tests/format/js/deferred-import-evaluation/import-defer-attributes-declaration.js | import defer * as ns from "x" with { attr: "val" };
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/deferred-import-evaluation/dynamic-import-attributes-expression.js | tests/format/js/deferred-import-evaluation/dynamic-import-attributes-expression.js | import.defer("x", { with: { attr: "val" } });
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/deferred-import-evaluation/import-defer.js | tests/format/js/deferred-import-evaluation/import-defer.js | import defer * as ns from "x";
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/deferred-import-evaluation/no-named.js | tests/format/js/deferred-import-evaluation/no-named.js | import defer { x } from "x";
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.