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/range/reversed-range.js
tests/format/js/range/reversed-range.js
foo = 1.0000;<<<PRETTIER_RANGE_END>>>bar = 1.0000;<<<PRETTIER_RANGE_START>>>baz=1.0000; // The range will be 26~13, should not format anything
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/nested3.js
tests/format/js/range/nested3.js
try { 1;i<<<PRETTIER_RANGE_START>>>f (condition) { body }<<<PRETTIER_RANGE_END>>> } catch (err) {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/issue-4206-2.js
tests/format/js/range/issue-4206-2.js
export default f<<<PRETTIER_RANGE_START>>>unction Foo(){<<<PRETTIER_RANGE_END>>> /**/ }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/issue-4206-1.js
tests/format/js/range/issue-4206-1.js
export default c<<<PRETTIER_RANGE_START>>>lass Foo{ /**/<<<PRETTIER_RANGE_END>>> }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/start-equals-end.js
tests/format/js/range/start-equals-end.js
foo = 1.0000;<<<PRETTIER_RANGE_START>>><<<PRETTIER_RANGE_END>>>bar = 1.0000;baz=1.0000; // The range will be 13~13, should not format anything
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/nested.js
tests/format/js/range/nested.js
<<<PRETTIER_RANGE_START>>>try { if (condition) { body }<<<PRETTIER_RANGE_END>>> } catch (err) {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/issue-7082.js
tests/format/js/range/issue-7082.js
export const Button = styled.<<<PRETTIER_RANGE_START>>>button` color<<<PRETTIER_RANGE_END>>>: blue; `;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/multiple-statements.js
tests/format/js/range/multiple-statements.js
call( 1, 2,3 ); call( 1, <<<PRETTIER_RANGE_START>>>2,3 ); call( 1, <<<PRETTIER_RANGE_END>>>2,3 ); call( 1, 2,3 );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/range-start.js
tests/format/js/range/range-start.js
<<<PRETTIER_RANGE_START>>>call( 1, 2,3 ); <<<PRETTIER_RANGE_END>>> // Unchanged call( 1, 2,3 );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/whitespace.js
tests/format/js/range/whitespace.js
<<<PRETTIER_RANGE_START>>> <<<PRETTIER_RANGE_END>>>
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/range.js
tests/format/js/range/range.js
function ugly ( {a=1, b = 2 } ) { function ugly ( {a=1, b = 2 } ) { function ugly ( {a=1, b = 2 } ) { `multiline template string with <<<PRETTIER_RANGE_START>>>too<<<PRETTIER_RANGE_END>>> much indentation` } } }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/boundary.js
tests/format/js/range/boundary.js
foo = 1.0000;<<<PRETTIER_RANGE_START>>>bar = 1.0000;<<<PRETTIER_RANGE_END>>>baz=1.0000; // The range will be 13~26 // `foo` ends at 13, should not format // `bar` ends at 26, should format
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/module-export2.js
tests/format/js/range/module-export2.js
import def , {named} from 'x' export * from 'd' <<<PRETTIER_RANGE_START>>> export const x <<<PRETTIER_RANGE_END>>>= 42 export default 42
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/directive.js
tests/format/js/range/directive.js
<<<PRETTIER_RANGE_START>>>'<<<PRETTIER_RANGE_END>>>aaa'; 'bbb';
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/range-end.js
tests/format/js/range/range-end.js
// Unchanged call( 1, 2,3 ); <<<PRETTIER_RANGE_START>>> call( 1, 2,3 );<<<PRETTIER_RANGE_END>>>
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/boundary-2.js
tests/format/js/range/boundary-2.js
function a( ){ a ( ); b ( );<<<PRETTIER_RANGE_START>>> <<<PRETTIER_RANGE_END>>>c ( ); d( ); }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/different-levels.js
tests/format/js/range/different-levels.js
call(1,2,3) call(1,<<<PRETTIER_RANGE_START>>>2,3) function f() { call(1,<<<PRETTIER_RANGE_END>>>2,3) }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/issue-3789-1.js
tests/format/js/range/issue-3789-1.js
export class F { <<<PRETTIER_RANGE_START>>> reformatThis<<<PRETTIER_RANGE_END>>>() { return 1; } dontTouchThis(){ return 2 ; } }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/function-body.js
tests/format/js/range/function-body.js
let fn =a((x ) => { <<<PRETTIER_RANGE_START>>> quux (); //<<<PRETTIER_RANGE_END>>> });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/nested2.js
tests/format/js/range/nested2.js
try { i<<<PRETTIER_RANGE_START>>>f (condition) { body }<<<PRETTIER_RANGE_END>>> } catch (err) {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/array.js
tests/format/js/range/array.js
a = [ , <<<PRETTIER_RANGE_START>>>,,,, , <<<PRETTIER_RANGE_END>>> , a, ]
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/module-import.js
tests/format/js/range/module-import.js
import <<<PRETTIER_RANGE_START>>> def , {named} <<<PRETTIER_RANGE_END>>> from 'x' export * from 'd' export const x = 42 export default 42
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/module-export1.js
tests/format/js/range/module-export1.js
import def , {named} from 'x' export * <<<PRETTIER_RANGE_START>>> from 'd'<<<PRETTIER_RANGE_END>>> export const x = 42 export default 42
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/issue-4206-3.js
tests/format/js/range/issue-4206-3.js
/* */ function F<<<PRETTIER_RANGE_START>>>oo(){ /**/ }<<<PRETTIER_RANGE_END>>>
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/module-export3.js
tests/format/js/range/module-export3.js
import def , {named} from 'x' export * from 'd' export const x = 42 export default <<<PRETTIER_RANGE_START>>> 42<<<PRETTIER_RANGE_END>>>
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/multiple-statements2.js
tests/format/js/range/multiple-statements2.js
call( 1, 2,3 ); <<<PRETTIER_RANGE_START>>> call( 1, 2,3 ); call( 1, 2,3 ); <<<PRETTIER_RANGE_END>>> call( 1, 2,3 );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/issue-3789-2.js
tests/format/js/range/issue-3789-2.js
export class F { <<<PRETTIER_RANGE_START>>> <<<PRETTIER_RANGE_END>>> reformatThis() { return 1; } dontTouchThis(){ return 2 ; } }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/large-dict.js
tests/format/js/range/large-dict.js
function ugly() { const dictWithSeveralEntries = { key: "value", <<<PRETTIER_RANGE_START>>> anotherKey: "another value", firstNumber: 1, secondNumber: 2<<<PRETTIER_RANGE_END>>> }; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/boundary-3.js
tests/format/js/range/boundary-3.js
a ( ); b ( );<<<PRETTIER_RANGE_START>>> <<<PRETTIER_RANGE_END>>>c ( ); d( );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/object-expression.js
tests/format/js/range/object-expression.js
const y = {<<<PRETTIER_RANGE_START>>>a:1<<<PRETTIER_RANGE_END>>>, b:2}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/range/format.test.js
tests/format/js/range/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/sloppy-mode/function-declaration-in-if.js
tests/format/js/sloppy-mode/function-declaration-in-if.js
if (false) function foo(){}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/sloppy-mode/eval-arguments-binding.js
tests/format/js/sloppy-mode/eval-arguments-binding.js
function myfunc() { var eval var arguments; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/sloppy-mode/function-declaration-in-while.js
tests/format/js/sloppy-mode/function-declaration-in-while.js
while (false) function foo(){}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/sloppy-mode/delete-variable.js
tests/format/js/sloppy-mode/delete-variable.js
function foo() { var bar = 1; delete bar;}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/sloppy-mode/eval-arguments.js
tests/format/js/sloppy-mode/eval-arguments.js
function myfunc() { eval = 1 arguments = arguments; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/sloppy-mode/labeled-function-declaration.js
tests/format/js/sloppy-mode/labeled-function-declaration.js
foo: function bar() {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/sloppy-mode/format.test.js
tests/format/js/sloppy-mode/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"], { errors: { flow: ["function-declaration-in-while.js"], hermes: [ "eval-arguments.js", "labeled-function-declaration.js", "function-declaration-in-while.js", ], acorn: ["function-declaration-in-while.js"], espree: ["func...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/with/indent.js
tests/format/js/with/indent.js
with (0) {} with (0) 1;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/with/format.test.js
tests/format/js/with/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/template-literals/styled-components-with-expressions.js
tests/format/js/template-literals/styled-components-with-expressions.js
const Button = styled.a` /* Comment */ display: ${props=>props.display}; `; styled.div` display: ${props=>props.display}; border: ${props=>props.border}px; margin: 10px ${props=>props.border}px ; `; const EqualDivider = styled.div` margin: 0.5rem; padding: 1rem; background: papayawhip ; > * { flex: 1; ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/template-literals/css-prop.js
tests/format/js/template-literals/css-prop.js
function SomeComponent (props) { // Create styles as if you're calling css and the class will be applied to the component return (<div css={` color: blue; font-size: 17 px; &:hover { color: green; } & .some-class { font-size: 20px; } `}> This will be blue until hovered. ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/template-literals/expression-break.js
tests/format/js/template-literals/expression-break.js
// https://github.com/prettier/prettier/issues/18369 _ = ` <div>${long_cond && long_cond && long_cond && long_cond && long_cond ? "content" : ""}</div> `; _ = /* comment */ ` <div>${long_cond && long_cond && long_cond && long_cond && long_cond ? "content" : ""}</div> `; _ = /* HTML */ ` <div>${long_cond && long_...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/template-literals/conditional-expressions.js
tests/format/js/template-literals/conditional-expressions.js
`111111111 222222222 333333333 444444444 555555555 666666666 777777777 ${ 1 ? 1 : 2 }`;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/template-literals/binary-exporessions.js
tests/format/js/template-literals/binary-exporessions.js
`111111111 222222222 333333333 444444444 555555555 666666666 777777777 ${1 | 2}`; `111111111 222222222 333333333 444444444 555555555 666666666 777777777 ${1 & 2}`;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/template-literals/styled-jsx-with-expressions.js
tests/format/js/template-literals/styled-jsx-with-expressions.js
<style jsx>{` div { display: ${expr}; color: ${expr}; ${expr}; ${expr}; background: red; animation: ${expr} 10s ease-out; } @media (${expr}) { div.${expr} { color: red; } ${expr} { color: red; } } @media (min-width: ${expr}) { div.${expr} { color: red; } all${...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/template-literals/sequence-expressions.js
tests/format/js/template-literals/sequence-expressions.js
`111111111 222222222 333333333 444444444 555555555 666666666 777777777 ${(1, 2)}`;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/template-literals/expressions.js
tests/format/js/template-literals/expressions.js
const long1 = `long ${a//comment .b} long longlong ${a.b.c.d.e} long longlong ${a.b.c.d.e} long longlong ${a.b.c.d.e} long long`; const long2 = `long ${a.b.c.d.e} long longlong ${loooooooooooooooooong} long longlong ${loooooooooooooooooong} long longlong ${loooooooooooooooooong} long long`; const long3 = `long long ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/template-literals/styled-jsx.js
tests/format/js/template-literals/styled-jsx.js
<style jsx>{` /* a comment */ div :global(.react-select) { color: red; display: none } `}</style>; <div> <style jsx>{` /* a comment */ div :global(.react-select) { color: red; display: none }`}</style> </div>; <div> <style jsx>{`div{color:red}`}</style> </div>; <div> <style jsx>{`This is invalid css. Sh...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/template-literals/indention.js
tests/format/js/template-literals/indention.js
[ ` 1. Go to "-{chalk.green.underline( "https://www.example.com/drupedalKangarooTransformer" )}" ${chalk.green.underline( "https://www.example.com/drupedalKangarooTransformer" )} `, ` 2. Go to "${chalk.green.underline( "https://www.example.com/drupedalKangarooTransf...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/template-literals/logical-expressions.js
tests/format/js/template-literals/logical-expressions.js
`111111111 222222222 333333333 444444444 555555555 666666666 777777777 ${1 ?? 2}`; `111111111 222222222 333333333 444444444 555555555 666666666 777777777 ${1 && 2}`; `111111111 222222222 333333333 444444444 555555555 666666666 777777777 ${1 || 2}`;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/template-literals/format.test.js
tests/format/js/template-literals/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/method-chain/pr-7889.js
tests/format/js/method-chain/pr-7889.js
const Profile = view.with({ name: (state) => state.name }).as((props) => ( <div> <h1>Hello, {props.name}</h1> </div> )) const Profile2 = view.with({ name }).as((props) => ( <div> <h1>Hello, {props.name}</h1> </div> ))
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/array-and-object.js
tests/format/js/method-chain/array-and-object.js
foo.a().b().c([n, o]) foo.a().b().c({n, o})
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/first_long.js
tests/format/js/method-chain/first_long.js
export default function theFunction(action$, store) { return action$.ofType(THE_ACTION).switchMap(action => Observable .webSocket({ url: THE_URL, more: stuff(), evenMore: stuff({ value1: true, value2: false, value3: false }) }) .filter(data => theFilter(data...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/d3.js
tests/format/js/method-chain/d3.js
d3.select('body') .append('circle') .at({ width: 30, fill: '#f0f' }) .st({ fontWeight: 600 }) const myScale = d3.scaleLinear() .domain([1950, 1980]) .range([0, width]) not.d3.select('body') .append('circle') .at({ width: 30, fill: '#f0f' }) .st({ fontWeight: 600 }) not.d3.scaleLinear() .domain([195...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/multiple-members.js
tests/format/js/method-chain/multiple-members.js
if (testConfig.ENABLE_ONLINE_TESTS === "true") { describe("POST /users/me/pet", function() { it("saves pet", function() { function assert(pet) { expect(pet).to.have.property("OwnerAddress").that.deep.equals({ AddressLine1: "Alexanderstrasse", AddressLine2: "", PostalCod...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/logical.js
tests/format/js/method-chain/logical.js
const someLongVariableName = (idx( this.props, props => props.someLongPropertyName ) || [] ).map(edge => edge.node); (veryLongVeryLongVeryLong || e).map(tickets => TicketRecord.createFromSomeLongString()); (veryLongVeryLongVeryLong || e).map(tickets => TicketRecord.createFromSomeLongString()).filter(obj => !!...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/fluent-configuration.js
tests/format/js/method-chain/fluent-configuration.js
domain .concept('Page') .val('title', 'string') .vals('widgets', 'Widget') domain .concept('Widget') .val('title', 'string') .val('color', 'Color') .val('foo', 'Foo') .val('bar', 'Bar') domain .concept('Widget') .val('title', 'string') .val('color', 'Color') domain .conce...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/simple-args.js
tests/format/js/method-chain/simple-args.js
const fieldsToSend = _(["id", extra]).without("transition").uniq(); console.log(values.filter(isValid).map(extractId).slice(-5, -1));
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/issue-3594.js
tests/format/js/method-chain/issue-3594.js
const fetched = fetch("/foo"); fetched .then(response => response.json()) .then(json => processThings(json.data.things)); let column = new Column(null, conn) .table(data.table) .json(data.column);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/short-names.js
tests/format/js/method-chain/short-names.js
const svgJsFiles = fs .readdirSync(svgDir) .filter(f => svgJsFileExtRegex.test(f)) .map(f => path.join(svgDir, f));
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/inline_merge.js
tests/format/js/method-chain/inline_merge.js
Object.keys( availableLocales({ test: true }) ) .forEach(locale => { // ... }); this.layoutPartsToHide = this.utils.hashset( _.flatMap(this.visibilityHandlers, fn => fn()) .concat(this.record.resolved_legacy_visrules) .filter(Boolean) ); var jqxhr = $.ajax("example.php") .done(doneFn) .fail(failFn)...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/13018.js
tests/format/js/method-chain/13018.js
foo(_a).bar().leet(); foo(-a).bar().leet(); foo(+a).bar().leet(); foo(~a).bar().leet(); foo(++a).bar().leet(); foo(--a).bar().leet(); foo(a++).bar().leet(); foo(a--).bar().leet();
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/assignment-lhs.js
tests/format/js/method-chain/assignment-lhs.js
document.querySelector("#output-abcdef").textContent = `metaKey pressed? ${e.metaKey}`; document.querySelector("p").textContent = `Shader program did not link successfully. Error log: ${linkErrLog}`;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/test.js
tests/format/js/method-chain/test.js
method().then(x => x) ["abc"](x => x) [abc](x => x); ({}.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/method-chain/square_0.js
tests/format/js/method-chain/square_0.js
const version = someLongString .split('jest version =') .pop() .split(EOL)[0] .trim(); const component = find('.org-lclp-edit-copy-url-banner__link')[0] .getAttribute('href') .indexOf(this.landingPageLink);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/cypress.js
tests/format/js/method-chain/cypress.js
cy.get('option:first') .should('be.selected') .and('have.value', 'Metallica') cy.get(".ready") .should("have.text", "FOO") .should("have.css", "color", "#aaa");
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/computed.js
tests/format/js/method-chain/computed.js
nock(/test/) .matchHeader('Accept', 'application/json') [httpMethodNock(method)]('/foo') .reply(200, { foo: 'bar', });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/issue-3621.js
tests/format/js/method-chain/issue-3621.js
const palindrome = str => { const s = str.toLowerCase().replace(/[\W_]/g, ''); return s === s.split('').reverse().join(''); }; const apiCurrencies = api().currencies().all() expect(cells.at(1).render().text()).toBe('link text1') expect(cells.at(2).render().text()).toBe('link text2') expect(cells.at(3).render().te...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/conditional.js
tests/format/js/method-chain/conditional.js
(a ? b : c).d(); (a ? b : c).d().e(); (a ? b : c).d().e().f(); (valid ? helper.responseBody(this.currentUser) : helper.responseBody(this.defaultUser)) .map(); (valid ? helper.responseBody(this.currentUser) : helper.responseBody(this.defaultUser)) .map().filter(); (valid ? helper.responseBody(this.current...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/break-last-call.js
tests/format/js/method-chain/break-last-call.js
export default store => { return callApi(endpoint, schema).then( response => next(actionWith({ response, type: successType })), error => next(actionWith({ type: failureType, error: error.message || 'Something bad happened' })) ) } it('should group messages with same created ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/bracket_0-1.js
tests/format/js/method-chain/bracket_0-1.js
const thingamabobMetaAlias = path.scope.getProgramParent().path.get("body")[0].node;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/bracket_0.js
tests/format/js/method-chain/bracket_0.js
function a() { function b() { queryThenMutateDOM( () => { title = SomeThing.call(root, 'someLongStringThatPushesThisTextReallyFar')[0]; } ); } }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/issue-17457.js
tests/format/js/method-chain/issue-17457.js
s.get(u)?.trigger({ triggerKind: y.SignatureHelpTriggerKind.InvokeFooBarBaz123 });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/issue-11298.js
tests/format/js/method-chain/issue-11298.js
foo1(/𠮟𠮟𠮟/).foo2(bar).foo3(baz); foo1(/叱叱叱/).foo2(bar).foo3(baz);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/comment.js
tests/format/js/method-chain/comment.js
function f() { return observableFromSubscribeFunction() // Debounce manually rather than using editor.onDidStopChanging so that the debounce time is // configurable. .debounceTime(debounceInterval); } _.a(a) /* very very very very very very very long such that it is longer than 80 columns */ .a() _....
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/computed-merge.js
tests/format/js/method-chain/computed-merge.js
[].forEach(key => { data[key]('foo') .then(() => console.log('bar')) .catch(() => console.log('baz')); }); [].forEach(key => { data('foo') [key]('bar') .then(() => console.log('bar')) .catch(() => console.log('baz')); }); window.Data[key]("foo") .then(() => a) .catch(() => b);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/break-last-member.js
tests/format/js/method-chain/break-last-member.js
SomeVeryLongUpperCaseConstant.someVeryLongCallExpression().some_very_long_member_expression weNeedToReachTheEightyCharacterLimitXXXXXXXXXXXXXXXXX.someNode .childrenInAnArray[0]; superSupersuperSupersuperSupersuperSupersuperSuperLong.exampleOfOrderOfGetterAndSetterReordered; superSupersuperSupersuperSupersuperSupersup...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/break-multiple.js
tests/format/js/method-chain/break-multiple.js
object.foo().bar().baz(); foo().bar().baz(); 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/method-chain/object-literal.js
tests/format/js/method-chain/object-literal.js
of("test") .pipe(throwIfEmpty()) .subscribe({ error(err) { thrown = err; } }); of("test") .pipe(throwIfEmpty()) .subscribe({ get foo() { bar(); } });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/issue-4125.js
tests/format/js/method-chain/issue-4125.js
// examples from https://github.com/prettier/prettier/issues/4125 const sha256 = (data) => crypto.createHash("sha256").update(data).digest("hex"); req.checkBody('id').isInt().optional(); req.checkBody('name').notEmpty().optional(); const x = moment().add(1, 'day').valueOf() // should stay on one line: const y = obj...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/18171.js
tests/format/js/method-chain/18171.js
callExprssion( instance.capabilities.get(TerminalCapability?.PromptTypeDetection) ?.promptType, ); optionalCallExprssion?.( instance.capabilities.get(TerminalCapability?.PromptTypeDetection) ?.promptType, ); new NewExpression( instance.capabilities.get(TerminalCapability?.PromptTypeDetection) ?.prom...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/this.js
tests/format/js/method-chain/this.js
const sel = this.connections .concat(this.activities.concat(this.operators)) .filter(x => x.selected);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/format.test.js
tests/format/js/method-chain/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/method-chain/complex-args.js
tests/format/js/method-chain/complex-args.js
client.execute( Post.selectAll() .where(Post.id.eq(42)) .where(Post.published.eq(true)) );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/print-width-120/issue-7884.js
tests/format/js/method-chain/print-width-120/issue-7884.js
cy.get(".ready") .should("have.text", "READY") .should("have.css", "background-color", "rgb(136, 228, 229)"); cy.get(".pending") .should("have.text", "PENDING") .should("have.css", "background-color", "rgb(253, 212, 90)"); cy.get(".live") .should("have.text", "LIVE") .sho...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/print-width-120/constructor.js
tests/format/js/method-chain/print-width-120/constructor.js
const writer = new BufferStackItem( new BinaryWriter() .writeUInt8(StackItemType.ByteArray) .writeVarBytesLE(Buffer.alloc(10, 1)) .toBuffer(), ); const writer2 = new BufferStackItem( new Extra.BinaryWriter() .writeUInt8(StackItemType.ByteArray) .writeVarBytesLE(Buffer.alloc(10, 1)) .toBuffe...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/method-chain/print-width-120/format.test.js
tests/format/js/method-chain/print-width-120/format.test.js
runFormatTest(import.meta, ["babel", "flow", "typescript"], { printWidth: 120, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/class-extends/array-and-object.js
tests/format/js/class-extends/array-and-object.js
class A extends {} {} class C extends [] {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/class-extends/complex.js
tests/format/js/class-extends/complex.js
class loooooooooooooooooooong1 extends foooooooo(foooooooo(foooooooo(foooooooo(foooooooo(foooooooo(foooooooo(foooooooo()))))))) {} class loooooooooooooooooooong2 extends function (make, model, year, owner) { this.make = make; this.model = model; this.year = year; this.owner = owner; } {} class loooooooooooooo...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/class-extends/extends.js
tests/format/js/class-extends/extends.js
// "ArrowFunctionExpression" class a1 extends (() => {}) {} // "AssignmentExpression" class a2 extends (b = c) {} // "AwaitExpression" async function f() { class a extends (await b) {} } // "BinaryExpression" class a3 extends (b + c) {} // "CallExpression" class a4 extends b() {} // "ClassExpression" class a5 ex...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/class-extends/format.test.js
tests/format/js/class-extends/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/preserve-line/member-chain.js
tests/format/js/preserve-line/member-chain.js
fooBar.doSomething('Hello World').doAnotherThing('Foo', { foo: bar }) // App configuration. .doOneMoreThing(config) .run(() => console.log('Bar')); bigDeal .doSomething('Hello World') // Hello world .doAnotherThing('Foo', { foo: bar }) // App configuration. .doOneMoreThing(config) .run(() => co...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/preserve-line/parameter-list.js
tests/format/js/preserve-line/parameter-list.js
class Foo { constructor( one, two, three, four, five, six, seven, eight, nine, ten, eleven ) {} } function foo( one, two, three, four, five, six, seven, eight, nine, ten, eleven ) {} call((a, b) => {}); call(( one, two, three, fo...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/preserve-line/argument-list.js
tests/format/js/preserve-line/argument-list.js
longArgNamesWithComments( // Hello World longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong1, // Hello World longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong2, /* Hello World */ longlonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglon...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/preserve-line/comments.js
tests/format/js/preserve-line/comments.js
function a() { const a = 5; // comment return a; } function a() { const a = 5; /* comment */ return a; } function a() { const a = 5; /* comment */ /* comment */ return a; } function a() { const a = 5; /* comment */ /* comment */ // comment return a; } function a() { const a = 5; /* comment */ /...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/preserve-line/format.test.js
tests/format/js/preserve-line/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/expression_statement/no_regression.js
tests/format/js/expression_statement/no_regression.js
// Ensure no regression. "use strict";
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/js/expression_statement/use_strict.js
tests/format/js/expression_statement/use_strict.js
// Parentheses around expression statement should be preserved in this case. ("use strict");
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false