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/flow-repo/es6modules/ES6_ExportFrom_Intermediary1.js
tests/format/flow-repo/es6modules/ES6_ExportFrom_Intermediary1.js
/** * @providesModule ES6_ExportFrom_Intermediary1 * @flow */ export { numberValue1, numberValue2 as numberValue2_renamed } from "ES6_ExportFrom_Source1";
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/es6modules/ES6_Default_NamedClass1.js
tests/format/flow-repo/es6modules/ES6_Default_NamedClass1.js
/** * @providesModule ES6_Default_NamedClass1 * @flow */ export default class Foo { givesANum(): number { return 42; }}; // Regression test for https://github.com/facebook/flow/issues/511 // // Default-exported class should also be available in local scope new Foo();
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/es6modules/es6modules.js
tests/format/flow-repo/es6modules/es6modules.js
/* @flow */ // ===================== // // == Path Resolution == // // ===================== // // @providesModule import * as DefaultA from "A"; var a1: number = DefaultA.numberValue1; var a2: string = DefaultA.numberValue1; // Error: number ~> string // File path import * as DefaultB from "./B"; var b1: number = D...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/es6modules/format.test.js
tests/format/flow-repo/es6modules/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-repo/taint/comparator.js
tests/format/flow-repo/taint/comparator.js
// @flow // Should cause an error. function f(x : $Tainted<string>, y : $Tainted<number>) { var z : $Tainted<bool> = x < y; } // Should cause an error. function f1(x : string, y : $Tainted<number>) { var z : $Tainted<bool> = x < y; } // Should cause an error. function f2(x : $Tainted<string>, y : number) { var z ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/taint/call-object-property.js
tests/format/flow-repo/taint/call-object-property.js
// @flow function foo(x : $Tainted<string>, o : Object) { // Error o.f(x); } function foo1(x : $Tainted<string>, o : {f : (y : $Tainted<string>) => void}) { o.f(x); } function foo2(o1 : Object, o2 : {t : $Tainted<string>}) { o1.f(o2.t); } function foo3<T>(x : $Tainted<T>, o : {f : (y : $Tainted<T>) => void}) {...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/taint/taint3.js
tests/format/flow-repo/taint/taint3.js
/* * * @flow */ class A { f(tainted : $Tainted<string>) { // The Tainted annotation should still flow. var safe = tainted; // This should give a warning. var loc : string = safe; } }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/taint/adder.js
tests/format/flow-repo/taint/adder.js
// @flow function f(x : $Tainted<number>, y : $Tainted<number>) { var z : $Tainted<number> = x + y; } function f1(x : $Tainted<number>, y : number) { var z : $Tainted<number> = x + y; } function f2(x : number, y : $Tainted<number>) { var z : $Tainted<number> = x + y; } // This should cause an error. function f3(...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/taint/any_object.js
tests/format/flow-repo/taint/any_object.js
// @flow let tests = [ // setting a property function(x: $Tainted<string>, y: string) { let obj: Object = {}; obj.foo = x; // error, taint ~> any obj[y] = x; // error, taint ~> any }, // getting a property function() { let obj: Object = { foo: 'foo' }; (obj.foo: $Tainted<string>); // ok ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/taint/function.js
tests/format/flow-repo/taint/function.js
// @flow let tests = [ // flows any to each param function(x: any, y: $Tainted<string>) { x(y); // error, taint ~> any }, // calling `any` returns `any` function(x: any, y: $Tainted<string>) { let z = x(); z(y); } ];
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/taint/taint2.js
tests/format/flow-repo/taint/taint2.js
/* * * @flow */ class A { f(tainted : $Tainted<string>) { // This *should* give a warning. fakeDocument.location.assign(tainted); } }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/taint/use-types.js
tests/format/flow-repo/taint/use-types.js
/* * @flow */ // Should cause an error. function foo (x : $Tainted<number>) { var should_fail : number = x * 42; } // Should cause an error. function foo1 (x : $Tainted<{f: number}>) { var ok : number = x.f; } // Should cause an error. function foo2 (o : {f (y:number):number}, t: $Tainted<number>) { return o.f...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/taint/globals.js
tests/format/flow-repo/taint/globals.js
// @flow class A { f(x : $Tainted<FakeLocation>) { fakeDocument.location = x; // error doStuff(x); // ok } f1(x : $Tainted<FakeLocation>) { // TODO(rcastano): should cause an error. window.fakeLocation = x; } }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/taint/taint1.js
tests/format/flow-repo/taint/taint1.js
/* * * @flow */ class A { f(tainted : $Tainted<string>) { // This shouldn't give a warning (both are tainted) var also_tainted : $Tainted<string> = tainted; } }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/taint/taint4.js
tests/format/flow-repo/taint/taint4.js
/* * * @flow */ var safe : string = "safe"; // This should be allowed. var tainted : $Tainted<string> = safe function f(x : $Tainted<any>) { // Should cause error. var y : any = x; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/taint/lib.js
tests/format/flow-repo/taint/lib.js
declare class FakeLocation { assign(url: string): void; } declare class FakeDocument { location: FakeLocation; } declare function doStuff(x: $Tainted<any>): void; declare var fakeDocument: FakeDocument; declare var fakeLocation: FakeLocation;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/taint/format.test.js
tests/format/flow-repo/taint/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-repo/def_site_variance/test.js
tests/format/flow-repo/def_site_variance/test.js
class Variance<+Out,-In> { foo(x: Out): Out { return x; } bar(y: In): In { return y; } } class A { } class B extends A { } function subtyping( v1: Variance<A,B>, v2: Variance<B,A> ) { (v1: Variance<B,A>); // error on both targs (A ~/~> B) (v2: Variance<A,B>); // OK for both targs (B ~> A) } class PropVar...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/def_site_variance/format.test.js
tests/format/flow-repo/def_site_variance/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-repo/constructor/constructor.js
tests/format/flow-repo/constructor/constructor.js
class C { constructor() { } } class D { constructor():number { } } // the return type of a constructor overrides the type of the class declare class Bar<T> {} declare class Foo<T> { constructor<U>(iterable: U): Bar<U>; } (new Foo('x'): Bar<string>); // ok (new Foo(123): Bar<string>); // error, number !~> st...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/constructor/format.test.js
tests/format/flow-repo/constructor/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-repo/config_ignore/foo.js
tests/format/flow-repo/config_ignore/foo.js
/* @flow */ // No error, this file is ignored var x: number = "string";
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/config_ignore/format.test.js
tests/format/flow-repo/config_ignore/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-repo/config_ignore/dir/foo.js
tests/format/flow-repo/config_ignore/dir/foo.js
/* @flow */ var x: number = "string"; // Error string ~> number
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/config_ignore/dir/format.test.js
tests/format/flow-repo/config_ignore/dir/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-repo/promises/resolve_global.js
tests/format/flow-repo/promises/resolve_global.js
/** * test Promise name resolution * @flow */ /** * 1. introduce shadowing bindings for important names */ class Promise {} /** * 2. implicit refs to Promise during desugaring should be unaffected */ async function foo(x: boolean) { if (x) { return {bar: 'baz'}; } else { return null; } } async f...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/promises/resolve_void.js
tests/format/flow-repo/promises/resolve_void.js
// @flow (Promise.resolve(): Promise<number>); // error (Promise.resolve(undefined): Promise<number>); // error
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/promises/promise.js
tests/format/flow-repo/promises/promise.js
/** * @flow */ ////////////////////////////////////////////////// // == Promise constructor resolve() function == // ////////////////////////////////////////////////// // Promise constructor resolve(T) -> then(T) new Promise(function(resolve, reject) { resolve(0); }).then(function(num) { var a: number = num; ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/promises/all.js
tests/format/flow-repo/promises/all.js
// @flow declare var pstr: Promise<string>; declare var pnum: Promise<number>; Promise.all([ pstr, pnum, true, // non-Promise values passed through ]).then((xs) => { // tuple information is preserved let [a,b,c] = xs; (a: number); // Error: string ~> number (b: boolean); // Error: number ~> boolean (...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/promises/covariance.js
tests/format/flow-repo/promises/covariance.js
/* @flow */ async function testAll() { /* This is a test case from https://github.com/facebook/flow/issues/1143 * which was previously an error due to Array's invariance and an improper * definition of Promise.all */ const x: Array<Promise<?string>> = []; const y: Promise<Array<?string>> = Promise.all(...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/promises/format.test.js
tests/format/flow-repo/promises/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-repo/constructor_annots/test.js
tests/format/flow-repo/constructor_annots/test.js
var Foo = require('./constructors').Foo; var x: string = new Foo().x; // error, found number instead of string var y: string = Foo.y; // error, found number instead of string var z: string = new Foo().m(); var Foo2 = require('./constructors').Foo2; var x2: string = new Foo2().x; // error, found boolean instead of stri...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/constructor_annots/constructors.js
tests/format/flow-repo/constructor_annots/constructors.js
// Foo is a class-like function function Foo() { this.x = 0; // constructs objects with property x } Foo.y = 0; // has static property y Foo.prototype = { m() { return 0; } }; // exporting Foo directly doesn't work // Foo's instance and static props are not picked up exports.Foo = Foo; // so you want to type Foo, b...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/constructor_annots/format.test.js
tests/format/flow-repo/constructor_annots/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-repo/requireLazy/A.js
tests/format/flow-repo/requireLazy/A.js
/** * @providesModule A * @flow */ module.exports = { numberValueA: 1, stringValueA: "someString" };
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/requireLazy/B.js
tests/format/flow-repo/requireLazy/B.js
/** * @providesModule B * @flow */ module.exports = { numberValueB: 1, stringValueB: "someString" };
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/requireLazy/requireLazy.js
tests/format/flow-repo/requireLazy/requireLazy.js
/** * @flow */ requireLazy(['A', 'B'], function(A, B) { var num1: number = A.numberValueA; var str1: string = A.stringValueA; var num2: number = A.stringValueA; // Error: string ~> number var str2: string = A.numberValueA; // Error: number ~> string var num3: number = B.numberValueB; var str3: string = ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/requireLazy/format.test.js
tests/format/flow-repo/requireLazy/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-repo/type_param_variance/promise.js
tests/format/flow-repo/type_param_variance/promise.js
/** * At the moment, all type params are invariant with * the exception of the single param to the Promise class, * which is covariant. * * Explicit variance control via annotation is coming, * but not immediately. In the meantime, Promise's * participation in async/await makes certain kinds of * errors onerous...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/type_param_variance/format.test.js
tests/format/flow-repo/type_param_variance/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-repo/declaration_files_node/A.js
tests/format/flow-repo/declaration_files_node/A.js
/* @flow */ module.exports.fun = (): string => 'hello there!';
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/declaration_files_node/test_absolute.js
tests/format/flow-repo/declaration_files_node/test_absolute.js
/* @flow */ // This will require ./node_modules/B.js.flow var B1 = require('B'); (B1.fun(): string); // Error number ~> string // This will require ./node_modules/B.js.flow var B2 = require('B.js'); (B2.fun(): string); // Error number ~> string var C = require('package_with_full_main'); (C.fun(): string); // Error n...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/declaration_files_node/CJS.js
tests/format/flow-repo/declaration_files_node/CJS.js
// @flow module.exports = 42;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/declaration_files_node/test_relative.js
tests/format/flow-repo/declaration_files_node/test_relative.js
/* @flow */ // This will require ./A.js.flow var A1 = require('./A'); (A1.fun(): string); // Error number ~> string // This will require ./A.js.flow var A2 = require('./A.js'); (A2.fun(): string); // Error number ~> string var CJS = require('./CJS.js'); (CJS: string); (CJS: number); // Error: string ~> number
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/declaration_files_node/format.test.js
tests/format/flow-repo/declaration_files_node/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-repo/es_declare_module/es_declare_module.js
tests/format/flow-repo/es_declare_module/es_declare_module.js
// @flow import {num1, str1} from "CJS_Named"; import CJS_Named from "CJS_Named"; (num1: number); (num1: string); // Error: number ~> string (str1: string); (str1: number); // Error: string ~> number (CJS_Named: {num1: number, str1: string}); (CJS_Named: number); // Error: Module ~> number import {num2} from "CJS_Clo...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/es_declare_module/format.test.js
tests/format/flow-repo/es_declare_module/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-repo/es_declare_module/flow-typed/declares.js
tests/format/flow-repo/es_declare_module/flow-typed/declares.js
declare module "CJS_Named" { declare var num1: number; declare var str1: string; } declare module "CJS_Clobbered" { declare var num2: number; declare type numType = number; declare var exports: { numExport: number, }; } declare module "ES" { declare var strHidden: string; declare export {strHidden...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/es_declare_module/flow-typed/format.test.js
tests/format/flow-repo/es_declare_module/flow-typed/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-repo/include/included/test.js
tests/format/flow-repo/include/included/test.js
(123: string);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/include/included/format.test.js
tests/format/flow-repo/include/included/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-repo/include/foo/batman/baz.js
tests/format/flow-repo/include/foo/batman/baz.js
/* @flow */ var x: number = "not a number" // Error string ~> number
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/include/foo/batman/format.test.js
tests/format/flow-repo/include/foo/batman/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-repo/plsummit/import_class.js
tests/format/flow-repo/plsummit/import_class.js
var C = require('./export_class'); var c = new C("");
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/plsummit/export_class.js
tests/format/flow-repo/plsummit/export_class.js
class C { x: number; constructor(x: number) { this.x = x; } } module.exports = C;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/plsummit/generics.js
tests/format/flow-repo/plsummit/generics.js
/* @flow */ var r: number = 0; function foo<X>(x: X): X { r = x; return x; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/plsummit/locals.js
tests/format/flow-repo/plsummit/locals.js
/* @flow */ function foo() { var x = 0; var y = x; } function bar(x: ?string): number { if (x == null) x = ""; return x.length; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/plsummit/objects.js
tests/format/flow-repo/plsummit/objects.js
function C() { this.x = 0; } C.prototype.foo = function() { return this.x; } var c = new C(); var x: string = c.foo(); function foo() { return this.y; } function bar() { return this.foo(); } var o = { y: "", foo: foo, bar: bar }; var o2 = { y: 0, foo: foo, bar: bar }; o.bar(); var y: number = o2.bar();
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/plsummit/arrays.js
tests/format/flow-repo/plsummit/arrays.js
function foo(x) { return [x, x > 0, "number " + x]; } var [n, b, s] = foo(42); n * s.length;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/plsummit/format.test.js
tests/format/flow-repo/plsummit/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-repo/static_overload/test.js
tests/format/flow-repo/static_overload/test.js
var x: number = StaticOverload.foo(0);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/static_overload/format.test.js
tests/format/flow-repo/static_overload/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-repo/static_overload/lib/lib.js
tests/format/flow-repo/static_overload/lib/lib.js
declare class StaticOverload { static foo(x: number): number; static foo(x: string): string; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/static_overload/lib/format.test.js
tests/format/flow-repo/static_overload/lib/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-repo/type_args_nonstrict/test.js
tests/format/flow-repo/type_args_nonstrict/test.js
/** * Test nonstrict type param arity checking, * as enabled by * * [options] * experimental.strict_type_args=false * * in .flowconfig. * * @flow */ // no arity error in type annotation using polymorphic class class MyClass<T> { x: T; constructor(x: T) { this.x = x; } } var c: MyClass = new MyCla...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/type_args_nonstrict/format.test.js
tests/format/flow-repo/type_args_nonstrict/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-repo/more_classes/Foo.js
tests/format/flow-repo/more_classes/Foo.js
/* @providesModule Foo */ var Bar = require('Bar'); var Qux = require('Qux'); class Foo extends Qux { x:string; constructor(x:string) { this.x = x; } foo(y:string,z):number { this.x = y; var u = new Foo("...").qux(); var v = new Bar(y); v.self = v; return v.bar(z,u); } fooqux(x:...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/more_classes/Qux.js
tests/format/flow-repo/more_classes/Qux.js
/* @providesModule Qux */ class Qux { w:number; qux() { return this.w; } fooqux(x:number) { } } module.exports = Qux;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/more_classes/Bar.js
tests/format/flow-repo/more_classes/Bar.js
/* @providesModule Bar */ var Qux = require('Qux'); class Bar { y:number; self:Bar; constructor(y:number) { this.y = y; this.self = this; } bar(z:string,u:string):string { new Qux().w = "?"; return z; } } module.exports = Bar;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/more_classes/format.test.js
tests/format/flow-repo/more_classes/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-repo/bom/FormData.js
tests/format/flow-repo/bom/FormData.js
/* @flow */ // constructor const a: FormData = new FormData(); // correct new FormData(''); // incorrect new FormData(document.createElement('input')); // incorrect new FormData(document.createElement('form')); // correct // has const b: boolean = a.has('foo'); // correct // get const c: ?(string | File) = a.get('fo...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/bom/MutationObserver.js
tests/format/flow-repo/bom/MutationObserver.js
/* @flow */ // constructor function callback(arr: Array<MutationRecord>, observer: MutationObserver): void { return; } const o: MutationObserver = new MutationObserver(callback); // correct new MutationObserver((arr: Array<MutationRecord>) => true); // correct new MutationObserver(() => {}); // correct new MutationO...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/bom/format.test.js
tests/format/flow-repo/bom/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-repo/incremental_basic/b.js
tests/format/flow-repo/incremental_basic/b.js
// @flow var a = require('./a'); var b: number = a; module.exports = b;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/incremental_basic/c.js
tests/format/flow-repo/incremental_basic/c.js
// @flow var b = require('./b'); var c: string = b; module.exports = c;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/incremental_basic/a.js
tests/format/flow-repo/incremental_basic/a.js
// @flow var a: string = 0; 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-repo/incremental_basic/format.test.js
tests/format/flow-repo/incremental_basic/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-repo/incremental_basic/tmp2/a.js
tests/format/flow-repo/incremental_basic/tmp2/a.js
// @flow var a = 0; 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-repo/incremental_basic/tmp2/format.test.js
tests/format/flow-repo/incremental_basic/tmp2/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-repo/incremental_basic/tmp3/b.js
tests/format/flow-repo/incremental_basic/tmp3/b.js
// @flow var a = require('./a'); var b: number = a; module.exports = b;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/incremental_basic/tmp3/format.test.js
tests/format/flow-repo/incremental_basic/tmp3/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-repo/incremental_basic/tmp1/b.js
tests/format/flow-repo/incremental_basic/tmp1/b.js
// @flow var a = require('./a'); var b = a; module.exports = b;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/incremental_basic/tmp1/format.test.js
tests/format/flow-repo/incremental_basic/tmp1/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-repo/type_param_scope/default_params.js
tests/format/flow-repo/type_param_scope/default_params.js
function f<T>(a:T) { function g<U>(b:U, c:T = a) { function h(d:U = b) {} h(); // ok h(b); // ok h(c); // err, T ~> U } g(0); // ok g(0,a); // ok g(0,0); // error: number ~> T } f(0); // ok
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/type_param_scope/method_shadow.js
tests/format/flow-repo/type_param_scope/method_shadow.js
// Ensure method type params properly shadow outer type params. Subclass ensures // the generated insttype has the correct tvars. Should behave the same for // classes, interfaces, and declared classes. class A<T> { x:T; constructor(x:T) { this.x = x } m<T>(x:T):A<T> { return new A(x) } } class B<T> extends A<T...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/type_param_scope/class.js
tests/format/flow-repo/type_param_scope/class.js
class C<T> { a<A>(x:T, a:A) { this.b(x); // ok this.b(a); // error: A ~> incompatible instance of T } b(x:T) {} }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/type_param_scope/format.test.js
tests/format/flow-repo/type_param_scope/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-repo/module_use_strict/test.js
tests/format/flow-repo/module_use_strict/test.js
// @flow (01: number);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/module_use_strict/format.test.js
tests/format/flow-repo/module_use_strict/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-repo/declaration_files_haste/ExplicitProvidesModuleSameName.js
tests/format/flow-repo/declaration_files_haste/ExplicitProvidesModuleSameName.js
/* * @providesModule ExplicitProvidesModuleSameName * @flow */ module.exports.fun = (): string => "hello there";
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/declaration_files_haste/ImplicitProvidesModule.js
tests/format/flow-repo/declaration_files_haste/ImplicitProvidesModule.js
/* * @providesModule ImplicitProvidesModule * @flow */ module.exports.fun = (): string => "hello there";
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/declaration_files_haste/md5.js
tests/format/flow-repo/declaration_files_haste/md5.js
/* @providesModule md5 */
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/declaration_files_haste/test.js
tests/format/flow-repo/declaration_files_haste/test.js
/* @flow */ var Implicit = require('ImplicitProvidesModule'); (Implicit.fun(): string); var ExplicitSameName = require('ExplicitProvidesModuleSameName'); (ExplicitSameName.fun(): string); var ExplicitDifferentName = require('ExplicitProvidesModuleDifferentName'); (ExplicitDifferentName.fun(): string);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/declaration_files_haste/ExplicitProvidesModuleDifferentName.js
tests/format/flow-repo/declaration_files_haste/ExplicitProvidesModuleDifferentName.js
/* * @providesModule ExplicitProvidesModuleDifferentName * @flow */ module.exports.fun = (): string => "hello there";
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/declaration_files_haste/format.test.js
tests/format/flow-repo/declaration_files_haste/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-repo/declaration_files_haste/external/_d3/min.js
tests/format/flow-repo/declaration_files_haste/external/_d3/min.js
module.exports.fun = (): string => "hello there";
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/declaration_files_haste/external/_d3/format.test.js
tests/format/flow-repo/declaration_files_haste/external/_d3/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-repo/declaration_files_haste/ws/index.js
tests/format/flow-repo/declaration_files_haste/ws/index.js
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/flow-repo/declaration_files_haste/ws/format.test.js
tests/format/flow-repo/declaration_files_haste/ws/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-repo/declaration_files_haste/ws/test/client.js
tests/format/flow-repo/declaration_files_haste/ws/test/client.js
var ws = require('../');
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false