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/misc/errors/js/discard-binding/invalid-object-expression.js
tests/format/misc/errors/js/discard-binding/invalid-object-expression.js
({ p: { p: { p: void }, x, }, y}); ({ p: { x: { x }, p: void, }, y}); ({ y: { x: { x }, y, }, p: void }); ({ p: void, x: x = 0 }); async({ p: void, x: x = 0 });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/discard-binding/invalid-assignment-expression.js
tests/format/misc/errors/js/discard-binding/invalid-assignment-expression.js
void = 0;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/discard-binding/format.test.js
tests/format/misc/errors/js/discard-binding/format.test.js
runFormatTest(import.meta, [ "babel", "typescript", "acorn", "espree", "meriyah", "oxc", "oxc-ts", "hermes", ]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/discard-binding/invalid-parenthesized-assignment.js
tests/format/misc/errors/js/discard-binding/invalid-parenthesized-assignment.js
[(void)] = [];
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/async-await/format.test.js
tests/format/misc/errors/js/async-await/format.test.js
import { outdent } from "outdent"; runFormatTest( { importMeta: import.meta, snippets: [ outdent` async function foo() { function bar(x = await 2) {} } `, "async (x = await 2) => {};", "f = async (a) => await a! ** 6;", "f = (a) => +a! ** 6;", "as...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/export-default-from/format.test.js
tests/format/misc/errors/js/export-default-from/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ 'export *, {} from "foo";', 'export * as foo, {} from "foo";', 'export *, {bar} from "foo";', 'export * as foo, {bar} from "foo";', ], }, ["babel"], );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/object/setter-generator.js
tests/format/misc/errors/js/object/setter-generator.js
({ set *iterator(iter) { }, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/object/getter-generator.js
tests/format/misc/errors/js/object/getter-generator.js
({ get *iterator() { }, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/object/getter-with-parameter.js
tests/format/misc/errors/js/object/getter-with-parameter.js
({ get x(a){} });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/object/setter-without-parameter.js
tests/format/misc/errors/js/object/setter-without-parameter.js
({ set x(){} });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/object/format.test.js
tests/format/misc/errors/js/object/format.test.js
runFormatTest(import.meta, ["babel", "acorn", "espree", "meriyah"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/record/format.test.js
tests/format/misc/errors/js/record/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ "#{a() {}}", "#{async b() {}}", "#{get c() {}}", "#{set d(_) {}}", "#{*e() {}}", ], }, ["babel", "acorn", "espree", "meriyah"], );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/assignment/format.test.js
tests/format/misc/errors/js/assignment/format.test.js
runFormatTest( { importMeta: import.meta, snippets: ["({}) = x;"], }, ["babel", "babel-ts", "acorn", "espree", "meriyah"], ); runFormatTest( { importMeta: import.meta, snippets: ["class Foo extends ((let)[0] = 1) {}"], }, ["acorn", "espree", "meriyah"], ); runFormatTest( { importMeta...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/known-source-type/format.test.js
tests/format/misc/errors/js/known-source-type/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ { code: 'import "foo"', filename: "script.cjs", }, { code: "with(foo) {}", filename: "module.mjs", }, { code: "delete foo", filename: "module.mJs", }, ], }, ["acorn...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/regex-v-u-flags/invalid-flags2.js
tests/format/misc/errors/js/regex-v-u-flags/invalid-flags2.js
/a/vu;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/regex-v-u-flags/invalid-flags.js
tests/format/misc/errors/js/regex-v-u-flags/invalid-flags.js
/a/ugv;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/regex-v-u-flags/format.test.js
tests/format/misc/errors/js/regex-v-u-flags/format.test.js
runFormatTest(import.meta, ["babel", "acorn", "espree", "meriyah"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/reserved-word/format.test.js
tests/format/misc/errors/js/reserved-word/format.test.js
runFormatTest( { importMeta: import.meta, snippets: ["class interface {}", 'import interface from "foo";'], }, [ // "babel", // "babel-ts", "acorn", "espree", "flow", "meriyah", // "typescript", // "hermes", // "oxc", // "oxc-ts", ], ); runFormatTest( { imp...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/literal/invalid-exponent.js
tests/format/misc/errors/js/literal/invalid-exponent.js
12.3e
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/literal/format.test.js
tests/format/misc/errors/js/literal/format.test.js
runFormatTest(import.meta, ["babel", "acorn", "espree", "meriyah"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/import/format.test.js
tests/format/misc/errors/js/import/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ "import();", "import(/* comment */);", "new import('./a.mjs');", "new import();", ], }, ["babel", "meriyah", "flow", "typescript", "babel-flow", "babel-ts"], );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/class-property-named-constructor/format.test.js
tests/format/misc/errors/js/class-property-named-constructor/format.test.js
import { outdent } from "outdent"; const cases = [ outdent` class Foo { constructor } `, outdent` class Foo { 'construct\u{6f}r' } `, outdent` class Foo { 'constructor' } `, outdent` class Foo { accessor 'construct\u{6f}r' } `, outdent` clas...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/hack-pipeline/v8intrinsic.js
tests/format/misc/errors/js/hack-pipeline/v8intrinsic.js
const status = %GetOptimizationStatus(fn) |> console.log(%);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/hack-pipeline/format.test.js
tests/format/misc/errors/js/hack-pipeline/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ "(yield y)", "(yield)", "(await y)", "(a?.b)", "a?.b", "(a.b())", "a.b()", "(a.b?.())", "a.b?.()", "yield", ].map((code) => `async function * a() { a |> foo(%) |> ${code}}`), }, ["babel"],...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/optional-chaining/format.test.js
tests/format/misc/errors/js/optional-chaining/format.test.js
import { outdent } from "outdent"; runFormatTest( { importMeta: import.meta, snippets: [ "const baz3 = new obj?.foo?.bar?.baz(); // baz instance", "const safe5 = new obj?.qux?.baz(); // undefined", "const safe6 = new obj?.foo.bar.qux?.(); // undefined", "const willThrow = new obj?.foo...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/for-of/format.test.js
tests/format/misc/errors/js/for-of/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ "for (let.foo of []);", "for (let().bar of []);", "for (let``.bar of []);", ], }, [ "babel", "espree", "meriyah", "flow", "typescript", "babel-flow", "babel-ts", ], ); runFormatTest( { importMe...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/babel-ts/format.test.js
tests/format/misc/errors/babel-ts/format.test.js
runFormatTest(import.meta, ["babel-ts"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/yaml/format.test.js
tests/format/misc/errors/yaml/format.test.js
runFormatTest(import.meta, ["yaml"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/broken-plugin/format.test.js
tests/format/misc/errors/broken-plugin/format.test.js
import createEsmUtils from "esm-utils"; const { require } = createEsmUtils(import.meta); const plugins = [ require("../../../../config/prettier-plugins/prettier-plugin-missing-comments/index.cjs"), ]; runFormatTest( { importMeta: import.meta, snippets: ["text"] }, ["missing-comments"], { plugins, }, );...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/invalid/format.test.js
tests/format/misc/errors/invalid/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ "for each (a in b) {}", "class switch() {}", "({ method() })", "({ method({}) })", "({ method(parameter,) })", ], }, [ "babel", "flow", "typescript", "babel-flow", "babel-ts", "acorn", "espr...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/babel-missing-plugins/format.test.js
tests/format/misc/errors/babel-missing-plugins/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ // https://github.com/babel/babel/commit/a466f9c310ace91484d4087f077ee6d6c8cd8789 "export type Foo = number;", // Removed "100m;", // Removed https://github.com/babel/babel/pull/16808 'import module foo from "./module.wa...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/less/format.test.js
tests/format/misc/errors/less/format.test.js
runFormatTest(import.meta, ["less"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/typescript/format.test.js
tests/format/misc/errors/typescript/format.test.js
runFormatTest(import.meta, ["typescript", "babel-ts", "oxc-ts"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/typescript/loop/format.test.js
tests/format/misc/errors/typescript/loop/format.test.js
runFormatTest( { importMeta: import.meta, snippets: ["for (var of X);", "for (var of of);", "for (var in X);"], }, ["typescript", "babel-ts", "oxc-ts"], );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/typescript/tuple/format.test.js
tests/format/misc/errors/typescript/tuple/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ // Invalid label 1 "type T = [x.y: A];", // Invalid label 2 "type T = [x<y>: A];", ], }, ["typescript", "babel-ts", "oxc-ts"], );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/typescript/abstract-accessor-with-implementation/format.test.js
tests/format/misc/errors/typescript/abstract-accessor-with-implementation/format.test.js
import { outdent } from "outdent"; runFormatTest( { importMeta: import.meta, snippets: [ outdent` abstract class Foo { abstract get getter() { } } `, outdent` abstract class Foo { abstract set setter(v) { } } `, ], }, ["typ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/typescript/interface/format.test.js
tests/format/misc/errors/typescript/interface/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ // Invalid initializer "interface I { x: number = 1;}", // Can't have mixins nor implements "interface A mixins B {}", "interface A implements B {}", ], }, ["typescript", "babel-ts", "oxc-ts"], );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/typescript/modifiers/format.test.js
tests/format/misc/errors/typescript/modifiers/format.test.js
import { outdent } from "outdent"; // `isModifierKind` in `typescript` const POSSIBLE_MODIFIERS = [ "abstract", "accessor", "async", "const", "declare", "default", "export", "in", "out", "override", "private", "protected", "public", "readonly", "static", ]; runFormatTest( { importM...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/typescript/decrement-and-increment-operators/format.test.js
tests/format/misc/errors/typescript/decrement-and-increment-operators/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ "1 ++", "(1)++", "(1)--", "++(1)", "--(1)", "(1 + 2)++", "(1 + 2)--", "++(1 + 2)", "--(1 + 2)", "(x + x)++", "(x + x)--", "++(x + x)", "--(x + x)", "a()++", "x...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/typescript/module-declaration/format.test.js
tests/format/misc/errors/typescript/module-declaration/format.test.js
runFormatTest( { importMeta: import.meta, snippets: ['namespace "a" {}', 'namespace "a";', "namespace a;"], }, ["typescript", "babel-ts", "oxc-ts"], );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/typescript/declare-function-with-body/format.test.js
tests/format/misc/errors/typescript/declare-function-with-body/format.test.js
runFormatTest( { importMeta: import.meta, snippets: ["declare function foo() {}"], }, ["typescript", "babel-ts", "oxc-ts"], );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/typescript/abstract-method-with-implementation/format.test.js
tests/format/misc/errors/typescript/abstract-method-with-implementation/format.test.js
import { outdent } from "outdent"; runFormatTest( { importMeta: import.meta, snippets: [ outdent` abstract class Foo { abstract method() { } } `, ], }, ["typescript", "babel-ts", "oxc-ts"], );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/typescript/enum/format.test.js
tests/format/misc/errors/typescript/enum/format.test.js
import { outdent } from "outdent"; runFormatTest( { importMeta: import.meta, snippets: ["1", "1n", "[1]", "[1n]", "[foo]"].map( (key) => outdent` enum Foo { ${key} = 1 } `, ), }, ["typescript", "babel-ts", "oxc-ts"], ); runFormatTest( { importMeta: import....
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/typescript/babel-ts/format.test.js
tests/format/misc/errors/typescript/babel-ts/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ "foo as any = 10;", "({ a: b as any = 2000 } = x);", "<string>foo = '100';", ], }, ["babel-ts"], );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/typescript/import-reflection/format.test.js
tests/format/misc/errors/typescript/import-reflection/format.test.js
runFormatTest(import.meta, ["typescript", "babel-ts", "oxc-ts"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/typescript/catch-clause-with-initializer/format.test.js
tests/format/misc/errors/typescript/catch-clause-with-initializer/format.test.js
runFormatTest(import.meta, ["typescript", "babel-ts", "oxc-ts"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/typescript/empty-type-arguments-parameters/format.test.js
tests/format/misc/errors/typescript/empty-type-arguments-parameters/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ "foo<>()", "(foo<>())", "new Foo<>()", "function foo<>(){}", "(function foo<>(){})", "class Foo<> {}", "(class Foo<> {})", "class Foo {constructor<>()}", "(class Foo {constructor<>()})", "class Fo...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/typescript/mapped-type/format.test.js
tests/format/misc/errors/typescript/mapped-type/format.test.js
runFormatTest(import.meta, ["typescript", "babel-ts", "oxc-ts"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/typescript/duplicated-accessibility-modifiers/format.test.js
tests/format/misc/errors/typescript/duplicated-accessibility-modifiers/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ "class A {private protected method(){}}", "class A {protected public method(){}}", "class A {private private method(){}}", "class A {private protected property}", "class A {protected public property}", "class A {private ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/invalid-interface-extends/format.test.js
tests/format/misc/errors/invalid-interface-extends/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ // https://github.com/typescript-eslint/typescript-eslint/pull/11271 // https://github.com/prettier/prettier/issues/17376 // ParenthesizedExpression "interface A extends (typeof fs) { }", // ElementAccessExpression "inte...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/babel-flow/wrong-arrow-no-parens-jsx.js
tests/format/misc/errors/babel-flow/wrong-arrow-no-parens-jsx.js
<T>(a => b);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/babel-flow/async-arrow-invalid.js
tests/format/misc/errors/babel-flow/async-arrow-invalid.js
// https://github.com/babel/babel/pull/11979 <T> async () => {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/babel-flow/format.test.js
tests/format/misc/errors/babel-flow/format.test.js
runFormatTest(import.meta, ["babel-flow", "babel"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/require-pragma/json5/format.test.js
tests/format/misc/require-pragma/json5/format.test.js
runFormatTest(import.meta, ["json5"], { requirePragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/require-pragma/vue/format.test.js
tests/format/misc/require-pragma/vue/format.test.js
runFormatTest(import.meta, ["vue"], { requirePragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/require-pragma/css/format.test.js
tests/format/misc/require-pragma/css/format.test.js
runFormatTest(import.meta, ["css"], { requirePragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/require-pragma/graphql/format.test.js
tests/format/misc/require-pragma/graphql/format.test.js
runFormatTest(import.meta, ["graphql"], { requirePragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/require-pragma/mdx/format.test.js
tests/format/misc/require-pragma/mdx/format.test.js
runFormatTest(import.meta, ["mdx"], { requirePragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/require-pragma/json/format.test.js
tests/format/misc/require-pragma/json/format.test.js
runFormatTest(import.meta, ["json"], { requirePragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/require-pragma/html/format.test.js
tests/format/misc/require-pragma/html/format.test.js
runFormatTest(import.meta, ["html"], { requirePragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/require-pragma/js/range-without-pragma.js
tests/format/misc/require-pragma/js/range-without-pragma.js
<<<PRETTIER_RANGE_START>>>var test = true<<<PRETTIER_RANGE_END>>>
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/require-pragma/js/module-with-pragma.js
tests/format/misc/require-pragma/js/module-with-pragma.js
/** * @flow * @format */ function foo(bar) { return bar + 3 + 4; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/require-pragma/js/shebang-without-pragma.js
tests/format/misc/require-pragma/js/shebang-without-pragma.js
#!/usr/bin/env node function test() { const answer = 42;console.log("%s is the answer to life, the universe, and everything", answer);}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/require-pragma/js/shebang-with-pragma.js
tests/format/misc/require-pragma/js/shebang-with-pragma.js
#!/usr/bin/env node /** * @format */ function test() { const answer = 42;console.log("%s is the answer to life, the universe, and everything", answer);}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/require-pragma/js/module-without-pragma.js
tests/format/misc/require-pragma/js/module-without-pragma.js
/** * @flow */ function foo(bar) { return bar + 3 + 4; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/require-pragma/js/range-with-pragma.js
tests/format/misc/require-pragma/js/range-with-pragma.js
/** * @prettier */ <<<PRETTIER_RANGE_START>>>var test = true<<<PRETTIER_RANGE_END>>>
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/require-pragma/js/format.test.js
tests/format/misc/require-pragma/js/format.test.js
runFormatTest( { importMeta: import.meta, snippets: ["\uFEFF#!/usr/bin/env node\n/** @format */\nprettier"], }, ["flow", "babel", "typescript"], { requirePragma: true }, );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/require-pragma/markdown/format.test.js
tests/format/misc/require-pragma/markdown/format.test.js
runFormatTest(import.meta, ["markdown"], { requirePragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/front-matter/with-plugins/format.test.js
tests/format/misc/front-matter/with-plugins/format.test.js
import { outdent } from "outdent"; import prettierPluginDummyToml from "../../../../config/prettier-plugins/prettier-plugin-dummy-toml/index.js"; runFormatTest( { importMeta: import.meta, snippets: [ outdent` +++ TOML Front Matter content +++ `, outdent` ---t...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/json5/format.test.js
tests/format/misc/insert-pragma/json5/format.test.js
runFormatTest(import.meta, ["json5"], { insertPragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/vue/format.test.js
tests/format/misc/insert-pragma/vue/format.test.js
runFormatTest(import.meta, ["vue"], { insertPragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/css/format.test.js
tests/format/misc/insert-pragma/css/format.test.js
runFormatTest(import.meta, ["css"], { insertPragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/graphql/format.test.js
tests/format/misc/insert-pragma/graphql/format.test.js
runFormatTest(import.meta, ["graphql"], { insertPragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/json/format.test.js
tests/format/misc/insert-pragma/json/format.test.js
runFormatTest(import.meta, ["json"], { insertPragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/html/format.test.js
tests/format/misc/insert-pragma/html/format.test.js
runFormatTest(import.meta, ["html"], { insertPragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/js/shebang-only-with-pragma.js
tests/format/misc/insert-pragma/js/shebang-only-with-pragma.js
#!/usr/bin/env node /** @format */
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/js/module-without-docblock.js
tests/format/misc/insert-pragma/js/module-without-docblock.js
function foo(bar) { return bar + 3 + 4; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/js/module-with-pragma.js
tests/format/misc/insert-pragma/js/module-with-pragma.js
/** * Here lie words above pragmas * * @flow * @format */ function foo(bar) { return bar + 3 + 4; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/js/shebang-without-pragma.js
tests/format/misc/insert-pragma/js/shebang-without-pragma.js
#!/usr/bin/env node function test() { const answer = 42;console.log("%s is the answer to life, the universe, and everything", answer);}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/js/with-comment.js
tests/format/misc/insert-pragma/js/with-comment.js
/* comment */ foo()
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/js/shebang-with-pragma.js
tests/format/misc/insert-pragma/js/shebang-with-pragma.js
#!/usr/bin/env node /** * @format */ function test() { const answer = 42;console.log("%s is the answer to life, the universe, and everything", answer);}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/js/trailing-spaces-first-line.js
tests/format/misc/insert-pragma/js/trailing-spaces-first-line.js
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the LICENSE file in * the root directory of this source tree. */
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/js/empty.js
tests/format/misc/insert-pragma/js/empty.js
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/js/module-with-late-docblock.js
tests/format/misc/insert-pragma/js/module-with-late-docblock.js
function foo(bar) { return bar + 3 + 4; } /** * Some notes that should not be appended to */ const fruit = 'tomatoes';
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/js/module-without-pragma.js
tests/format/misc/insert-pragma/js/module-without-pragma.js
/** * @flow * * Words below the wrong pragma */ function foo(bar) { return bar + 3 + 4; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/js/shebang-only-without-pragma.js
tests/format/misc/insert-pragma/js/shebang-only-without-pragma.js
#!/usr/bin/env node
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/js/module-with-multiple-same-pragma.js
tests/format/misc/insert-pragma/js/module-with-multiple-same-pragma.js
/** * @x 1 * @x 2 */
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/js/format.test.js
tests/format/misc/insert-pragma/js/format.test.js
runFormatTest(import.meta, ["flow", "babel", "typescript"], { insertPragma: true, });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/insert-pragma/markdown/format.test.js
tests/format/misc/insert-pragma/markdown/format.test.js
runFormatTest(import.meta, ["markdown"], { insertPragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/plugins/async-printer/format.test.js
tests/format/misc/plugins/async-printer/format.test.js
import createEsmUtils from "esm-utils"; const { require } = createEsmUtils(import.meta); const plugins = [ require("../../../../config/prettier-plugins/prettier-plugin-async-printer/index.cjs"), ]; runFormatTest(import.meta, ["async-printer"], { plugins });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/plugins/embed-async-printer/format.test.js
tests/format/misc/plugins/embed-async-printer/format.test.js
const plugins = await Promise.all( [ "../../../../config/prettier-plugins/prettier-plugin-async-printer/index.cjs", "../../../../config/prettier-plugins/prettier-plugin-uppercase-rocks/index.js", ].map(async (plugin) => (await import(plugin)).default), ); runFormatTest(import.meta, ["markdown"], { plugins ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/check-ignore-pragma/json5/format.test.js
tests/format/misc/check-ignore-pragma/json5/format.test.js
runFormatTest(import.meta, ["json5"], { checkIgnorePragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/check-ignore-pragma/vue/format.test.js
tests/format/misc/check-ignore-pragma/vue/format.test.js
runFormatTest(import.meta, ["vue"], { checkIgnorePragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/check-ignore-pragma/css/format.test.js
tests/format/misc/check-ignore-pragma/css/format.test.js
runFormatTest(import.meta, ["css"], { checkIgnorePragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/check-ignore-pragma/graphql/format.test.js
tests/format/misc/check-ignore-pragma/graphql/format.test.js
runFormatTest(import.meta, ["graphql"], { checkIgnorePragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/check-ignore-pragma/mdx/format.test.js
tests/format/misc/check-ignore-pragma/mdx/format.test.js
runFormatTest(import.meta, ["mdx"], { checkIgnorePragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/check-ignore-pragma/json/format.test.js
tests/format/misc/check-ignore-pragma/json/format.test.js
runFormatTest(import.meta, ["json"], { checkIgnorePragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/check-ignore-pragma/html/format.test.js
tests/format/misc/check-ignore-pragma/html/format.test.js
runFormatTest(import.meta, ["html"], { checkIgnorePragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/check-ignore-pragma/js/module-with-noprettier-pragma.js
tests/format/misc/check-ignore-pragma/js/module-with-noprettier-pragma.js
/** * @flow * @noprettier */ function foo(bar) { return bar + 3 + 4; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/check-ignore-pragma/js/module-without-pragma.js
tests/format/misc/check-ignore-pragma/js/module-without-pragma.js
/** * @flow */ function foo(bar) { return bar + 3 + 4; }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false