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/newline/backslash_2028.js
tests/format/js/newline/backslash_2028.js
1;/*a*///b
/*c*/2
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/newline/backslash_2029.js
tests/format/js/newline/backslash_2029.js
1;/*a*///b
/*c*/2
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/newline/format.test.js
tests/format/js/newline/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/arrays/numbers-with-trailing-comments.js
tests/format/js/arrays/numbers-with-trailing-comments.js
function isUnusedDiagnostic(code) { return [ 6133, // '{0}' is declared but never used. 6138, // Property '{0}' is declared but its value is never read. 6192, // All imports in import declaration are unused. 6196, // '{0}' is declared but its value is never read. 6198, 6199, 6205, // All t...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrays/numbers2.js
tests/format/js/arrays/numbers2.js
const userIds1 = [ 7234932941, 7234932722, 7234932312, 7234932933, ]; const userIds2 = [ 7234932941, 7234932722, 7234932312, 7234932933, 7234932841, 7234932166, 7234932843, 7234932978, 7234932436, ]; const userIds3 = [ 7234932941, 7234932722, 7234932312, 7234932933, 7234932841, 7...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrays/numbers-in-args.js
tests/format/js/arrays/numbers-in-args.js
expect(bifornCringerMoshedPerplexSawder.getArrayOfNumbers()).toEqual( [1, 2, 3, 4, 5] ); expect(bifornCringerMoshedPerplexSawder.getLongArrayOfNumbers()).toEqual( [ 66,57,45,47,33,53,82,81,76,78,10,78,15,98,24,29,32,27,28,76,41,65,84,35, 97,90,75,24,88,45,23,75,63,86,24,39,9,51,33,40,58,17,49,86,63,59,97,91, ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrays/nested.js
tests/format/js/arrays/nested.js
[[]]; [[], []]; [[], [], []]; [[], [0], []]; [[], [0], [0]]; [[], [0, 1], [0]]; [[], [0, 1], [0, 1]]; [[0]]; [[0], []]; [[0], [], []]; [[0], [0], []]; [[0], [0], [0]]; [[0], [0, 1], [0]]; [[0], [0, 1], [0, 1]]; [[0, 1]]; [[0, 1], []]; [[0, 1], [], []]; [[0, 1], [0], []]; [[0, 1], [0], [0]]; [[0, 1], [0, 1], [0]]; [[0, ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrays/numbers-trailing-comma.js
tests/format/js/arrays/numbers-trailing-comma.js
// --------------- print-width ------------------------------------------------- c = [ 66, 66, 57, 45, 47, 33, 53, 82, 81, 76, 66, 57, 45, 47, 33, 53, 82, 81, 223323, ];
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrays/last.js
tests/format/js/arrays/last.js
[,]; [,,]; [,,1,]; [,,1,1];
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrays/numbers-negative.js
tests/format/js/arrays/numbers-negative.js
const numbers1 = [-2017,-506252,-744011292,-7224,-70.4,-83353.6,-708.4,-174023963.52,-40385, // comment1 -380014, -253951682,-728,-15.84,-2058467564.56,-43,-33,-85134845,-67092,-1,-78820379,-2371.6,-16,7, // comment2 -62454,-4282239912, -10816495.36,0.88,-100622682,8.8,-67087.68000000001,-3758276,-25.5211,-54,-11842652...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrays/numbers3.js
tests/format/js/arrays/numbers3.js
let test_case = [ [ 66,57,45,47,33,53,82,81,76,78,10,78,15,98,24,29,32,27,28,76,41,65,84,35, 97,90,75,24,88,45,23,75,63,86,24,39,9,51,33,40,58,17,49,86,63,59,97,91, 98,99,5,69,51,44,34,69,17,91,27,83,26,34,93,29,66,88,49,33,49,73,9,81,4, 36,5,14,43,31,86,27,39,75,98,99,55,19,39,21,85,86,46,82,11,44,48,77,35, ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrays/empty.js
tests/format/js/arrays/empty.js
const a = someVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeLong.Expression || []; const b = someVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeLong.Expression || {};
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrays/array-and-tuple.js
tests/format/js/arrays/array-and-tuple.js
a = [ [1,2], [1,2], ] a = [ {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/arrays/numbers-with-holes.js
tests/format/js/arrays/numbers-with-holes.js
const numberWithHoles1 = [ 7234932941, 7234932722, 7234932312, // comment before a hole 1 , 7234932841, , 7234932843, , // comment after a hole 1 7234932436, ]; const numberWithHoles2 = [ 0x234932941, 0x234932722, 0x234932312, // comment before a hole 2 , 0x234932841, , 0x2349328...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrays/preserve_empty_lines.js
tests/format/js/arrays/preserve_empty_lines.js
a = [ 1, 2, 3, 4, ] b = [ 100, (200) , 300 , 1 , 2, 3 ] c = [ "apple", "banana", "blueberry", "red", "blue" , "yellow", "broccoli", "celery", "lettuce" , "green" , "green", "green", //an egg "egg", //a bigger egg "big egg" //the biggest egg ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrays/numbers-in-assignment.js
tests/format/js/arrays/numbers-in-assignment.js
bifornCringerMoshedPerplex.bifornCringerMoshedPerplexSawder.arrayOfNumbers = [ 1, 2, 3, 4, 5 ]; bifornCringerMoshedPerplex.bifornCringerMoshedPerplexSawder.arrayOfNumbers2 = [ 66,57,45,47,33,53,82,81,76,78,10,78,15,98,24,29,32,27,28,76,41,65,84,35, 97,90,75,24,88,45,23,75,63,86,24,39,9,51,33,40,58,17,49,...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrays/numbers1.js
tests/format/js/arrays/numbers1.js
const numbers1 = [ 7234932941, 7234932722, 7234932312, 7234932933, 7234932841, 7234932166, 7234932843, 7234932978, 7234932436, 7234932687, 7234932269, 7234932573, 7234932913, 7234932873, 7234932748, 7234932354, 7234932153, 7234932181, 7234932947, 7234932563, 7234932324, 72349...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrays/holes-in-args.js
tests/format/js/arrays/holes-in-args.js
new Test() .test() .test([, 0]) .test();
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrays/numbers-negative-comment-after-minus.js
tests/format/js/arrays/numbers-negative-comment-after-minus.js
const numbers = [-2017,-506252,-744011292,-7224,-70.4,-83353.6,-708.4,-174023963.52,-40385,-// comment1 380014, -253951682,-728,-15.84,-2058467564.56,-43,-33,-85134845,-67092,-1,-78820379,-2371.6,-16,7, // comment2 -62454,-4282239912, -10816495.36,0.88,-100622682,8.8,-67087.68000000001,-3758276,-25.5211,-54,-1184265243...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrays/numbers-with-tricky-comments.js
tests/format/js/arrays/numbers-with-tricky-comments.js
const lazyCatererNumbers = [1, 2, 4, 7, 11, 16, 22, 29, 37, 46, 56, 67, 79, 92, 106, 121, 137, 154, 172, 191, 211, 232, 254, 277, 301, 326, 352, 379, 407, 436, 466, /*block*/ // line 497, 529, 562, 596, 631, 667, 704, 742, 781, 821, 862, 904, 947, 991, 1036, 1082, 1129, 1177, 1226, // line 2 1276, 1327, 1379];
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrays/issue-10159.js
tests/format/js/arrays/issue-10159.js
{for (const srcPath of [src, `${src}.js`, `${src}/index`, `${src}/index.js`]) {}} {for (const srcPath of [123, 123_123_123, 123_123_123_1, 13_123_3123_31_43]) {}} {for (const srcPath of [123, 123_123_123, 123_123_123_1, 13_123_3123_31_432]) {}} {for (const srcPath of [123, 123_123_123, 123_123_123_1, 13_123_3123_31_432...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/arrays/format.test.js
tests/format/js/arrays/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/for/in.js
tests/format/js/for/in.js
for ((x in a);;) {} for (a=(a in b);;) {} for (let a = (b in c); ; ); for (a && (b in c); ; ); for (a => (b in c); ; ); function* g() { for (yield (a in b); ; ); } async function f() { for (await (a in b); ; ); } for (a in b) 0;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/for/for.js
tests/format/js/for/for.js
for (;;) {} for (var i = 0; i < 10; ++i) {} for (;;) 0; for (var i = 0; i < 10; ++i) 0;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/for/for-in-with-initializer.js
tests/format/js/for/for-in-with-initializer.js
// https://github.com/babel/babel/blob/HEAD/packages/babel-generator/test/fixtures/parentheses/in-inside-for/input.js for (var a = (b in c) in {}); for (var a = 1 || (b in c) in {}); for (var a = 1 + (2 || (b in c)) in {}); for (var a = (() => b in c) in {}); for (var a = 1 || (() => b in c) in {}); for (var a = (() =...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/for/no-update.js
tests/format/js/for/no-update.js
for ( let i = 0, j = 0, len = allMatches.length, lenJ = selections.length;i < len;) {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/for/9812-unstable.js
tests/format/js/for/9812-unstable.js
for(x of y) // comment {bar();} for(x of y) // comment {} for(x of y) // comment ;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/for/9812.js
tests/format/js/for/9812.js
for (const p of ['fullName', 'organ', 'position', 'rank']) // comment form.setValue(`${prefix}.data.${p}`, response[p]) for(x of y) // comment bar(); for(x in y) // comment bar(); for(;;) // comment bar(); for(x of y) // comment1 // comment2 bar(); for(x in y) // comment1 // comment2 ba...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/for/continue-and-break-comment-without-blocks.js
tests/format/js/for/continue-and-break-comment-without-blocks.js
for(;;) continue // comment ; for (;;) break // comment ; for (const f of []) continue // comment ; for (const f of []) break // comment ; for (const f in {}) continue // comment ; for (const f in {}) break // comment ; for(;;) continue // comment ; for (;;) break // comment ; for (const f of []) continue // co...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/for/continue-and-break-comment-2.js
tests/format/js/for/continue-and-break-comment-2.js
for(;;) { continue // comment ; } for (;;) { break // comment ; } for (const f of []) { continue // comment ; } for (const f of []) { break // comment ; } for (const f in {}) { continue // comment ; } for (const f in {}) { break // comment ; }...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/for/comment.js
tests/format/js/for/comment.js
for (x /*a*/ in //b y) //c ; for (x in /*a*/ //b y); //c for (x /*a*/ in y); //b //c for (x //a in y); for(x in //a y); for (x /*a*/ of //b y) //c ; for (x of /*a*/ //b y); //c for (x /*a*/ of y); //b //c for (x //a of y); for(x of //a y);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/for/parentheses.js
tests/format/js/for/parentheses.js
// https://github.com/babel/babel/blob/HEAD/packages/babel-generator/test/fixtures/parentheses/in-inside-for/input.js for (var a = (b in c);;); for (var a = 1 || (b in c);;); for (var a = 1 + (2 || (b in c));;); for (var a = (() => b in c);;); for (var a = 1 || (() => b in c);;); for (var a = (() => { b in c; });;); f...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/for/format.test.js
tests/format/js/for/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"], { errors: { flow: ["parentheses.js", "for-in-with-initializer.js"], typescript: ["parentheses.js", "for-in-with-initializer.js"], }, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/for/var.js
tests/format/js/for/var.js
for (a in b) var c = {}; [];
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/for/continue-and-break-comment-1.js
tests/format/js/for/continue-and-break-comment-1.js
for(;;) { continue // comment ; } for (;;) { break // comment ; } for (const f of []) { continue // comment ; } for (const f of []) { break // comment ; } for (const f in {}) { continue // comment ; } for (const f in {}) { break // comment ; } while(true) { cont...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/extra-spaces-and-asterisks.js
tests/format/js/comments-closure-typecast/extra-spaces-and-asterisks.js
const foo1 = /** @type {!Foo} */(bar); const foo2 = /** @type {!Foo} **/(bar); const foo3 = /** @type {!Foo} * */(bar); const foo4 = /** @type {!Foo} ***/(bar); const foo5 = /** @type {!Foo} * * */(bar); const foo6 = /** @type {!Foo} *****/(bar); const foo7 = /** @type {!Foo} * * * * */(bar); const foo8 = /** @...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/array-and-object.js
tests/format/js/comments-closure-typecast/array-and-object.js
foo = /** @type A */ ({ // comment width, height, ...margins, }); foo = /** @type A */ ([ // comment width, height, ...margins, ]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/iife-issue-5850-isolated.js
tests/format/js/comments-closure-typecast/iife-issue-5850-isolated.js
const a = /** @param {*} 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-closure-typecast/non-casts.js
tests/format/js/comments-closure-typecast/non-casts.js
/* @type { } */ z(x => { (foo)((bar)(2+(3))) return (1); }) /** @type { } */ z(x => { (foo)((bar)(2+(3))) return (1); }) /** @type {number} */ let q = z(x => { return (1); }) const w1 = /** @typefoo Foo */ (value);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/object-with-comment.js
tests/format/js/comments-closure-typecast/object-with-comment.js
const objectWithComment = /** @type MyType */ ( /* comment */ { foo: bar } ); const objectWithComment2 = /** @type MyType */ ( /* comment */ { foo: bar } );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/comment-placement.js
tests/format/js/comments-closure-typecast/comment-placement.js
const foo1 = /** @type {string} */ (value); const foo2 = /** @type {string} */ (value); const foo3 = /** @type {string} */ (value); const foo4 = /** @type {string} */(value); const foo5 = /** @type {string} */ ( value );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/member.js
tests/format/js/comments-closure-typecast/member.js
foo = (/** @type {!Baz} */ (baz).bar);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/closure-compiler-type-cast.js
tests/format/js/comments-closure-typecast/closure-compiler-type-cast.js
// test to make sure comments are attached correctly let inlineComment = /* some comment */ ( someReallyLongFunctionCall(withLots, ofArguments)); let object = { key: /* some comment */ (someReallyLongFunctionCall(withLots, ofArguments)) }; // preserve parens only for type casts let assignment = /** @type {string}...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/nested.js
tests/format/js/comments-closure-typecast/nested.js
foo = /** @type {!Foo} */ (/** @type {!Baz} */ (baz).bar ); const BarImpl = /** @type {BarConstructor} */ ( /** @type {unknown} */ (function Bar() { throw new Error("Internal error: Illegal constructor"); }) );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/satisfies.js
tests/format/js/comments-closure-typecast/satisfies.js
module.exports = /** @satisfies {Record<string, string>} */ ({ hello: 1337, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/issue-4124.js
tests/format/js/comments-closure-typecast/issue-4124.js
/** @type {Object} */(myObject.property).someProp = true; (/** @type {Object} */(myObject.property)).someProp = true; const prop = /** @type {Object} */(myObject.property).someProp; const test = /** @type (function (*): ?|undefined) */ (goog.partial(NewThing.onTemplateChange, rationaleField, typeField)); const...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/comment-in-the-middle.js
tests/format/js/comments-closure-typecast/comment-in-the-middle.js
var a = /** * bla bla bla * @type {string | * number * } * bla bla bla */ //2 ((window['s'])).toString(); console.log(a.foo());
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/ways-to-specify-type.js
tests/format/js/comments-closure-typecast/ways-to-specify-type.js
const curlyBraces = /** @type {string} */ (foo); const curlyBraces2 = /**@type {string} */ (foo); const noWhitespace = /** @type{string} */ (foo); const noWhitespace2 = /**@type{string} */ (foo); const noBraces = /** @type string */ (foo); const parens = /** @type (string | number) */ (foo); // Prettier just searches ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/binary-expr.js
tests/format/js/comments-closure-typecast/binary-expr.js
var a = b || /** @type {string} */ (c);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/styled-components.js
tests/format/js/comments-closure-typecast/styled-components.js
const OverlapWrapper = /** @type {import('styled-components').ThemedStyledFunction<'div',null,{overlap: boolean}>} */ (styled.div)` position:relative; > { position: absolute; bottom: ${p => p.overlap === 'previous' && 0}; top: ${p => p.overlap === 'next' && 0}; } `
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/iife.js
tests/format/js/comments-closure-typecast/iife.js
const helpers1 = /** @type {Helpers} */ (( (helpers = {}) => helpers )()); const helpers2 = /** @type {Helpers} */ (( function() { return something } )()); const helpers = /** @type {Helpers} */ (( /** @param {Partial<Helpers>} helpers */ (helpers = {}) => helpers )());
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/superclass.js
tests/format/js/comments-closure-typecast/superclass.js
class Foo extends /** @type {string} */ (Bar) {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/issue-8045.js
tests/format/js/comments-closure-typecast/issue-8045.js
const myLongVariableName = /** @type {ThisIsAVeryLongTypeThatShouldTriggerLineWrapping} */ (fooBarBaz); function jsdocCastInReturn() { return /** @type {ThisIsAVeryLongTypeThatShouldTriggerLineWrapping} */ (fooBarBaz); } const myLongVariableFoo1 = /** @type {ThisIsAVeryLongTypeThatShouldTriggerLineWrapping} */ ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/issue-9358.js
tests/format/js/comments-closure-typecast/issue-9358.js
const fooooba1 = /** @type {Array.<fooo.barr.baaaaaaz>} */ (fooobaarbazzItems || foo); const fooooba2 = /** @type {Array.<fooo.barr.baaaaaaz>} */ (fooobaarbazzItems + foo); const fooooba3 = /** @type {Array.<fooo.barr.baaaaaaz>} */ (fooobaarbazzItems || foo) ? foo : bar; const fooooba4 = /** @type {Array.<fooo.barr.baa...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/comments-closure-typecast/format.test.js
tests/format/js/comments-closure-typecast/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/in/arrow-function.js
tests/format/js/in/arrow-function.js
const x = () => [].includes(true) || "ontouchend" in document const y = () => [] in x
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/in/arrow-function-invalid.js
tests/format/js/in/arrow-function-invalid.js
() => [] in x
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/in/format.test.js
tests/format/js/in/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"], { errors: ["arrow-function-invalid.js"], });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/unary/series.js
tests/format/js/unary/series.js
1 + ++x; 1 + x++; + ++x; + x++; x++ + 1; ++x + 1; 1 - --x; 1 - x--; - --x; - x--; x-- - 1; --x - 1;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/unary/object.js
tests/format/js/unary/object.js
state = { // students hoverColumn: -1 };
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/unary/format.test.js
tests/format/js/unary/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/assignment/chain.js
tests/format/js/assignment/chain.js
let bifornCringerMoshedPerplexSawder= askTrovenaBeenaDependsRowans= glimseGlyphsHazardNoopsTieTie= averredBathersBoxroomBuggyNurl= anodyneCondosMalateOverateRetinol= annularCooeedSplicesWalksWayWay= kochabCooieGameOnOboleUnweave; bifornCringerMoshedPerplexSawder = askTrovenaBeenaDependsRowans = glimseGlyphsHazardN...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/chain-two-segments.js
tests/format/js/assignment/chain-two-segments.js
tt.parenR.updateContext = tt.braceR.updateContext = function () { if (this.state.context.length === 1) { return; } }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/issue-1966.js
tests/format/js/assignment/issue-1966.js
const aVeryLongNameThatGoesOnAndOn = this.someOtherObject.someOtherNestedObject.someLongFunctionName(); this.someObject.someOtherNestedObject = this.someOtherObject.whyNotNestAnotherOne.someLongFunctionName(); this.isaverylongmethodexpression.withmultiplelevels = this.isanotherverylongexpression.thatisalsoassigned = ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/issue-4094.js
tests/format/js/assignment/issue-4094.js
if (something) { const otherBrandsWithThisAdjacencyCount123 = Object.values(edge.to.edges).length }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/destructuring-heuristic.js
tests/format/js/assignment/destructuring-heuristic.js
{{ const { id, static: isStatic, method: isMethod, methodId, getId, setId, } = privateNamesMap.get(name); const { id1, method: isMethod1, methodId1 } = privateNamesMap.get(name); const { id2, method: isMethod2, methodId2 } = privateNamesMap.get(bifornCringer...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/binaryish.js
tests/format/js/assignment/binaryish.js
const computedDescriptionLines = (showConfirm && descriptionLinesConfirming) || (focused && !loading && descriptionLinesFocused) || descriptionLines; computedDescriptionLines = (focused && !loading && descriptionLinesFocused) || descriptionLines;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/sequence.js
tests/format/js/assignment/sequence.js
for ((i = 0), (len = arr.length); i < len; i++) { console.log(arr[i]) } for (i = 0, len = arr.length; i < len; i++) { console.log(arr[i]) }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/issue-7961.js
tests/format/js/assignment/issue-7961.js
// works as expected something.veeeeeery.looooooooooooooooooooooooooong = some.other.rather.long.chain; // does not work if it ends with a function call something.veeeeeery.looooooooooooooooooooooooooong = some.other.rather.long.chain.functionCall();
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/issue-8218.js
tests/format/js/assignment/issue-8218.js
const pendingIndicators = shield.alarmGeneratorConfiguration.getPendingVersionColumnValues; const pendingIndicatorz = shield.alarmGeneratorConfiguration.getPendingVersionColumnValues();
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/lone-arg.js
tests/format/js/assignment/lone-arg.js
let vgChannel = pointPositionDefaultRef({ model, defaultPos, channel, })() let vgChannel2 = pointPositionDefaultRef({ model, defaultPos, channel, })() const bifornCringerMoshedPerplexSawderGlyphsHa = someBigFunctionName("foo")("bar"); if (true) { node.id = this.flowParseTypeAnnotatableIdentifier(/*allo...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/issue-1419.js
tests/format/js/assignment/issue-1419.js
someReallyLongThingStoredInAMapWithAReallyBigName[pageletID] = _someVariableThatWeAreCheckingForFalsiness ? Date.now() - _someVariableThatWeAreCheckingForFalsiness : 0;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/destructuring.js
tests/format/js/assignment/destructuring.js
let { bottom: offsetBottom, left: offsetLeft, right: offsetRight, top: offsetTop, } = getPressRectOffset == null ? DEFAULT_PRESS_RECT : getPressRectOffset(); const { accessibilityModule: FooAccessibilityModule, accessibilityModule: FooAccessibilityModule2, accessibilityModule: FooAccessibilityModule3, accessib...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/issue-2482-1.js
tests/format/js/assignment/issue-2482-1.js
aParticularlyLongAndObnoxiousNameForIllustrativePurposes = anotherVeryLongNameForIllustrativePurposes; aParticularlyLongAndObnoxiousNameForIllustrativePurposes = 'a very long string for illustrative purposes'.length; aParticularlyLongAndObnoxiousNameForIllustrativePurposes = anotherVeryLongNameForIllustrativePu...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/unary.js
tests/format/js/assignment/unary.js
const loooooooooooooooooooooooooong1 = void looooooooooooooong.looooooooooooooong.loooooong; const loooooooooooooooooooooooooong2 = void "looooooooooooooooooooooooooooooooooooooooooog"; const loooooooooooooooooooooooooong3 = !looooooooooooooong.looooooooooooooong.loooooong; const loooooooooooooooooooooooooong4 = !"looo...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/issue-3819.js
tests/format/js/assignment/issue-3819.js
this.dummy.type1.dummyPropertyFunction = this.dummy.type2.dummyPropertyFunction = this.dummy.type3.dummyPropertyFunction = this.dummy.type4.dummyPropertyFunction = this.dummy.type5.dummyPropertyFunction = this.dummy.type6.dummyPropertyFunction = this.dummy.type7.dummyPropertyFunction...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/issue-2540.js
tests/format/js/assignment/issue-2540.js
manifestCache[templateId] = readFileSync(`${MANIFESTS_PATH}/${templateId}.json`, { encoding: 'utf-8' });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/issue-5610.js
tests/format/js/assignment/issue-5610.js
// Function call wrapping is not optimal for readability: // Function names tend to get pushed to the right, whereas arguments end up on the left, // creating a wide gap that the eyes have to cross in order to read the call. const {qfwvfkwjdqgz, bctsyljqucgz, xuodxhmgwwpw} = qbhtcuzxwedz(yrwimwkjeeiu, njwvozigdkfi, a...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/issue-7091.js
tests/format/js/assignment/issue-7091.js
const { imStore, showChat, customerServiceAccount } = store[config.reduxStoreName]
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/issue-2482-2.js
tests/format/js/assignment/issue-2482-2.js
class foo { bar() { const median = dates.length % 2 ? dates[half].getTime() : (dates[half - 1].getTime() + dates[half].getTime()) / 2.0; } }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/issue-7572.js
tests/format/js/assignment/issue-7572.js
const t = { "hello": world(), 'this-is-a-very-long-key-and-the-assignment-should-be-put-on-the-next-line': orMaybeIAmMisunderstandingAndIHaveSetSomethingWrongInMyConfig(), "can-someone-explain": this() };
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/discussion-15196.js
tests/format/js/assignment/discussion-15196.js
async function f() { const { section, rubric, authors, tags } = await utils.upsertCommonData(mainData); const loooooooooooooooooooooooooong1 = await looooooooooooooong.looooooooooooooong.loooooong; const loooooooooooooooooooooooooong2 = await looooooooooooooong.looooooooooooooong.loooooong(); const loooooooooo...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/issue-17437.js
tests/format/js/assignment/issue-17437.js
didScheduleRenderPhaseUpdateDuringThisPassFoo = didScheduleRenderPhaseUpdate = true
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/issue-15534.js
tests/format/js/assignment/issue-15534.js
params["redirectTo"] = `${window.location.pathname}${window.location.search}${window.location.hash}`; params["redirectTo"]["codePointAt"]["name"] = `${window.location.pathname}${window.location.search}${window.location.hash}`; params.redirectTo.bar.bar.ba.barab["foo"].abr = `${window.location.pathname}${window.lo...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/destructuring-array.js
tests/format/js/assignment/destructuring-array.js
const [ width= nextWidth, height= nextHeight, baseline= nextBaseline, ] = measureText(nextText, getFontString(element));
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/issue-10218.js
tests/format/js/assignment/issue-10218.js
const _id1 = data.createTestMessageWithAReallyLongName.someVeryLongProperty.thisIsAlsoALongProperty._id; const {_id2} = data.createTestMessageWithAReallyLongName.someVeryLongProperty.thisIsAlsoALongProperty; const {_id:id3} = data.createTestMessageWithAReallyLongName.someVeryLongProperty.thisIsAlsoALongProperty;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/issue-2184.js
tests/format/js/assignment/issue-2184.js
const areaPercentageDiff = ( topRankedZoneFit.areaPercentageRemaining - previousZoneFitNow.areaPercentageRemaining ).toFixed(2)
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/issue-6922.js
tests/format/js/assignment/issue-6922.js
async function f() { const { data, status } = await request.delete( `/account/${accountId}/documents/${type}/${documentNumber}`, { validateStatus: () => true } ); return { data, status }; } const data1 = request.delete( '----------------------------------------------', { validateStatus: () => true } ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/format.test.js
tests/format/js/assignment/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"], { errors: { hermes: ["binaryish.js"], }, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/assignment/call-with-template.js
tests/format/js/assignment/call-with-template.js
const result = template(` if (SOME_VAR === "") {} `)({ SOME_VAR: value, }); const output = template(`function f() %%A%%`)({ A: t.blockStatement([]), });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/export-default/binary_and_template.js
tests/format/js/export-default/binary_and_template.js
export default (function() {} + foo)``;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/export-default/function_in_template.js
tests/format/js/export-default/function_in_template.js
export default (function templ() {})`foo`;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/export-default/class_instance.js
tests/format/js/export-default/class_instance.js
export default (class {}.getInstance());
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/export-default/body.js
tests/format/js/export-default/body.js
export default (class {}[1] = 1);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/export-default/function_tostring.js
tests/format/js/export-default/function_tostring.js
export default (function() {}).toString();
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/export-default/iife.js
tests/format/js/export-default/iife.js
export default (function foo() {})();
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/export-default/format.test.js
tests/format/js/export-default/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/export-default/export-default-from/export.js
tests/format/js/export-default/export-default-from/export.js
export * as ns from 'mod'; export v from 'mod'; export a, * as b from 'mod'; export c, { foo } from 'mod'; export * as d from 'mod'; export { fooooooooooooooooooooooooooooooooooooooooooooooooo } from "fooooooooooooooooooooooooooooo"; export Bar from "barrrrrrrrrrrrrrrrrrrrrrrrrrrr"; export { foooooooooooooooooooooooooo...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/export-default/export-default-from/format.test.js
tests/format/js/export-default/export-default-from/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/export-default/escaped/default-escaped.js
tests/format/js/export-default/escaped/default-escaped.js
// export asyn\u{63} from "async"; export n\u{63} from "async";
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false