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/check-ignore-pragma/js/module-with-noformat-pragma.js
tests/format/misc/check-ignore-pragma/js/module-with-noformat-pragma.js
/** * @flow * @noformat */ 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-with-noprettier-pragma-comments.js
tests/format/misc/check-ignore-pragma/js/module-with-noprettier-pragma-comments.js
/** * @flow * @noprettier -- reason to not 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/check-ignore-pragma/js/format.test.js
tests/format/misc/check-ignore-pragma/js/format.test.js
runFormatTest(import.meta, ["flow", "babel", "typescript"], { 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/yaml/format.test.js
tests/format/misc/check-ignore-pragma/yaml/format.test.js
runFormatTest(import.meta, ["yaml"], { 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/disabled/json5/format.test.js
tests/format/misc/check-ignore-pragma/disabled/json5/format.test.js
runFormatTest(import.meta, ["json5"], { checkIgnorePragma: false });
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/disabled/vue/format.test.js
tests/format/misc/check-ignore-pragma/disabled/vue/format.test.js
runFormatTest(import.meta, ["vue"], { checkIgnorePragma: false });
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/disabled/css/format.test.js
tests/format/misc/check-ignore-pragma/disabled/css/format.test.js
runFormatTest(import.meta, ["css"], { checkIgnorePragma: false });
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/disabled/graphql/format.test.js
tests/format/misc/check-ignore-pragma/disabled/graphql/format.test.js
runFormatTest(import.meta, ["graphql"], { checkIgnorePragma: false });
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/disabled/mdx/format.test.js
tests/format/misc/check-ignore-pragma/disabled/mdx/format.test.js
runFormatTest(import.meta, ["mdx"], { checkIgnorePragma: false });
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/disabled/html/format.test.js
tests/format/misc/check-ignore-pragma/disabled/html/format.test.js
runFormatTest(import.meta, ["html"], { checkIgnorePragma: false });
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/disabled/js/module-with-noprettier-pragma.js
tests/format/misc/check-ignore-pragma/disabled/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/disabled/js/module-with-noformat-pragma.js
tests/format/misc/check-ignore-pragma/disabled/js/module-with-noformat-pragma.js
/** * @flow * @noformat */ 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/disabled/js/format.test.js
tests/format/misc/check-ignore-pragma/disabled/js/format.test.js
runFormatTest(import.meta, ["flow", "babel", "typescript"], { checkIgnorePragma: false, });
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/disabled/yaml/format.test.js
tests/format/misc/check-ignore-pragma/disabled/yaml/format.test.js
runFormatTest(import.meta, ["yaml"], { checkIgnorePragma: false });
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/disabled/markdown/format.test.js
tests/format/misc/check-ignore-pragma/disabled/markdown/format.test.js
runFormatTest(import.meta, ["markdown"], { checkIgnorePragma: false });
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/markdown/format.test.js
tests/format/misc/check-ignore-pragma/markdown/format.test.js
runFormatTest(import.meta, ["markdown"], { checkIgnorePragma: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/embedded_language_formatting/in-html/format.test.js
tests/format/misc/embedded_language_formatting/in-html/format.test.js
runFormatTest(import.meta, ["html"]); runFormatTest(import.meta, ["html"], { embeddedLanguageFormatting: "off" });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/embedded_language_formatting/in-javascript/test.js
tests/format/misc/embedded_language_formatting/in-javascript/test.js
css`a { }` md`` graphql(`{id}`) html`<a>` @Component({ template: `<a>`, styles: [`a { }`] }) class TestComponent {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/embedded_language_formatting/in-javascript/format.test.js
tests/format/misc/embedded_language_formatting/in-javascript/format.test.js
runFormatTest(import.meta, ["babel"]); runFormatTest(import.meta, ["babel"], { embeddedLanguageFormatting: "off" });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/embedded_language_formatting/mdx/format.test.js
tests/format/misc/embedded_language_formatting/mdx/format.test.js
runFormatTest(import.meta, ["mdx"], { embeddedLanguageFormatting: "off" });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/embedded_language_formatting/in-vue/format.test.js
tests/format/misc/embedded_language_formatting/in-vue/format.test.js
runFormatTest(import.meta, ["vue"]); runFormatTest(import.meta, ["vue"], { embeddedLanguageFormatting: "off" });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/embedded_language_formatting/in-markdown/format.test.js
tests/format/misc/embedded_language_formatting/in-markdown/format.test.js
runFormatTest(import.meta, ["markdown"]); runFormatTest(import.meta, ["markdown"], { embeddedLanguageFormatting: "off" });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/babel-redirect-to-babel-flow/block-comment.js
tests/format/misc/babel-redirect-to-babel-flow/block-comment.js
/* @flow */ foo = {"1":bar} // "1" should quoted
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/babel-redirect-to-babel-flow/not-flow-5.js
tests/format/misc/babel-redirect-to-babel-flow/not-flow-5.js
#!/usr/bin/env @flow foo = {"1":bar} // "1" should unquoted
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/babel-redirect-to-babel-flow/block-comment-2.js
tests/format/misc/babel-redirect-to-babel-flow/block-comment-2.js
/* @noflow */ foo = {"1":bar} // "1" should quoted
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/babel-redirect-to-babel-flow/inline-comment-2.js
tests/format/misc/babel-redirect-to-babel-flow/inline-comment-2.js
// @noflow foo = {"1":bar} // "1" should quoted
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/babel-redirect-to-babel-flow/pragma-react.js
tests/format/misc/babel-redirect-to-babel-flow/pragma-react.js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ // DocBlock above is copied from https://github.com/facebook/react/blob/8da0da0937af154b775b243c9d28b6aa50db696b/packa...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/babel-redirect-to-babel-flow/not-flow-2.js
tests/format/misc/babel-redirect-to-babel-flow/not-flow-2.js
// @flowflow foo = {"1":bar} // "1" should unquoted
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/babel-redirect-to-babel-flow/not-flow.js
tests/format/misc/babel-redirect-to-babel-flow/not-flow.js
foo = {"1":bar} // "1" should unquoted
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/babel-redirect-to-babel-flow/inline-comment.js
tests/format/misc/babel-redirect-to-babel-flow/inline-comment.js
// @flow foo = {"1":bar} // "1" should quoted
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/babel-redirect-to-babel-flow/not-flow-3.js
tests/format/misc/babel-redirect-to-babel-flow/not-flow-3.js
a = " @flow " foo = {"1":bar} // "1" should unquoted
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/babel-redirect-to-babel-flow/shebang-pragma.js
tests/format/misc/babel-redirect-to-babel-flow/shebang-pragma.js
#!/usr/bin/env node /** * @format * @noflow */ foo = {"1":bar} // "1" should quoted
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/babel-redirect-to-babel-flow/pragma-2.js
tests/format/misc/babel-redirect-to-babel-flow/pragma-2.js
/** * @noflow */ foo = {"1":bar} // "1" should quoted
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/babel-redirect-to-babel-flow/pragma.js
tests/format/misc/babel-redirect-to-babel-flow/pragma.js
/** * @flow */ foo = {"1":bar} // "1" should quoted
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/babel-redirect-to-babel-flow/inline-comment-3.js
tests/format/misc/babel-redirect-to-babel-flow/inline-comment-3.js
// another comment // @flow foo = {"1":bar} // "1" should quoted
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/babel-redirect-to-babel-flow/like-a-pragma.js
tests/format/misc/babel-redirect-to-babel-flow/like-a-pragma.js
// by fisker@flow.prettier.com :) foo = {"1":bar} // "1" should quoted
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/babel-redirect-to-babel-flow/shebang-inline-comment.js
tests/format/misc/babel-redirect-to-babel-flow/shebang-inline-comment.js
#!/usr/bin/env node // another comment // @flow foo = {"1":bar} // "1" should quoted
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/babel-redirect-to-babel-flow/not-flow-4.js
tests/format/misc/babel-redirect-to-babel-flow/not-flow-4.js
a = " // @flow " foo = {"1":bar} // "1" should unquoted
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/babel-redirect-to-babel-flow/format.test.js
tests/format/misc/babel-redirect-to-babel-flow/format.test.js
runFormatTest(import.meta, ["babel"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/flow-babel-only/class_with_generics.js
tests/format/misc/flow-babel-only/class_with_generics.js
import React from 'react'; /*:: type Props = { foo?: ?string, bar: number, }; */ /*:: type State = { baz: number }; */ class Component extends React.Component/*:: <Props, State> */ { }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/flow-babel-only/functions.js
tests/format/misc/flow-babel-only/functions.js
export function updateStoreFromURL( store /*: Store*/, {search, hash} /*: {search: string, hash: string}*/ ) {}
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/flow-babel-only/format.test.js
tests/format/misc/flow-babel-only/format.test.js
runFormatTest(import.meta, ["babel-flow"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/parser-inference/test.js
tests/format/misc/parser-inference/test.js
foo( 'bar')
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/parser-inference/format.test.js
tests/format/misc/parser-inference/format.test.js
import { outdent } from "outdent"; runFormatTest({ importMeta: import.meta, snippets: [ { name: ".prettierrc in json(empty)", filename: ".prettierrc", code: "{}", }, { name: ".prettierrc in json", filename: "path/to/.prettierrc", code: outdent` {"printWidth":...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/typescript-only/format.test.js
tests/format/misc/typescript-only/format.test.js
runFormatTest(import.meta, ["typescript"]); runFormatTest(import.meta, ["typescript"], { semi: false });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/json-unknown-extension/format.test.js
tests/format/misc/json-unknown-extension/format.test.js
runFormatTest(import.meta, ["json"], { trailingComma: "es5" }); runFormatTest(import.meta, ["json"], { trailingComma: "all" }); runFormatTest(import.meta, ["json5"], { trailingComma: "es5" }); runFormatTest(import.meta, ["json5"], { trailingComma: "all" }); runFormatTest(import.meta, ["json-stringify"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/v-for/format.test.js
tests/format/vue/v-for/format.test.js
runFormatTest(import.meta, ["vue"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/vue/format.test.js
tests/format/vue/vue/format.test.js
runFormatTest(import.meta, ["vue"], { trailingComma: "none" }); runFormatTest(import.meta, ["vue"], { trailingComma: "es5" }); runFormatTest(import.meta, ["vue"], { semi: false });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/multiparser/format.test.js
tests/format/vue/multiparser/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ { name: "empty", code: '<custom lang="markdown"></custom>', }, { name: "spaces", code: '<custom lang="markdown"> </custom>', }, { name: "new line", code: '<custom lang="markdow...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/multiparser/unknown/format.test.js
tests/format/vue/multiparser/unknown/format.test.js
runFormatTest(import.meta, ["vue"]); runFormatTest(import.meta, ["vue"], { vueIndentScriptAndStyle: true }); runFormatTest(import.meta, ["vue"], { embeddedLanguageFormatting: "off" });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/range/format.test.js
tests/format/vue/range/format.test.js
runFormatTest(import.meta, ["vue"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/style/format.test.js
tests/format/vue/style/format.test.js
runFormatTest(import.meta, ["vue"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/ts-expression/format.test.js
tests/format/vue/ts-expression/format.test.js
runFormatTest(import.meta, ["vue"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/broken-plugins/format.test.js
tests/format/vue/broken-plugins/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(import.meta, ["vue"], { plugins });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/custom_block/format.test.js
tests/format/vue/custom_block/format.test.js
runFormatTest(import.meta, ["vue"], { trailingComma: "none" }); runFormatTest(import.meta, ["vue"], { trailingComma: "es5" }); runFormatTest(import.meta, ["vue"], { semi: false }); runFormatTest(import.meta, ["vue"], { vueIndentScriptAndStyle: true }); runFormatTest(import.meta, ["vue"], { embeddedLanguageFormatting: "...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/custom_block/html-whitespace-sensitivity/format.test.js
tests/format/vue/custom_block/html-whitespace-sensitivity/format.test.js
runFormatTest(import.meta, ["vue"], { htmlWhitespaceSensitivity: "strict" }); runFormatTest(import.meta, ["vue"]); runFormatTest(import.meta, ["vue"], { htmlWhitespaceSensitivity: "ignore" }); runFormatTest(import.meta, ["vue"], { htmlWhitespaceSensitivity: "css" });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/single-attribute-per-line/format.test.js
tests/format/vue/single-attribute-per-line/format.test.js
runFormatTest(import.meta, ["vue"]); runFormatTest(import.meta, ["vue"], { singleAttributePerLine: true });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/with-plugins/format.test.js
tests/format/vue/with-plugins/format.test.js
import prettierPluginUppercaseRocks from "../../../config/prettier-plugins/prettier-plugin-uppercase-rocks/index.js"; const plugins = [prettierPluginUppercaseRocks]; runFormatTest(import.meta, ["vue"], { plugins }); runFormatTest(import.meta, ["vue"], { plugins, embeddedLanguageFormatting: "off", });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/invalid/format.test.js
tests/format/vue/invalid/format.test.js
runFormatTest(import.meta, ["vue"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/vue-3/format.test.js
tests/format/vue/vue-3/format.test.js
runFormatTest(import.meta, ["vue"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/indent/format.test.js
tests/format/vue/indent/format.test.js
runFormatTest(import.meta, ["vue"], { vueIndentScriptAndStyle: true }); runFormatTest(import.meta, ["vue"], { vueIndentScriptAndStyle: false });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/bracket-same-line/format.test.js
tests/format/vue/bracket-same-line/format.test.js
runFormatTest(import.meta, ["vue"], { bracketSameLine: true }); runFormatTest(import.meta, ["vue"], { bracketSameLine: false });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/interpolation/format.test.js
tests/format/vue/interpolation/format.test.js
runFormatTest(import.meta, ["vue"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/html-vue/format.test.js
tests/format/vue/html-vue/format.test.js
runFormatTest(import.meta, ["vue"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/event-binding/format.test.js
tests/format/vue/event-binding/format.test.js
runFormatTest(import.meta, ["vue"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/vue/event-binding/no-semi/format.test.js
tests/format/vue/event-binding/no-semi/format.test.js
runFormatTest(import.meta, ["vue"], { semi: false });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/css/empty/format.test.js
tests/format/css/empty/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/parens/format.test.js
tests/format/css/parens/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/font/format.test.js
tests/format/css/font/format.test.js
runFormatTest(import.meta, ["css", "scss", "less"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/css/case/format.test.js
tests/format/css/case/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/character-escaping/format.test.js
tests/format/css/character-escaping/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/params/format.test.js
tests/format/css/params/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/cursor/format.test.js
tests/format/css/cursor/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/units/format.test.js
tests/format/css/units/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/combinator/format.test.js
tests/format/css/combinator/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/pseudo-call/format.test.js
tests/format/css/pseudo-call/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/front-matter/format.test.js
tests/format/css/front-matter/format.test.js
runFormatTest(import.meta, ["css", "scss", "less"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/css/front-matter/embedded-language-formatting/format.test.js
tests/format/css/front-matter/embedded-language-formatting/format.test.js
runFormatTest(import.meta, ["css", "scss", "less"], { embeddedLanguageFormatting: "off", });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/css/variables/format.test.js
tests/format/css/variables/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/colon/format.test.js
tests/format/css/colon/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/range/format.test.js
tests/format/css/range/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/postcss-plugins/format.test.js
tests/format/css/postcss-plugins/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/bom/format.test.js
tests/format/css/bom/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/no-semicolon/format.test.js
tests/format/css/no-semicolon/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/url/format.test.js
tests/format/css/url/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/important/format.test.js
tests/format/css/important/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/quotes/format.test.js
tests/format/css/quotes/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/selector-call/format.test.js
tests/format/css/selector-call/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/postcss-8-improment/format.test.js
tests/format/css/postcss-8-improment/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-list/format.test.js
tests/format/css/selector-list/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/atword/format.test.js
tests/format/css/atword/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/numbers/format.test.js
tests/format/css/numbers/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/yaml/format.test.js
tests/format/css/yaml/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/custom-properties/format.test.js
tests/format/css/custom-properties/format.test.js
runFormatTest(import.meta, ["css", "scss", "less"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/css/prefix/format.test.js
tests/format/css/prefix/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/inline-url/format.test.js
tests/format/css/inline-url/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/modules/format.test.js
tests/format/css/modules/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/trailing-comma/format.test.js
tests/format/css/trailing-comma/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/comments/format.test.js
tests/format/css/comments/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/tailwind/format.test.js
tests/format/css/tailwind/format.test.js
runFormatTest(import.meta, ["css"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false