diff --git a/.dprint.jsonc b/.dprint.jsonc index 54dfa696b311..4e8b776b3ab7 100644 --- a/.dprint.jsonc +++ b/.dprint.jsonc @@ -62,6 +62,9 @@ "packages/*/*.api.md", "CHANGELOG*.md", ".yarnrc.yml", + // I have no idea why, but using dprint programmatically on this file + // results in a different formatting than using the CLI + "packages/config/src/LogicParser.ts", ], "plugins": [ "https://plugins.dprint.dev/typescript-0.93.0.wasm", diff --git a/packages/config/src/LogicParser.ts b/packages/config/src/LogicParser.ts index 93ddb51354e1..a7ba7d7faa0a 100644 --- a/packages/config/src/LogicParser.ts +++ b/packages/config/src/LogicParser.ts @@ -86,13 +86,14 @@ const peggyParser: { parse: any; SyntaxError: any; DefaultTracer?: any } = // Ge // @ts-ignore var s = this.location.start; // @ts-ignore - var offset_s = (this.location.source - && (typeof this.location.source.offset - === "function")) - // @ts-ignore - ? this.location.source.offset(s) - // @ts-ignore - : s; + var offset_s = + (this.location.source + && (typeof this.location.source.offset + === "function")) + // @ts-ignore + ? this.location.source.offset(s) + // @ts-ignore + : s; // @ts-ignore var loc = this.location.source + ":" @@ -116,19 +117,11 @@ const peggyParser: { parse: any; SyntaxError: any; DefaultTracer?: any } = // Ge // @ts-ignore var hatLen = (last - s.column) || 1; // @ts-ignore - str += "\n --> " - + loc - + "\n" // @ts-ignore - + filler - + " |\n" // @ts-ignore - + offset_s.line - + " | " - + line - + "\n" // @ts-ignore - + filler - + " | " - + peg$padEnd("", s.column - 1, " ") // @ts-ignore - + peg$padEnd("", hatLen, "^"); + str += "\n --> " + loc + "\n" // @ts-ignore + + filler + " |\n" // @ts-ignore + + offset_s.line + " | " + line + "\n" // @ts-ignore + + filler + " | " + peg$padEnd("", s.column - 1, " ") // @ts-ignore + + peg$padEnd("", hatLen, "^"); // @ts-ignore } else { // @ts-ignore diff --git a/packages/config/src/_version.ts b/packages/config/src/_version.ts index 7cf90ca675b5..9efb1ae1833b 100644 --- a/packages/config/src/_version.ts +++ b/packages/config/src/_version.ts @@ -1,2 +1,2 @@ // This file is auto-generated by the codegen maintenance script -export const PACKAGE_VERSION = "14.0.0-beta.0"; +export const PACKAGE_VERSION = "14.0.0-beta.1";