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/config/utilities/visualize-range.js
tests/config/utilities/visualize-range.js
import { codeFrameColumns } from "@babel/code-frame"; import indexToPosition from "index-to-position"; const codeFrameColumnsOptions = { linesAbove: Number.POSITIVE_INFINITY, linesBelow: Number.POSITIVE_INFINITY, }; const locationForRange = (text, range) => { const [start, end] = [...range] .sort((indexA, in...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/config/utilities/stringify-options-for-title.js
tests/config/utilities/stringify-options-for-title.js
function stringifyOptions(options) { const string = JSON.stringify(options || {}, (key, value) => { if (key === "plugins" || key === "errors") { return; } if (value === Number.POSITIVE_INFINITY) { return "Infinity"; } return value; }); return string === "{}" ? "" : string; } ex...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/config/utilities/check-parsers.js
tests/config/utilities/check-parsers.js
import path from "node:path"; import createEsmUtils from "esm-utils"; import { outdent } from "outdent"; const { __dirname, __filename } = createEsmUtils(import.meta); const TESTS_ROOT = path.join(__dirname, "../../format"); const getCategory = (dirname) => path.relative(TESTS_ROOT, dirname).split(path.sep).shift(...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/config/browser/start.js
tests/config/browser/start.js
import process from "node:process"; import { startServer } from "./server.js"; const server = await startServer({ port: 3000 }); console.log(`Server started, navigate to ${server.url} start debug.`); process.once("exit", async () => { await server.close(); });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/config/browser/main.js
tests/config/browser/main.js
import { ensurePromise, responseInBrowser } from "./utilities.js"; const browser = navigator.userAgent.includes("Firefox/") ? "firefox" : "chrome"; const esmFiles = { prettier: "prettier/standalone.mjs", plugins: [ "prettier/plugins/angular.mjs", "prettier/plugins/graphql.mjs", "prettier/plugins/types...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/config/browser/browser.js
tests/config/browser/browser.js
import assert from "node:assert/strict"; import puppeteer from "puppeteer"; const puppeteerBrowsers = ["chrome", "chrome-headless-shell", "firefox"]; async function downloadBrowser({ browser }) { const { downloadBrowsers } = await import("puppeteer/internal/node/install.js"); const originalEnv = { ...process....
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/config/browser/utilities.js
tests/config/browser/utilities.js
function responseInBrowser(function_, context) { const { accessPath, optionsIndex, browser } = context; function resolve(value) { // Comments in `graphql` can't be serialized, and we are not using it in format test if (accessPath === "formatWithCursor") { value.comments = []; } // `BigInt` c...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/config/browser/get-browser-prettier.js
tests/config/browser/get-browser-prettier.js
import { launchBrowser } from "./browser.js"; import { startServer } from "./server.js"; import { requestFromNode } from "./utilities.js"; async function getBrowserPrettier() { /** @type {"chrome" | "firefox"} */ const browserName = process.env.TEST_RUNTIME_BROWSER ?? "chrome"; /** @type {"esm" | "umd"} */ con...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/config/browser/server.js
tests/config/browser/server.js
import assert from "node:assert"; import fs from "node:fs/promises"; import http from "node:http"; import getPort from "get-port"; const distDirectory = new URL("../../../dist/", import.meta.url); async function getContent(url) { assert.ok(url.startsWith("/")); url = url.slice(1); if (url === "index.html" || u...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/dts/unit/run.js
tests/dts/unit/run.js
import fs from "node:fs"; import path from "node:path"; import url from "node:url"; import ts from "typescript"; const isProduction = process.env.NODE_ENV === "production"; describe("Unit tests for dts files", () => { test("no errors", () => { const testCasesDirPath = url.fileURLToPath( new URL("cases", i...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/lwc/lwc/format.test.js
tests/format/lwc/lwc/format.test.js
runFormatTest(import.meta, ["lwc"], { trailingComma: "none" }); runFormatTest(import.meta, ["lwc"], { trailingComma: "es5" }); runFormatTest(import.meta, ["lwc"], { semi: false });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/lwc/attribute/quotes/format.test.js
tests/format/lwc/attribute/quotes/format.test.js
runFormatTest(import.meta, ["lwc"]); runFormatTest(import.meta, ["lwc"], { embeddedLanguageFormatting: "off" });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/shorthand/format.test.js
tests/format/angular/shorthand/format.test.js
runFormatTest(import.meta, ["angular"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/attribute-value-hugging/format.test.js
tests/format/angular/attribute-value-hugging/format.test.js
runFormatTest(import.meta, ["angular"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/angular/format.test.js
tests/format/angular/angular/format.test.js
runFormatTest(import.meta, ["angular"], { trailingComma: "none" }); runFormatTest(import.meta, ["angular"], { trailingComma: "es5" }); runFormatTest(import.meta, ["angular"], { printWidth: 1 }); runFormatTest(import.meta, ["angular"], { htmlWhitespaceSensitivity: "ignore", }); runFormatTest(import.meta, ["angular"], ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/v20-syntax/format.test.js
tests/format/angular/v20-syntax/format.test.js
runFormatTest(import.meta, ["angular"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/self-closing/format.test.js
tests/format/angular/self-closing/format.test.js
runFormatTest(import.meta, ["angular"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/upper-case/format.test.js
tests/format/angular/upper-case/format.test.js
runFormatTest(import.meta, ["angular"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/template-literal/format.test.js
tests/format/angular/template-literal/format.test.js
runFormatTest(import.meta, ["angular"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/assignment-operator/format.test.js
tests/format/angular/assignment-operator/format.test.js
runFormatTest(import.meta, ["angular"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/regular-expression/format.test.js
tests/format/angular/regular-expression/format.test.js
runFormatTest(import.meta, ["angular"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/trailing-comma/format.test.js
tests/format/angular/trailing-comma/format.test.js
runFormatTest(import.meta, ["angular"], { trailingComma: "none" }); runFormatTest(import.meta, ["angular"], { trailingComma: "es5" }); runFormatTest(import.meta, ["angular"], { trailingComma: "all" });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/typeof-expression/format.test.js
tests/format/angular/typeof-expression/format.test.js
runFormatTest(import.meta, ["angular"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/bracket-same-line/format.test.js
tests/format/angular/bracket-same-line/format.test.js
runFormatTest(import.meta, ["angular"], { bracketSameLine: true }); runFormatTest(import.meta, ["angular"], { bracketSameLine: false });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/icu-expression/format.test.js
tests/format/angular/icu-expression/format.test.js
runFormatTest(import.meta, ["angular"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/let-declaration/format.test.js
tests/format/angular/let-declaration/format.test.js
runFormatTest(import.meta, ["angular"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/let-declaration/minor-options/format.test.js
tests/format/angular/let-declaration/minor-options/format.test.js
const snippets = ["@let foo = 'Hello' + ', World'; "]; runFormatTest( { importMeta: import.meta, snippets, }, ["angular"], { embeddedLanguageFormatting: "off" }, ); runFormatTest( { importMeta: import.meta, snippets, }, ["angular"], { semi: false }, );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/interpolation/format.test.js
tests/format/angular/interpolation/format.test.js
// We always pass {trailingComma: "none"} when printing runFormatTest(import.meta, ["__ng_interpolation"], { trailingComma: "none" });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/interpolation/html/format.test.js
tests/format/angular/interpolation/html/format.test.js
runFormatTest(import.meta, ["angular"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/control-flow/format.test.js
tests/format/angular/control-flow/format.test.js
runFormatTest(import.meta, ["angular"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/control-flow/embedded-language-formatting-off/format.test.js
tests/format/angular/control-flow/embedded-language-formatting-off/format.test.js
runFormatTest(import.meta, ["angular"], { embeddedLanguageFormatting: "off" });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/angular/control-flow/small-print-width/format.test.js
tests/format/angular/control-flow/small-print-width/format.test.js
runFormatTest(import.meta, ["angular"], { printWidth: 20 });
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/empty/format.test.js
tests/format/misc/empty/format.test.js
import prettier from "../../../config/prettier-entry.js"; const parsers = (await prettier.getSupportInfo()).options .find((option) => option.name === "parser") .choices.filter((choice) => !choice.deprecated) .map((choice) => choice.value); runFormatTest( { importMeta: import.meta, snippets: [ //...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/typescript-babel-only/format.test.js
tests/format/misc/typescript-babel-only/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/invalid-typescript-decorators/format.test.js
tests/format/misc/errors/invalid-typescript-decorators/format.test.js
runFormatTest(import.meta, ["typescript", "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/angular/format.test.js
tests/format/misc/errors/angular/format.test.js
runFormatTest(import.meta, ["angular"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/vue/format.test.js
tests/format/misc/errors/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/misc/errors/css/format.test.js
tests/format/misc/errors/css/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/misc/errors/flow/function-async.js
tests/format/misc/errors/flow/function-async.js
// Flow can't parse this since `v0.128.0`, #8661 async<T>();
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/flow/module-attributes-static.js
tests/format/misc/errors/flow/module-attributes-static.js
import foo from "foo.json" with type: "json";
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/flow/invalid_keyword_symbol.js
tests/format/misc/errors/flow/invalid_keyword_symbol.js
type symbol = number;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/flow/newline-before-arrow.js
tests/format/misc/errors/flow/newline-before-arrow.js
async x => x
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/flow/async-arrow-invalid.js
tests/format/misc/errors/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/flow/number.js
tests/format/misc/errors/flow/number.js
// https://github.com/babel/babel/pull/11854 a = 09e1_1;
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/flow/spread-with-optional.js
tests/format/misc/errors/flow/spread-with-optional.js
type T = [...foo?: S]; // ERROR
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/flow/format.test.js
tests/format/misc/errors/flow/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/misc/errors/flow/interface/format.test.js
tests/format/misc/errors/flow/interface/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ // Can't have mixins nor implements "interface A mixins B {}", "interface A implements B {}", "declare interface A mixins B {}", "declare interface A implements B {}", ], }, ["flow", "babel-flow"], );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/flow/invalid-match/format.test.js
tests/format/misc/errors/flow/invalid-match/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ // https://github.com/facebook/hermes/blob/83c811545b35dc2284ba27786314936e4c80ee6a/test/Parser/flow/match/statement-no-arg.js "match () {}", // https://github.com/facebook/hermes/blob/83c811545b35dc2284ba27786314936e4c80ee6a/test/Parser/...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/flow/import-reflection/valid-flow-default-import.js
tests/format/misc/errors/flow/import-reflection/valid-flow-default-import.js
import module foo from "./module.wasm"; import bar from "./module.wasm";
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/flow/import-reflection/valid-ts-default-import.js
tests/format/misc/errors/flow/import-reflection/valid-ts-default-import.js
import module foo from "./module.wasm"; import bar from "./module.wasm";
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/flow/import-reflection/format.test.js
tests/format/misc/errors/flow/import-reflection/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/misc/errors/graphql/format.test.js
tests/format/misc/errors/graphql/format.test.js
runFormatTest(import.meta, ["graphql"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/front-matter/format.test.js
tests/format/misc/errors/front-matter/format.test.js
import { outdent } from "outdent"; runFormatTest( { importMeta: import.meta, snippets: [ { name: "Should not support front matter", code: outdent` --- Front Matter content --- `, }, ], }, [ "acorn", "espree", "__ng_action",...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/scss/format.test.js
tests/format/misc/errors/scss/format.test.js
runFormatTest(import.meta, ["scss"]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/jsx/invalid-jsx-text/format.test.js
tests/format/misc/errors/jsx/invalid-jsx-text/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ "let x1 = <div>}</div>;", "let x2 = <div>></div>;", "let x2 = <div><</div>;", 'let x3 = <div>{"foo"}}</div>;', 'let x4 = <div>{"foo"}></div>;', 'let x4 = <div>{"foo"}<</div>;', 'let x5 = <div>}{"foo"}</div>;', ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/jsx/unparenthesized-sequence-expression/format.test.js
tests/format/misc/errors/jsx/unparenthesized-sequence-expression/format.test.js
runFormatTest( { importMeta: import.meta, snippets: ["let x1 = <div>{a,b}</div>"], }, [ "babel", "babel-ts", // "acorn", // "espree", // "flow", "meriyah", // "typescript", "hermes", // "oxc", // "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/json/format.test.js
tests/format/misc/errors/json/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ "{foo}", '{["foo"]:"bar"}', '{"foo": ~1}', '{"foo": false || "bar"}', '{"foo": () => {}}', String.raw`packages\the-hub\cypress\fixtures\gridConfiguration.json`, "1+2", "{Infinity}", "{[key]: 1}", ...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/json/json-stringify/format.test.js
tests/format/misc/errors/json/json-stringify/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ '/* comment */{"foo": 1}', '// comment\n{"foo": 1}', '{"foo": /* comment */ 1}', ], }, ["json-stringify"], );
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/handlebars/format.test.js
tests/format/misc/errors/handlebars/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ ...[ "area", "base", // "basefont", // "bgsound", "br", "col", "command", "embed", // "frame", "hr", // "image", "img", "input", // "isind...
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-assertions-with-parens.js
tests/format/misc/errors/js/import-assertions-with-parens.js
import "x" assert ({type: 'json'});
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/no-for-in-init-concise-binary-in.js
tests/format/misc/errors/js/no-for-in-init-concise-binary-in.js
// https://github.com/babel/babel/pull/11931 for (() => x in y;;);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/invalid-escape-in-identifier-2.js
tests/format/misc/errors/js/invalid-escape-in-identifier-2.js
a\ = 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/module-attributes.js
tests/format/misc/errors/js/module-attributes.js
import foo from "foo.json" with type: "json";
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/static-import-source-should-not-has-extra-token.js
tests/format/misc/errors/js/static-import-source-should-not-has-extra-token.js
// This test to grantee parsers won't allow static import source to // be parenthesized, that accidentally break #8016 import {} from (('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/import-attributes-with-parens.js
tests/format/misc/errors/js/import-attributes-with-parens.js
import "x" with ({type: 'json'});
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/html-like-comments.js
tests/format/misc/errors/js/html-like-comments.js
// Only support HTML-like comment in HTML alert( <!-- comment 'hello world' )
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-attributes-for-export-without-from.js
tests/format/misc/errors/js/import-attributes-for-export-without-from.js
export { default as foo } with { type: "json" };
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/invalid-escape-in-identifier.js
tests/format/misc/errors/js/invalid-escape-in-identifier.js
const \u{20} = 1 const \u{3000} = 1
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-assertions-for-export-without-from.js
tests/format/misc/errors/js/import-assertions-for-export-without-from.js
export { default as foo } assert { type: "json" };
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/partial-template-strings.js
tests/format/misc/errors/js/partial-template-strings.js
// partial template strings is not supported by babel yet // If parsers supported, should remove this and open a issue about this // Proposal: https://github.com/tc39/proposal-partial-application/blob/master/README.md#proposal const Diagnostics = { unexpected_token: `Unexpected token: ${?}`, name_not_found: `'${?}...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/format.test.js
tests/format/misc/errors/js/format.test.js
import { outdent } from "outdent"; runFormatTest( { importMeta: import.meta, snippets: [ // v8intrinsic "::%DebugPrint(null)", "a.%DebugPrint();", "const i = %DebugPrint;", // partialApplication // https://babeljs.io/docs/babel-plugin-proposal-partial-application#invalid-...
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/newline-before-arrow/newline-before-arrow.js
tests/format/misc/errors/js/newline-before-arrow/newline-before-arrow.js
async x => 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/newline-before-arrow/format.test.js
tests/format/misc/errors/js/newline-before-arrow/format.test.js
runFormatTest(import.meta, [ "babel", "typescript", "flow", "babel-ts", "acorn", "espree", "meriyah", "babel-ts", "oxc", ]);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/decorators/format.test.js
tests/format/misc/errors/js/decorators/format.test.js
import { outdent } from "outdent"; runFormatTest( { importMeta: import.meta, snippets: [ outdent` @decorator1 export @decorator2 class A{} `, outdent` @decorator1 export default @decorator2 class A{} `, "@decorator1 export @decorator2 class 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/export-name/format.test.js
tests/format/misc/errors/js/export-name/format.test.js
runFormatTest( { importMeta: import.meta, snippets: [ String.raw`import { "\uD83C" as b } from "./foo";`, String.raw`export { "\uD83C" } from "./foo";`, String.raw`export { "\uD83C" as b } from "./foo";`, String.raw`export { b as "\uD83C" } 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/variable-declarator/format.test.js
tests/format/misc/errors/js/variable-declarator/format.test.js
runFormatTest(import.meta, ["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/variable-declarator/invalid-const.js
tests/format/misc/errors/js/variable-declarator/invalid-const.js
const 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/explicit-resource-management/invalid-using-binding-pattern.js
tests/format/misc/errors/js/explicit-resource-management/invalid-using-binding-pattern.js
{ using { foo } = f(); using [ bar ] = g(); for (using { qux } of h()); for (using [ quux ] of i()); }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/explicit-resource-management/invalid-for-using-binding-of-of.js
tests/format/misc/errors/js/explicit-resource-management/invalid-for-using-binding-of-of.js
for (using of of of);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/explicit-resource-management/invalid-for-using-binding-of-in.js
tests/format/misc/errors/js/explicit-resource-management/invalid-for-using-binding-of-in.js
for (using of in []);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/explicit-resource-management/invalid-for-await-using-binding-of-of.js
tests/format/misc/errors/js/explicit-resource-management/invalid-for-await-using-binding-of-of.js
for await (using of of of);
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/explicit-resource-management/invalid-for-using-binding-in.js
tests/format/misc/errors/js/explicit-resource-management/invalid-for-using-binding-in.js
for (using foo in {});
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/explicit-resource-management/invalid-using-binding-let.js
tests/format/misc/errors/js/explicit-resource-management/invalid-using-binding-let.js
{ using let = h(); }
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false
prettier/prettier
https://github.com/prettier/prettier/blob/ae0e00df55d47274cc53db8d2cdcd064849e088d/tests/format/misc/errors/js/explicit-resource-management/format.test.js
tests/format/misc/errors/js/explicit-resource-management/format.test.js
runFormatTest(import.meta, [ "babel", "flow", // Waiting https://github.com/typescript-eslint/typescript-eslint/issues/7555 and https://github.com/typescript-eslint/typescript-eslint/issues/7554 // "typescript" ]);
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-lone-async-arrow-function-parameter.js
tests/format/misc/errors/js/discard-binding/invalid-lone-async-arrow-function-parameter.js
async 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/discard-binding/invalid-assignment-pattern.js
tests/format/misc/errors/js/discard-binding/invalid-assignment-pattern.js
{ // function parameter function f(void = 0) {} } { // arrow function parameter (void = 0) => {} } { // async arrow function parameter async (void = 0) => {} } { // nested array pattern: function parameter function f([void = 0]) {} } { // nested array pattern: arrow function parameter ([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/invalid-rest-element-object-pattern-for-lhs.js
tests/format/misc/errors/js/discard-binding/invalid-rest-element-object-pattern-for-lhs.js
for ({ ...void } of []);
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-catch-parameter.js
tests/format/misc/errors/js/discard-binding/invalid-catch-parameter.js
try {} catch (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/discard-binding/invalid-rest-element-array-pattern-lhs.js
tests/format/misc/errors/js/discard-binding/invalid-rest-element-array-pattern-lhs.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/discard-binding/invalid-async-call-argument.js
tests/format/misc/errors/js/discard-binding/invalid-async-call-argument.js
async(void, x); async(x, void); async(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/discard-binding/invalid-rest-element-array-pattern-for-lhs.js
tests/format/misc/errors/js/discard-binding/invalid-rest-element-array-pattern-for-lhs.js
for ([ ...void ] of []);
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-binding.js
tests/format/misc/errors/js/discard-binding/invalid-parenthesized-binding.js
const [, (void), ] = value;
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-for.js
tests/format/misc/errors/js/discard-binding/invalid-assignment-for.js
for (void of []);
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-sequence-expression.js
tests/format/misc/errors/js/discard-binding/invalid-sequence-expression.js
(void, x); (x, void); (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/discard-binding/invalid-lone-arrow-function-parameter.js
tests/format/misc/errors/js/discard-binding/invalid-lone-arrow-function-parameter.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/discard-binding/invalid-variable-declarator.js
tests/format/misc/errors/js/discard-binding/invalid-variable-declarator.js
{ var void = f(); } { let void = f(), void = g(); } { const void = f(), x = g(); }
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-rest-element-object-pattern.js
tests/format/misc/errors/js/discard-binding/invalid-rest-element-object-pattern.js
{ var { ...void } = {}; } { for (var { ...void } of [{}]); }
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-rest-element-array-pattern.js
tests/format/misc/errors/js/discard-binding/invalid-rest-element-array-pattern.js
{ var [ ...void ] = []; } { for (var [...void] of [[]]); }
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-array-expression.js
tests/format/misc/errors/js/discard-binding/invalid-array-expression.js
([[[void], x, ], y]); ([[[x], void, ], y]); ([[[x], y, ], void]); ([void, x = 0]); async([void, 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-rest-element-object-pattern-lhs.js
tests/format/misc/errors/js/discard-binding/invalid-rest-element-object-pattern-lhs.js
({ ...void } = {});
javascript
MIT
ae0e00df55d47274cc53db8d2cdcd064849e088d
2026-01-04T14:57:20.107180Z
false