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/explicit-resource-management/valid-for-using-binding-of-of.js
tests/format/js/explicit-resource-management/valid-for-using-binding-of-of.js
async function f() { for (await using of of of); for await (await using of 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-module-block-top-level-using-binding.js
tests/format/js/explicit-resource-management/valid-module-block-top-level-using-binding.js
module { using foo = 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-await-expr-using-in.js
tests/format/js/explicit-resource-management/valid-await-expr-using-in.js
async function f() { await using in foo; }
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-init.js
tests/format/js/explicit-resource-management/valid-using-as-identifier-for-init.js
for ( 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-binding-basic.js
tests/format/js/explicit-resource-management/valid-using-binding-basic.js
{ using basic = 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/invalid-script-top-level-using-binding.js
tests/format/js/explicit-resource-management/invalid-script-top-level-using-binding.js
using x = 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-await-of.js
tests/format/js/explicit-resource-management/valid-using-as-identifier-for-await-of.js
for await (using 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-await-using-binding-non-bmp.js
tests/format/js/explicit-resource-management/valid-await-using-binding-non-bmp.js
async function f() { await using 𠮷 = foo(); }
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-binding-using.js
tests/format/js/explicit-resource-management/valid-using-binding-using.js
{ using using = of; for (using using 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-using-binding-non-bmp.js
tests/format/js/explicit-resource-management/valid-using-binding-non-bmp.js
{ using 𠮷 = foo(); }
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-expr-using.js
tests/format/js/explicit-resource-management/valid-await-expr-using.js
async function f() { await using[x]; await using.x + await using(x) ? await using?.x : await using`x`; }
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/for-await-using-of-comments.js
tests/format/js/explicit-resource-management/for-await-using-of-comments.js
/*1*/ for /* 2 */ await /*3*/ ( /*4*/ using /*5*/ fo /*6*/ of /*7*/ of /*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/valid-for-using-binding-escaped-of-of.js
tests/format/js/explicit-resource-management/valid-for-using-binding-escaped-of-of.js
// TODO: Fix this test // for (using o\u0066 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/invalid-duplicate-using-bindings.js
tests/format/js/explicit-resource-management/invalid-duplicate-using-bindings.js
{ using f = foo(), f = foo(); } { using g = foo(); using g = foo(); }
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-await-using-binding-escaped-of-of.js
tests/format/js/explicit-resource-management/valid-for-await-using-binding-escaped-of-of.js
// TODO: Fix this test // for await (using \u006ff 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-await-expr-using-instanceof.js
tests/format/js/explicit-resource-management/valid-await-expr-using-instanceof.js
async function f() { await using instanceof foo; }
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-asi-assignment.js
tests/format/js/explicit-resource-management/valid-await-using-asi-assignment.js
async function f() { await using using = h(); }
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-computed-member.js
tests/format/js/explicit-resource-management/valid-using-as-identifier-computed-member.js
using [x] = 0; for (using [x] 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-await-using-binding-basic.js
tests/format/js/explicit-resource-management/valid-await-using-binding-basic.js
async function f() { await using basic = 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-await-using-binding-using.js
tests/format/js/explicit-resource-management/valid-await-using-binding-using.js
async function f() { await using using = of; for (await using using 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-using-binding-escaped.js
tests/format/js/explicit-resource-management/valid-using-binding-escaped.js
{ using \u0061b = c; }
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-binding-escaped.js
tests/format/js/explicit-resource-management/valid-await-using-binding-escaped.js
async function f() { await using \u0061b = c; }
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-in.js
tests/format/js/explicit-resource-management/valid-using-as-identifier-in.js
using in using instanceof using;
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-module-block-top-level-await-using-binding.js
tests/format/js/explicit-resource-management/valid-module-block-top-level-await-using-binding.js
const m = module { await using foo = 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/format.test.js
tests/format/js/explicit-resource-management/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"], { errors: { flow: [ "for-await-using-of-comments.js", "invalid-duplicate-using-bindings.js", "invalid-script-top-level-using-binding.js", "using-declarations.js", // "valid-for-await-using-binding-escaped-of-of.js", //...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/sequence-break/break.js
tests/format/js/sequence-break/break.js
const f = (argument1, argument2, argument3) => (doSomethingWithArgument(argument1), doSomethingWithArgument(argument2),argument1); (function(){ return aLongIdentifierName, aLongIdentifierName, aLongIdentifierName, aLongIdentifierName; }); (function(){ throw aLongIdentifierName, aLongIdentifierName, aLongIdentifierN...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/sequence-break/format.test.js
tests/format/js/sequence-break/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/variable_declarator/string.js
tests/format/js/variable_declarator/string.js
elements[0].innerHTML = '<div></div><div></div><div></div><div></div><div></div><div></div>';
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/variable_declarator/multiple.js
tests/format/js/variable_declarator/multiple.js
var assert = require('assert'), lookup = require('../lookup'); const eloBar = require("elo-bar") , foo = require("foo") , otherThing = require("other-thing"); var a, b, c; let superSuperSuperLong1, superSuperSuperLong2, superSuperSuperLong3, superSuperSuperLong4; for (var i = 0, len = arr.length; i...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/variable_declarator/format.test.js
tests/format/js/variable_declarator/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/array-spread/multiple.js
tests/format/js/array-spread/multiple.js
[...a, ...b,]; [...a, ...b];
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/array-spread/format.test.js
tests/format/js/array-spread/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/discard-binding/discard-binding-bindings.js
tests/format/js/discard-binding/discard-binding-bindings.js
const { p: void } = {};
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/discard-binding/basic.js
tests/format/js/discard-binding/basic.js
const [void] = [,void] = [void,] = []; function f(void, { p: void }, [ void ]) {} (void, { p: void }, [ void ]) => {} async (void, { p: void }, [ void ]) => {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/discard-binding/discard-binding-for-bindings.js
tests/format/js/discard-binding/discard-binding-for-bindings.js
for(const { p: void } of []);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/discard-binding/using-variable-declarator.js
tests/format/js/discard-binding/using-variable-declarator.js
{ // using 1 declarator using void = f(); } { // using 2 declarators using void = f(), void = g(); } { // using void declarator and normal declarator using void = f(), x = g(); } { // using declarator in for-of for(using void of []); } async () => { { // await using 1 declarator await using vo...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/discard-binding/array-pattern.js
tests/format/js/discard-binding/array-pattern.js
{ // destructuring binding const [, void, ] = value; } { // for-of destructuring binding for (const [void] of []); } { // destructuring assignment [void] = []; } { // for-of destructuring assignment; for ([void] of []); } { // function param; function f([[[void], void, ], void]) {} } { // arrow fu...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/discard-binding/object-pattern.js
tests/format/js/discard-binding/object-pattern.js
{ // destructuring binding const { void: void } = value; } { // for-of destructuring binding for (const { p: void } of []); } { // destructuring assignment ({ p: void } = {}); } { // for-of destructuring assignment for ({ p: void } of []); } { // function param function f({ q: { q: { p: void }, p: v...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/discard-binding/discard-binding-arrow-params.js
tests/format/js/discard-binding/discard-binding-arrow-params.js
(void) => {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/discard-binding/discard-binding-for-using-binding.js
tests/format/js/discard-binding/discard-binding-for-using-binding.js
{ for(using void of []); }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/discard-binding/discard-binding-async-arrow-params.js
tests/format/js/discard-binding/discard-binding-async-arrow-params.js
async (void) => {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/discard-binding/function-parameter.js
tests/format/js/discard-binding/function-parameter.js
{ // function parameter function f(void) {} } { // arrow function parameter (x, void) => {} } { // async arrow function parameter async (void, x) => {} } { // object method parameter ({ f(x, void, y) {} }); } { // class method parameter class C { m(void,) {} } }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/discard-binding/unary-expression-void.js
tests/format/js/discard-binding/unary-expression-void.js
// expr void [ // pattern [ void ] = [{ // expr [ void [] ]: // pattern [ void ] = // expr void [ // pattern ([void]) => [] ] // expr }] = [void []] ]
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/discard-binding/discard-binding-for-await-using-binding.js
tests/format/js/discard-binding/discard-binding-for-await-using-binding.js
async () => { for(await using void of []); }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/discard-binding/discard-binding-assignment.js
tests/format/js/discard-binding/discard-binding-assignment.js
([void] = []);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/discard-binding/using.js
tests/format/js/discard-binding/using.js
{ using void = f(); } async (void) => { await using void = f(); }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/discard-binding/discard-binding-for-lhs.js
tests/format/js/discard-binding/discard-binding-for-lhs.js
for({ p: void } of []);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/discard-binding/format.test.js
tests/format/js/discard-binding/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"], { errors: { flow: true, typescript: true, acorn: true, espree: true, meriyah: true, oxc: true, "oxc-ts": true, hermes: true, }, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/function-single-destructuring/array-and-object.js
tests/format/js/function-single-destructuring/array-and-object.js
function StatelessFunctionalComponent1({ isActive = true, onFiltersUpdated = () => null, onSelect = () => null, onSubmitAndDeselect = () => null, onCancel = () => null, searchFilters = null, title = '', items = [], } = {}) { } function StatelessFunctionalComponent3([ isActive = true, onFiltersUpdat...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/function-single-destructuring/object.js
tests/format/js/function-single-destructuring/object.js
function StatelessFunctionalComponent({ isActive, onFiltersUpdated, onSelect, onSubmitAndDeselect, onCancel, searchFilters, title, items, }) { return <div /> } function StatelessFunctionalComponent2({ isActive = true, onFiltersUpdated = () => null, onSelect = () => null, onSubmitAndDeselect =...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/function-single-destructuring/array.js
tests/format/js/function-single-destructuring/array.js
function excludeFirstFiveResults([first, second, third, fourth, fifth, ...rest]) { return rest; } function excludeFirstFiveResults2([first, second, third, fourth, fifth, ...rest] = DEFAULT_FIVE_RESULTS) { return rest; } function excludeFirstFiveResults3([firstResult, secondResult, thirdResult, fourthResult, fifth...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/function-single-destructuring/format.test.js
tests/format/js/function-single-destructuring/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/template-align/indent.js
tests/format/js/template-align/indent.js
` Mixed tabs and spaces: ${() => {a}} ${() => {a}} ${() => {a}} ${() => {a}} ${() => {a}} ${() => {a}} ${() => {a}} ${() => {a}} ${() => {a}} Tabs: ${() => {a}} ${() => {a}} `
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/template-align/format.test.js
tests/format/js/template-align/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"]); runFormatTest(import.meta, ["babel", "flow", "typescript"], { useTabs: true, tabWidth: 8, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/if/else.js
tests/format/js/if/else.js
// Both functions below should be formatted exactly the same function f() { if (position) return {name: pair}; else return {name: pair.substring(0, position), value: pair.substring(position + 1)}; } function f() { if (position) return {name: pair}; else return { name: pair.substring(0, p...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/if/if_comments.js
tests/format/js/if/if_comments.js
async function f1() { if (untrackedChoice === 0) /* Cancel */ { return null; } else if (untrackedChoice === 1) /* Add */ { await repository.addAll(Array.from(untrackedChanges.keys())); shouldAmend = true; } else if (untrackedChoice === 2) /* Allow Untracked */ { allowUntracked = true; } } async...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/if/expr_and_same_line_comments.js
tests/format/js/if/expr_and_same_line_comments.js
if (a === 0) doSomething(); // comment A1 else if (a === 1) doSomethingElse(); // comment B1 else if (a === 2) doSomethingElse(); // comment C1 if (a === 0) doSomething(); /* comment A2 */ else if (a === 1) doSomethingElse(); /* comment B2 */ else if (a === 2) doSomethingElse(); /* comment C2 */ if (a ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/if/issue-15168.js
tests/format/js/if/issue-15168.js
for (const division of collidingDivisions) { if (!division.properties.canRemove) { if (division.canContainSingleParagraph(startParagraph)) continue; // selection starting in r/o div: always OK to delete else if (endParagraph !== division.endParagraph && division.canContainSingleParagraph(endParagraph)) continue; /...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/if/trailing_comment.js
tests/format/js/if/trailing_comment.js
if (code === 92 /* '\' */) {} if (code === 92 /* '\' */ /* '\' */) {} if (code === 92) /* '\' */ {} if (code === 92) { /* '\' */ } if ( 1 // Comment ) { a; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/if/non-block.js
tests/format/js/if/non-block.js
if (foo) for (i = 2; i > 0; i--) console.log(i); // foo else bar(); if (foo) do { console.log(i) } while(i--) // foo else bar();
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/if/comment_before_else.js
tests/format/js/if/comment_before_else.js
if (cond) { stuff; } /* comment */ else if (cond) { stuff; } // comment else { stuff; } if (cond) stuff; // comment else stuff;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/if/comment-between-condition-and-body.js
tests/format/js/if/comment-between-condition-and-body.js
if (1) { // foo may not exist doThing(foo); } if (1){}else { // foo may not exist doThing(foo); } if (2) // foo may not exist { doThing(foo); } if (2){}else // foo may not exist { doThing(foo); } if (3)// foo may not exist { doThing(foo); } if (3){}else// foo may not exist { doThing(foo); } if (4)/* foo ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/if/format.test.js
tests/format/js/if/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/if/condition-break/unary-expression.js
tests/format/js/if/condition-break/unary-expression.js
if (!( node.type === "ImportExpression" || node.type === "TSImportType" || node.type === "TSExternalModuleReference")); while (!( node.type === "ImportExpression" || node.type === "TSImportType" || node.type === "TSExternalModuleReference")); do {} while (!( node.type === "ImportExpression" || node.ty...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/if/condition-break/real-world-cases.js
tests/format/js/if/condition-break/real-world-cases.js
{{ if (!doesImmediatelyReturnFunctionExpression({ node: current,returns,})) { } if (!validatePredefinedFormat(config, name, node, originalName, modifiers)) {} }} if ( ![ AST_NODE_TYPES.ArrowFunctionExpression, AST_NODE_TYPES.FunctionDeclaration, AST_NODE_TYPES.FunctionExpress...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/if/condition-break/boolean-expression.js
tests/format/js/if/condition-break/boolean-expression.js
if (Boolean( node.type === "ImportExpression" || node.type === "TSImportType" || node.type === "TSExternalModuleReference")); while (Boolean( node.type === "ImportExpression" && node.type === "TSImportType" && node.type === "TSExternalModuleReference")); do {} while (Boolean( node.type === "ImportExpres...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/if/condition-break/format.test.js
tests/format/js/if/condition-break/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/binary_math/parens.js
tests/format/js/binary_math/parens.js
const result = (a + b) >>> 1; var sizeIndex = ((index - 1) >>> level) & MASK; var from = offset > left ? 0 : (left - offset) >> level; var to = ((right - offset) >> level) + 1; if (rawIndex < 1 << (list._level + SHIFT)) {} var res = size < SIZE ? 0 : (((size - 1) >>> SHIFT) << SHIFT); sign = 1 - (2 * (b[3] >> 7)); expo...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/binary_math/format.test.js
tests/format/js/binary_math/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/partial-application/test.js
tests/format/js/partial-application/test.js
const addOne = add(1, ?); // apply from the left addOne(2); // 3 const addTen = add(?, 10); // apply from the right addTen(2); // 12 // with pipeline let newScore = player.score |> add(7, ?) |> clamp(0, 100, ?); // shallow stack, the pipe to `clamp` is the same frame as the pipe to `add`.
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/partial-application/format.test.js
tests/format/js/partial-application/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/invalid-code/duplicate_bindings.js
tests/format/js/invalid-code/duplicate_bindings.js
class A{} class A{}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/invalid-code/format.test.js
tests/format/js/invalid-code/format.test.js
runFormatTest(import.meta, ["babel"], { errors: { acorn: true, espree: true }, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/source-phase-imports/import-source-dynamic-import.js
tests/format/js/source-phase-imports/import-source-dynamic-import.js
import.source("foo");
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/source-phase-imports/import-source-attributes-expression.js
tests/format/js/source-phase-imports/import-source-attributes-expression.js
import.source("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/source-phase-imports/import-source-binding-from.js
tests/format/js/source-phase-imports/import-source-binding-from.js
import source from from "x";
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/source-phase-imports/import-source-binding-source.js
tests/format/js/source-phase-imports/import-source-binding-source.js
import source source from "x";
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/source-phase-imports/import-source.js
tests/format/js/source-phase-imports/import-source.js
import source 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/source-phase-imports/import-source-attributes-declaration.js
tests/format/js/source-phase-imports/import-source-attributes-declaration.js
import source s 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/source-phase-imports/default-binding.js
tests/format/js/source-phase-imports/default-binding.js
import source from "x";
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/source-phase-imports/no-namespace.js
tests/format/js/source-phase-imports/no-namespace.js
import source * as 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/source-phase-imports/no-named.js
tests/format/js/source-phase-imports/no-named.js
import source { 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/source-phase-imports/format.test.js
tests/format/js/source-phase-imports/format.test.js
const importSourceTests = [ "import-source-attributes-declaration.js", "import-source-attributes-expression.js", "import-source-binding-from.js", "import-source-binding-source.js", "import-source-dynamic-import.js", "import-source.js", ]; const invalidSyntaxTests = ["no-namespace.js", "no-named.js"]; runFo...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-css/issue-16692.js
tests/format/js/multiparser-css/issue-16692.js
const c1 = styled.div` border: 1px ${solid} red; `; const c2 = styled.div` font-size: var(--font-size-h${level}); `; const c3 = styled.div` grid-area: area-${area}; `; const c4 = styled.div` grid-area: var(--${one}); `; const c5 = styled.div` font-size: var(--font-siz...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-css/issue-11797.js
tests/format/js/multiparser-css/issue-11797.js
const paragraph1 = css` font-size: 12px; transform: ${vert ? 'translateY' : 'translateX'}(${translation + handleOffset}px); `; const paragraph2 = css` transform: ${expr}(30px); `; const paragraph3 = css` transform: ${expr} (30px); `;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-css/issue-9072.js
tests/format/js/multiparser-css/issue-9072.js
const style1 = css` width:${size+10}${sizeUnit}; border:${size/10} ${sizeUnit} solid ${color}; `; const style2 = css` width: ${size + 10}${sizeUnit}; border: ${size / 10} ${sizeUnit} solid ${color}; `; const style3 = css` foo: ${foo}${bar} ${baz}; `;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-css/styled-components-multiple-expressions.js
tests/format/js/multiparser-css/styled-components-multiple-expressions.js
const Header = styled.div` ${something()} & > ${Child}:not(:first-child) { margin-left:5px; } ` const Header2 = styled.div` ${something()} & > ${Child}${Child2}:not(:first-child) { margin-left:5px; } ` styled.div`${foo}-idle { }` styled.div`${foo}-0-idle { }` styled.div` font-family: "${a}", "${b}"; `
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-css/issue-11400.js
tests/format/js/multiparser-css/issue-11400.js
css`foo:bar {}`; css`foo:${bar} {}`; css`foo:${bar}:${baz} {}`; css`foo:bar { color: ${baz} }`;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-css/colons-after-substitutions.js
tests/format/js/multiparser-css/colons-after-substitutions.js
const Icon = styled.div` flex: none; transition: fill 0.25s; width: 48px; height: 48px; ${Link}:hover { fill: rebeccapurple; } ${Link} :hover { fill: yellow; } ${media.smallDown}::before {} `
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-css/issue-2883.js
tests/format/js/multiparser-css/issue-2883.js
export const foo = css` &.foo .${bar}::before,&.foo[value="hello"] .${bar}::before { position: absolute; } `; export const foo2 = css` a.${bar}:focus,a.${bar}:hover { color: red; } `; export const global = css` button.${foo}.${bar} { color: #fff; } `;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-css/issue-8352.js
tests/format/js/multiparser-css/issue-8352.js
const StyledComponent = styled.div` margin-right: -4px; ${Container}.isExpanded & { transform: rotate(-180deg); } `; const StyledComponent2 = styled.div` margin-right: -4px; ${abc}.camelCase + ${def}.camelCase & { transform: rotate(-180deg); } `;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-css/issue-5961.js
tests/format/js/multiparser-css/issue-5961.js
const Steps = styled.div` @media (min-width: 1px) { ${Step}:nth-child(odd) {} } `; const Steps2 = styled.div` @media (min-width: ${breakpoints.lg}) { ${Step} { margin-bottom: 90px; } ${Step}:nth-child(odd) { ${StepItemDescription} { grid-row: 1; grid-column: 3 / span ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-css/issue-2636.js
tests/format/js/multiparser-css/issue-2636.js
export const ButtonWrapper = styled.button` ${base} ${hover} ${opaque} ${block} ${active} ${disabled} ${outline} ${dashed} ${spacing} `; export const ButtonWrapper2 = styled.button` ${base} ${hover} ${opaque} ${block} ${active} ${disabled} ${outline} ${dashed} ${spacing} `;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-css/issue-5697.js
tests/format/js/multiparser-css/issue-5697.js
const StyledH1 = styled.div` font-size: 2.5em; font-weight: ${(props) => (props.strong ? 500 : 100)}; font-family: ${constants.text.displayFont.fontFamily}; letter-spacing: ${(props) => (props.light ? '0.04em' : 0)}; color: ${(props) => props.textColor}; ${(props) => props.center ? ` display: flex...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-css/styled-components.js
tests/format/js/multiparser-css/styled-components.js
const ListItem1 = styled.li``; const ListItem2 = styled.li` `; const Dropdown = styled.div`position: relative;` const Button = styled.button` color: palevioletred ; font-size : 1em ; `; const TomatoButton = Button.extend` color : tomato ; border-color : tomato ; `; Button.extend.attr({})` border-...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-css/colons-after-substitutions2.js
tests/format/js/multiparser-css/colons-after-substitutions2.js
const Icon = styled.div` height: 48px; ${Link}:nth-child(2) { fill: rebeccapurple; } `; const Icon2 = styled.div` height: 48px; ${Link}:empty:before{ fill: rebeccapurple; } `; const Icon3 = styled.div` height: 48px; ${Link}:not(:first-child) { fill: rebeccapurple; } `;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-css/issue-6259.js
tests/format/js/multiparser-css/issue-6259.js
export const Group = styled.div` margin: 0; .input { margin: 0; } ${StyledInput}:not(:first-child) { margin: 0; } & > :not(.${inputWrap}):not(${Button}) { display: flex; } `
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-css/url.js
tests/format/js/multiparser-css/url.js
styled.div`color:red;background: url(http://example.com?q=${foo})`
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/multiparser-css/format.test.js
tests/format/js/multiparser-css/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/multiparser-css/var.js
tests/format/js/multiparser-css/var.js
const Something = styled.div` background: var(--${one}); /* ... */ border: 1px solid var(--${two}); /* ... */ `; const StyledPurchaseCard = styled(Card)` min-width: 200px; background-color: var(--${props => props.color}); color: #fff; `; const v1 = css` prop: var(--global--color--${props.variant}); `; con...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false