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/css/composes/format.test.js | tests/format/css/composes/format.test.js | runFormatTest(import.meta, ["css"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/css/selector-string/format.test.js | tests/format/css/selector-string/format.test.js | runFormatTest(import.meta, ["css"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/css/atrule/format.test.js | tests/format/css/atrule/format.test.js | runFormatTest(import.meta, ["css"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/css/color/format.test.js | tests/format/css/color/format.test.js | runFormatTest(import.meta, ["css"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/css/indent/format.test.js | tests/format/css/indent/format.test.js | runFormatTest(import.meta, ["css"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/css/fill-value/format.test.js | tests/format/css/fill-value/format.test.js | runFormatTest(import.meta, ["css"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/css/grid/format.test.js | tests/format/css/grid/format.test.js | runFormatTest(import.meta, ["css"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/css/long-rule/format.test.js | tests/format/css/long-rule/format.test.js | runFormatTest(import.meta, ["css"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/css/attribute/format.test.js | tests/format/css/attribute/format.test.js | runFormatTest(import.meta, ["css"]);
runFormatTest(import.meta, ["css"], { singleQuote: true });
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/css/loose/format.test.js | tests/format/css/loose/format.test.js | runFormatTest(import.meta, ["css"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/private-class-fields/quotes.js | tests/format/flow/private-class-fields/quotes.js | class Foo
{
a:a;
'q-w': ee;
#privateProp: number;}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/private-class-fields/format.test.js | tests/format/flow/private-class-fields/format.test.js | runFormatTest(import.meta, ["flow"], { quoteProps: "consistent" });
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/ternary/arrows.js | tests/format/flow/ternary/arrows.js | // Test cases from babel
// ref: https://github.com/babel/babel/blob/614b48678095746b83bbe517c4d6b30ba8cd5c04/packages/babel-parser/test/fixtures/flow/arrows-in-ternaries/issue-13644/input.js
// `flow` cannot parse below codes
// ref: https://github.com/facebook/flow/issues/8731
(a ? (b = c) : d => e); // a ? (b =... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/ternary/format.test.js | tests/format/flow/ternary/format.test.js | runFormatTest(import.meta, ["flow"], {
errors: { flow: ["arrows.js"] },
});
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/function-parentheses/test.js | tests/format/flow/function-parentheses/test.js | type Banana = {
eat: string => boolean,
};
type Hex = {n: 0x01};
type T1 = { method: (a) => void };
type T2 = { method(a): void };
declare class X { method(a): void }
declare function f(a): void;
var f: (a) => void;
interface F1 { m(string): number }
interface F2 { m: (string) => number }
function f1(o: { f:... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/function-parentheses/single.js | tests/format/flow/function-parentheses/single.js | const selectorByPath:
Path
=> SomethingSelector<
SomethingUEditorContextType,
SomethingUEditorContextType,
SomethingBulkValue<string>
> = memoizeWithArgs(/* ... */)
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/function-parentheses/format.test.js | tests/format/flow/function-parentheses/format.test.js | runFormatTest(import.meta, ["flow"], { trailingComma: "es5" });
runFormatTest(import.meta, ["flow"], { trailingComma: "all" });
runFormatTest(import.meta, ["flow"], { arrowParens: "avoid" });
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/match/pattern-instance.js | tests/format/flow/match/pattern-instance.js | const e = match (x) {
Bort {foo: 1, bar: 2} => 1,
Burt {const x, ...} => x,
Burt {x: 1, ...const y} => y,
Foo.Bart {} => 0,
Foo["one-two"] {...} => 0,
Foo[0] {...const r} => r,
};
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/match/format.test.js | tests/format/flow/match/format.test.js | runFormatTest(import.meta, ["flow"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/match/from-hermes-repo/regression.js | tests/format/flow/match/from-hermes-repo/regression.js | type match = number;
{
const match = 1;
}
function match(match: match) {}
const a = match(1);
const b = match(1).f();
const c = match(1)
{
// block statement
}
const d = match(1) + 2;
const e = match(1)[2];
const f = match(1) ? 2 : 3;
const g = match(1) < 2;
const h = match(1) && 2;
const i = match();
const j = mat... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/match/from-hermes-repo/pattern-array.js | tests/format/flow/match/from-hermes-repo/pattern-array.js | const e = match (x) {
[10] => 1,
[const y, 1] => y,
[1, ...] => 1,
[1, 2, ...const rest] => rest,
[...let rest] => rest,
[...var rest] => rest,
[{nested: [1, const x]}] => x,
};
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/match/from-hermes-repo/expression.js | tests/format/flow/match/from-hermes-repo/expression.js | const e = match (a) {
1 => true,
'foo' => false,
2 => {obj: 'literal'},
};
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/match/from-hermes-repo/statement.js | tests/format/flow/match/from-hermes-repo/statement.js | match (a) {
1 => {
const x = 1;
f(x);
},
'foo' => {
// empty
},
2 => {
label: 'literal'
},
}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/match/from-hermes-repo/statement-sequence-arg.js | tests/format/flow/match/from-hermes-repo/statement-sequence-arg.js | match (a, b) {}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/match/from-hermes-repo/pattern-object.js | tests/format/flow/match/from-hermes-repo/pattern-object.js | const e = match (x) {
{foo: 1, bar: 2} => 1,
{'foo': 1} => 1,
{111: true} => 1,
{foo: const y} => y,
{const x, let y, var z} => y,
{const x, ...const y} => y,
{const x, ...let y} => y,
{const x, ...} => x,
};
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/match/from-hermes-repo/export.js | tests/format/flow/match/from-hermes-repo/export.js | export default match (a) {}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/match/from-hermes-repo/expression-guards.js | tests/format/flow/match/from-hermes-repo/expression-guards.js | const e = match (a) {
1 if (b) => true,
};
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/match/from-hermes-repo/expression-empty.js | tests/format/flow/match/from-hermes-repo/expression-empty.js | const e = match (a) {};
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/match/from-hermes-repo/pattern-member.js | tests/format/flow/match/from-hermes-repo/pattern-member.js | const e = match (x) {
foo.bar => true,
foo[1] => true,
foo[1n] => true,
foo["bar"] => true,
foo.bar[1] => true,
foo[1].bar["baz"] => true,
};
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/match/from-hermes-repo/statement-guards.js | tests/format/flow/match/from-hermes-repo/statement-guards.js | match (a) {
1 if (b) => {
const x = 1;
},
'foo' if (f()) => {
const x = 2;
},
2 if (x < y) => {
const x = 3;
},
}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/match/from-hermes-repo/statement-empty.js | tests/format/flow/match/from-hermes-repo/statement-empty.js | match (a) {}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/match/from-hermes-repo/pattern-core.js | tests/format/flow/match/from-hermes-repo/pattern-core.js | const e = match (x) {
"s" => 1,
true => 1,
null => 1,
3 => 1,
4n => 1,
+5 => 1,
-6 => 1,
+7n => 1,
-8n => 1,
y => 1,
const y => y,
let y => y,
var y => y,
('s') => 1,
_ => 1,
};
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/match/from-hermes-repo/pattern-or-as.js | tests/format/flow/match/from-hermes-repo/pattern-or-as.js | const e = match (x) {
"s" | true | null => 1,
| "s"
| true
| null => 1,
{foo: 1 | 2} => 2,
{foo: | 1
| 2} => 2,
{foo: [1] as y} => y,
{foo: 1 | 2 | 3 as y} => y,
{foo: (1 | 2 | 3) as y} => y,
{foo: [1] as const y} => y,
};
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/match/from-hermes-repo/format.test.js | tests/format/flow/match/from-hermes-repo/format.test.js | // Tests taken from https://github.com/facebook/hermes/tree/83c8115/test/Parser/flow/match
runFormatTest(import.meta, ["flow"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/object-comment/flow_object_comment.js | tests/format/flow/object-comment/flow_object_comment.js | export default (
{
foo,
bar
}: {
// comment
foo?: Object,
// comment 2
bar?: Object,
},
) => {}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/object-comment/format.test.js | tests/format/flow/object-comment/format.test.js | runFormatTest(import.meta, ["flow"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/declare-type/declare-type.js | tests/format/flow/declare-type/declare-type.js | declare export type DeclareExportType = number
;
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/declare-type/format.test.js | tests/format/flow/declare-type/format.test.js | runFormatTest(import.meta, ["flow"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/generic/single-identifier.js | tests/format/flow/generic/single-identifier.js | const longVariableName: Array<number> = this.foo.bar.baz.collider.body.vertices.reduce();
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/generic/nullable.js | tests/format/flow/generic/nullable.js | function formatEntireFile(
fileVersion: FileVersion,
range: atom$Range,
): Promise<?{
newCursor?: number,
formatted: string,
}> {}
function foo(): Promise<?boolean> {}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/generic/type.js | tests/format/flow/generic/type.js | type F = <T>(T) => T;
type G = (<A, B>(A) => B);
type H = { 'A': string, "B": number };
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/generic/interface.js | tests/format/flow/generic/interface.js | interface A { 'C': string; }
interface B { "D": boolean; }
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/generic/break.js | tests/format/flow/generic/break.js | var X = {
perform: function<
A, B, C, D, E, F, G,
T: (a: A, b: B, c: C, d: D, e: E, f: F) => G // eslint-disable-line space-before-function-paren
>(
method: T, scope: any,
a: A, b: B, c: C, d: D, e: E, f: F,
): G {
}
}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/generic/trailing.js | tests/format/flow/generic/trailing.js | type State = {
errors: Immutable.Map<
Ahohohhohohohohohohohohohohooh,
Fbt | Immutable.Map<ErrorIndex, Fbt>
>,
shouldValidate: boolean,
};
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/generic/function-default-type-parameters.js | tests/format/flow/generic/function-default-type-parameters.js | function foo<T: any = number>(): any {}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/generic/generic.js | tests/format/flow/generic/generic.js | const identity = <T>(t: T): T => t;
const a = 1;
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/generic/union.js | tests/format/flow/generic/union.js | type Foo = Promise<
{ ok: true, bar: string, baz: SomeOtherLongType } |
{ ok: false, bar: SomeOtherLongType }
>;
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/generic/format.test.js | tests/format/flow/generic/format.test.js | runFormatTest(import.meta, ["flow"], { trailingComma: "es5" });
runFormatTest(import.meta, ["flow"], { trailingComma: "all" });
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/function-single-destructuring/object-type-in-declare-function.js | tests/format/flow/function-single-destructuring/object-type-in-declare-function.js | declare function foo(this: { a: boolean, b: string, c: number }):
Promise<Array<foo>>
declare function bazFlip({ a: boolean, b: string, c: number }):
Promise<Array<foo>>
declare function bar(...{ a: boolean, b: string, c: number }):
Promise<Array<foo>>
declare function bar(...x: { a: boolean, b: string, c: num... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/function-single-destructuring/object.js | tests/format/flow/function-single-destructuring/object.js | function StatelessFunctionalComponent4({
isActive,
onFiltersUpdated,
onSelect,
onSubmitAndDeselect,
onCancel,
searchFilters,
title,
items,
}: MyType | null | void) {
return <div />
}
const StatelessFunctionalComponent5 = ({
isActive,
onFiltersUpdated,
onSelect,
onSubmitAndDeselect,
onCancel... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/function-single-destructuring/array.js | tests/format/flow/function-single-destructuring/array.js | function excludeFirstFiveResults4([first, second, third, fourth, fifth, ...rest]: Result[]) {
return rest;
}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/function-single-destructuring/format.test.js | tests/format/flow/function-single-destructuring/format.test.js | runFormatTest(import.meta, ["flow"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/typeapp-call/typeapp_call.js | tests/format/flow/typeapp-call/typeapp_call.js | //@flow
f<T>();
f<T><U></U>;
new C<T>;
f<T>(e);
o[e]<T>();
f<T>(x)<U>(y);
async <T>() => {};
async <T>(): T => {}
new C<T>(e);
f<T>[e];
new C<T>();
o.m<T>();
f<T>.0;
o?.m<T>(e);
o.m?.<T>(e);
f?.<T>(e);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/typeapp-call/format.test.js | tests/format/flow/typeapp-call/format.test.js | runFormatTest(import.meta, ["flow"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/proto-props/proto_props.js | tests/format/flow/proto-props/proto_props.js | declare class A { proto: T; }
declare class B { proto x: T; }
declare class C { proto +x: T; }
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/proto-props/format.test.js | tests/format/flow/proto-props/format.test.js | runFormatTest(import.meta, ["flow"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/type-guards/test.js | tests/format/flow/type-guards/test.js | declare function basic(x: mixed): x is string;
declare function asserts(x: mixed): asserts x is string;
declare function implies(x: mixed): implies x is string;
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/type-guards/format.test.js | tests/format/flow/type-guards/format.test.js | runFormatTest(import.meta, ["flow"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/enums-unknown-members/enum-unknown-members-empty.js | tests/format/flow/enums-unknown-members/enum-unknown-members-empty.js | // @flow
enum E {
...
}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/enums-unknown-members/enum-unknown-members.js | tests/format/flow/enums-unknown-members/enum-unknown-members.js | // @flow
enum E {
A,
B,
...
}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/enums-unknown-members/format.test.js | tests/format/flow/enums-unknown-members/format.test.js | runFormatTest(import.meta, ["flow"], { trailingComma: "all" });
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/hook/hook-type-annotation.js | tests/format/flow/hook/hook-type-annotation.js | type T = hook () => void;
type T = hook (bar) => SomeComponent;
type T = hook () => React.Element<typeof SomeComponentLonnnnnnnnnnnnnnnnnnnnnnnnnnnnng>;
type T = hook <T>() => void;
type T = hook <T>() => Array<Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo>;
type T = hook <T: Foooooooooooo... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/hook/declare-hook.js | tests/format/flow/hook/declare-hook.js | declare hook useFoo(): void;
declare hook useFoo(): SomeComponent;
declare hook useFoo(): React.Element<typeof SomeComponentLonnnnnnnnnnnnnnnnnnnnnnnnnnnnng>;
declare hook useFoo<T>(): void;
declare hook useFoo<T>(): Array<Fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo>;
declare hook useFoo... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/hook/hook-declaration.js | tests/format/flow/hook/hook-declaration.js | hook useFoo1() {}
export default hook useFoo2() {}
export hook useFoo3() {}
hook useFoo4(): string {}
hook useFoo5<T>() {}
hook useFoo6(...foo) {}
hook useFoo7(...rest?: Foo) {}
hook useFoo8(foo, ...bar) {}
hook useFoo9(foo: Foo, ...bar: Bar) {}
hook useFoo10(foo: () => void,): number { return; }
hook useFoo1... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/hook/format.test.js | tests/format/flow/hook/format.test.js | runFormatTest(import.meta, ["flow"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/cursor/function-type-parameter-bound.js | tests/format/flow/cursor/function-type-parameter-bound.js | function a<T<|>: X>() {}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/cursor/function-return-type.js | tests/format/flow/cursor/function-return-type.js | function a(): boolean {}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/cursor/function-predicate.js | tests/format/flow/cursor/function-predicate.js | function a()<|>: %checks(a) {}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/cursor/function-return-type-and-predicate-2.js | tests/format/flow/cursor/function-return-type-and-predicate-2.js | function a()<|>: boolean %checks {}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/cursor/declare-module-exports.js | tests/format/flow/cursor/declare-module-exports.js | declare module.exports<|>: A;
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/cursor/type-cast-expression.js | tests/format/flow/cursor/type-cast-expression.js | (a<|>: A);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/cursor/function-predicate-2.js | tests/format/flow/cursor/function-predicate-2.js | function a()<|>: %checks {}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/cursor/function-return-type-and-predicate.js | tests/format/flow/cursor/function-return-type-and-predicate.js | function a()<|>: boolean %checks(a) {}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/cursor/format.test.js | tests/format/flow/cursor/format.test.js | runFormatTest(import.meta, ["flow"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/maybe/prettier-ignore.js | tests/format/flow/maybe/prettier-ignore.js | type A = {
// prettier-ignore
+input: ?(?B),
}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/maybe/maybe_return.js | tests/format/flow/maybe/maybe_return.js | function getScaledData({x}): ?{foo: number} {}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/maybe/format.test.js | tests/format/flow/maybe/format.test.js | runFormatTest(import.meta, ["flow"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/union_intersection/test.js | tests/format/flow/union_intersection/test.js | type T5 = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13";
type T6 = "a-long-string" | "another-long-string" | "yet-another-long-string" | "one-more-for-good-measure";
type T7 =
{ eventName: "these", a: number } |
{ eventName: "will", b: number } |
{ eventName: "not", c: number }... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/union_intersection/format.test.js | tests/format/flow/union_intersection/format.test.js | runFormatTest(import.meta, ["flow"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/break-calls/type_args.js | tests/format/flow/break-calls/type_args.js | const response = something.$http.get<ThingamabobService.DetailsData>(
`api/foo.ashx/foo-details/${myId}`,
{ cache: quux.httpCache, timeout }
);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/break-calls/format.test.js | tests/format/flow/break-calls/format.test.js | runFormatTest(import.meta, ["flow"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/conditional-types-comments/comments.js | tests/format/flow/conditional-types-comments/comments.js | // @flow
type A = B extends T
? // comment
foo
: bar;
type A = B extends test /* comment
comment
comment
*/
? foo
: bar;
type T = test extends B
? /* comment
comment
comment
comment
*/
foo
: bar;
type T = test extends B
? /* comment
comment
comme... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/conditional-types-comments/format.test.js | tests/format/flow/conditional-types-comments/format.test.js | runFormatTest(import.meta, ["flow"]);
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/this-annotation/line_break.js | tests/format/flow/this-annotation/line_break.js | // @flow
type T = (this: boolean,
a: number,
b: number,
) => boolean;
type T2 = (_this: boolean,
a: number,
b: number,
) => boolean;
type A = (
this: SupperLongLongLongLongLongLongLongLongLongLongLongType,
b: number,
) => boolean;
type B = (
_this: ... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/this-annotation/declare_function.js | tests/format/flow/this-annotation/declare_function.js | // @flow
declare function foo (this : number, a : string, b) : void
declare function bar (this : number): void
declare function baz (this : number, ...a : any): void
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/this-annotation/method.js | tests/format/flow/this-annotation/method.js | // @flow
class A {
m(this : number, a : number, b : string) {}
n(this : number, ...c) {}
o(this : number) {}
}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/this-annotation/function_type.js | tests/format/flow/this-annotation/function_type.js | // @flow
type T = (this : number, a : string, b : number) => void
type U = (this : number, ...c : any) => void
type V = (this : number) => void
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/this-annotation/union_type.js | tests/format/flow/this-annotation/union_type.js | // @flow
type A = (
this: | SupperLongLongLongLongLongLongLongLongLongLongLongType | FooBarBazLorem12345,
b: number,
) => boolean;
type B = (
_this: | SupperLongLongLongLongLongLongLongLongLongLongLongType | FooBarBazLorem12345,
b: number,
) => boolean
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/this-annotation/function_declaration.js | tests/format/flow/this-annotation/function_declaration.js | // @flow
function foo (this : number, a : string, b) {}
function bar (this : number) {}
function baz (this : number, ...a) {}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/this-annotation/format.test.js | tests/format/flow/this-annotation/format.test.js | runFormatTest(import.meta, ["flow"], {
trailingComma: "all",
});
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/this-annotation/parentheses/only-parameter.js | tests/format/flow/this-annotation/parentheses/only-parameter.js | // @flow
type q = (this: string) => void;
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/this-annotation/parentheses/format.test.js | tests/format/flow/this-annotation/parentheses/format.test.js | runFormatTest(import.meta, ["flow"], { arrowParens: "always" });
runFormatTest(import.meta, ["flow"], { arrowParens: "avoid" });
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/no-semi/flow-interfaces.js | tests/format/flow/no-semi/flow-interfaces.js | declare class A {
one: boolean;
two: { three: string }
| number;
}
// NOTE: Flow and Babel both fail to apply ASI here
// declare class B {
// one: boolean
// two: { three: string }
// | number
// }
declare interface C {
one: boolean;
two: { three: string }
| number;
}
// NOTE: Fl... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/no-semi/comments.js | tests/format/flow/no-semi/comments.js | let error = new Error(response.statusText);
// comment
(error: any).response = response
x;
/* comment */ (error: any).response = response
x;
(error: any).response = response; /* comment */
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/no-semi/no-semi.js | tests/format/flow/no-semi/no-semi.js | // flow
(x: void);
(y: void)
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/no-semi/flow-class-properties.js | tests/format/flow/no-semi/flow-class-properties.js | class A {
+one = function() {};
-two = val();
static +three = val();
+#privOne = val();
static +#privTwo = val();
+[computed] = val();
}
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/no-semi/format.test.js | tests/format/flow/no-semi/format.test.js | runFormatTest(import.meta, ["flow"]);
runFormatTest(import.meta, ["flow"], { semi: false });
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/object-inexact/test.js | tests/format/flow/object-inexact/test.js | //@flow
type T = {
a: number,
...,
}
type I = {
[string]: number,
...,
}
type U = { a: number, b: number, c: number, d: number, e: number, f: number, g: number, ...};
type V = {x: {...}, y: {x: {...}, a: number, b: number, c: number, d: number, e: number, f: number, ...}, z: {...}, foo: number, bar: {foo: nu... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/object-inexact/comments.js | tests/format/flow/object-inexact/comments.js | // @flow
type Foo = {
// comment
...,
};
type Foo = {
/* comment */
...,
};
type Foo = { /* comment */ ... };
type Foo = { /* comment */
...};
type Foo = {
// comment0
// comment1
...,
};
type Foo = {
/* comment0 */
/* comment1 */
...,
};
type Foo = {
// comment
foo: string,
...
};
t... | javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
prettier/prettier | https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow/object-inexact/format.test.js | tests/format/flow/object-inexact/format.test.js | runFormatTest(import.meta, ["flow"], { trailingComma: "es5" });
runFormatTest(import.meta, ["flow"], { trailingComma: "none" });
runFormatTest(import.meta, ["flow"], { trailingComma: "all" });
| javascript | MIT | ae0e00df55d47274cc53db8d2cdcd064849e088d | 2026-01-04T14:57:20.107180Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.