Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Misc tests #342

Open
fisker opened this issue Mar 15, 2023 · 52 comments
Open

Misc tests #342

fisker opened this issue Mar 15, 2023 · 52 comments

Comments

@fisker
Copy link
Sponsor Member

fisker commented Mar 15, 2023

No description provided.

@fisker
Copy link
Sponsor Member Author

fisker commented Mar 15, 2023

Run #13819 vs prettier/prettier@next

@fisker
Copy link
Sponsor Member Author

fisker commented Mar 21, 2023

Run #14546 vs prettier/prettier@next

@fisker
Copy link
Sponsor Member Author

fisker commented Mar 27, 2023

Run #14599 VS prettier/prettier@main

@github-actions
Copy link
Contributor

github-actions bot commented Mar 27, 2023

prettier/prettier#14599 VS prettier/prettier@main

Diff (74 lines)
diff --git ORI/excalidraw/src/element/bounds.test.ts ALT/excalidraw/src/element/bounds.test.ts
index c352a81..f62c4ea 100644
--- ORI/excalidraw/src/element/bounds.test.ts
+++ ALT/excalidraw/src/element/bounds.test.ts
@@ -29,7 +29,7 @@ const _ce = ({
     width: w,
     height: h,
     angle: a,
-  } as ExcalidrawElement);
+  }) as ExcalidrawElement;
 
 describe("getElementAbsoluteCoords", () => {
   it("test x1 coordinate", () => {


diff --git ORI/typescript-eslint/packages/eslint-plugin/docs/rules/explicit-function-return-type.md ALT/typescript-eslint/packages/eslint-plugin/docs/rules/explicit-function-return-type.md
index 3a67a7e..6f5282a 100644
--- ORI/typescript-eslint/packages/eslint-plugin/docs/rules/explicit-function-return-type.md
+++ ALT/typescript-eslint/packages/eslint-plugin/docs/rules/explicit-function-return-type.md
@@ -209,14 +209,14 @@ Examples of code for this rule with `{ allowDirectConstAssertionInArrowFunctions
 #### ❌ Incorrect
 
 ```ts
-const func = (value: number) => ({ type: 'X', value } as any);
-const func = (value: number) => ({ type: 'X', value } as Action);
+const func = (value: number) => ({ type: 'X', value }) as any;
+const func = (value: number) => ({ type: 'X', value }) as Action;
 ```
 
 #### ✅ Correct
 
 ```ts
-const func = (value: number) => ({ foo: 'bar', value } as const);
+const func = (value: number) => ({ foo: 'bar', value }) as const;
 const func = () => x as const;
 ```
 
diff --git ORI/typescript-eslint/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md ALT/typescript-eslint/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md
index 2995d3b..b453bf9 100644
--- ORI/typescript-eslint/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md
+++ ALT/typescript-eslint/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md
@@ -131,11 +131,11 @@ export const bar = () => 1;
 #### ✅ Correct
 
 ```ts
-export const func = (value: number) => ({ type: 'X', value } as const);
+export const func = (value: number) => ({ type: 'X', value }) as const;
 export const foo = () =>
   ({
     bar: true,
-  } as const);
+  }) as const;
 export const bar = () => 1 as const;
 ```
 
diff --git ORI/typescript-eslint/packages/eslint-plugin/tests/rules/prefer-optional-chain.test.ts ALT/typescript-eslint/packages/eslint-plugin/tests/rules/prefer-optional-chain.test.ts
index 120ad20..4e851f9 100644
--- ORI/typescript-eslint/packages/eslint-plugin/tests/rules/prefer-optional-chain.test.ts
+++ ALT/typescript-eslint/packages/eslint-plugin/tests/rules/prefer-optional-chain.test.ts
@@ -149,10 +149,10 @@ const baseCases = [
           ],
         },
       ],
-    } as TSESLint.InvalidTestCase<
+    }) as TSESLint.InvalidTestCase<
       InferMessageIdsTypeFromRule<typeof rule>,
       InferOptionsTypeFromRule<typeof rule>
-    >),
+    >,
 );
 
 ruleTester.run('prefer-optional-chain', rule, {

@fisker
Copy link
Sponsor Member Author

fisker commented Apr 3, 2023

Run #14654 VS prettier/prettier@main

@github-actions
Copy link
Contributor

github-actions bot commented Apr 3, 2023

prettier/prettier#14654 VS prettier/prettier@main

diff --git ORI/babel/packages/babel-helper-replace-supers/src/index.ts ALT/babel/packages/babel-helper-replace-supers/src/index.ts
index 4699b7fd..d450ea7f 100644
--- ORI/babel/packages/babel-helper-replace-supers/src/index.ts
+++ ALT/babel/packages/babel-helper-replace-supers/src/index.ts
@@ -98,10 +98,10 @@ type SharedState = {
 
 type Handler = HandlerState<SharedState> & SharedState;
 type SuperMember = NodePath<
-  | t.MemberExpression & {
-      object: t.Super;
-      property: Exclude<t.MemberExpression["property"], t.PrivateName>;
-    }
+  t.MemberExpression & {
+    object: t.Super;
+    property: Exclude<t.MemberExpression["property"], t.PrivateName>;
+  }
 >;
 
 interface SpecHandler





@fisker
Copy link
Sponsor Member Author

fisker commented Apr 19, 2023

Run #14633 VS prettier/prettier@main

@fisker
Copy link
Sponsor Member Author

fisker commented Apr 21, 2023

Run #14633 VS prettier/prettier@main

@fisker

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@fisker
Copy link
Sponsor Member Author

fisker commented Apr 21, 2023

Run #14736 VS prettier/prettier@main

@github-actions
Copy link
Contributor

github-actions bot commented Apr 21, 2023

prettier/prettier#14736 VS prettier/prettier@main

diff --git ORI/typescript-eslint/packages/eslint-plugin/docs/rules/strict-boolean-expressions.md ALT/typescript-eslint/packages/eslint-plugin/docs/rules/strict-boolean-expressions.md
index 14a7e42..b7e8c13 100644
--- ORI/typescript-eslint/packages/eslint-plugin/docs/rules/strict-boolean-expressions.md
+++ ALT/typescript-eslint/packages/eslint-plugin/docs/rules/strict-boolean-expressions.md
@@ -46,7 +46,7 @@ function foo(bool?: boolean) {
 }
 
 // `any`, unconstrained generics and unions of more than one primitive type are disallowed
-const foo = <T,>(arg: T) => (arg ? 1 : 0);
+const foo = <T>(arg: T) => (arg ? 1 : 0);
 
 // always-truthy and always-falsy types are disallowed
 let obj = {};

@fisker
Copy link
Sponsor Member Author

fisker commented May 24, 2023

@github-actions
Copy link
Contributor

github-actions bot commented May 24, 2023

[Error]

Error: ENOENT: no such file or directory, mkdir '/home/runner/work/prettier-regression-testing/prettier-regression-testing/repos/mdn/content'

@fisker
Copy link
Sponsor Member Author

fisker commented May 24, 2023

@fisker
Copy link
Sponsor Member Author

fisker commented May 25, 2023

Run #14858 VS prettier/prettier@main

@github-actions
Copy link
Contributor

github-actions bot commented May 25, 2023

prettier/prettier#14858 VS prettier/prettier@main

Diff (266 lines)
diff --git ORI/babel/packages/babel-core/src/config/config-chain.ts ALT/babel/packages/babel-core/src/config/config-chain.ts
index 70600c89..394d9da5 100644
--- ORI/babel/packages/babel-core/src/config/config-chain.ts
+++ ALT/babel/packages/babel-core/src/config/config-chain.ts
@@ -533,12 +533,11 @@ function buildOverrideEnvDescriptors(
 }
 
 function makeChainWalker<
-  ArgT extends
-    {
-      options: ValidatedOptions;
-      dirname: string;
-      filepath?: string;
-    },
+  ArgT extends {
+    options: ValidatedOptions;
+    dirname: string;
+    filepath?: string;
+  },
 >({
   root,
   env,
diff --git ORI/babel/packages/babel-parser/src/parser/expression.ts ALT/babel/packages/babel-parser/src/parser/expression.ts
index 79383a25..1e4e338a 100644
--- ORI/babel/packages/babel-parser/src/parser/expression.ts
+++ ALT/babel/packages/babel-parser/src/parser/expression.ts
@@ -2519,11 +2519,10 @@ export default abstract class ExpressionParser extends LValParser {
 
   parseFunctionBodyAndFinish<
     T extends
-
-        | N.Function
-        | N.TSDeclareMethod
-        | N.TSDeclareFunction
-        | N.ClassPrivateMethod,
+      | N.Function
+      | N.TSDeclareMethod
+      | N.TSDeclareFunction
+      | N.ClassPrivateMethod,
   >(node: Undone<T>, type: T["type"], isMethod: boolean = false): T {
     // @ts-expect-error (node is not bodiless if we get here)
     this.parseFunctionBody(node, false, isMethod);
diff --git ORI/babel/packages/babel-parser/src/parser/statement.ts ALT/babel/packages/babel-parser/src/parser/statement.ts
index 95417318..40178198 100644
--- ORI/babel/packages/babel-parser/src/parser/statement.ts
+++ ALT/babel/packages/babel-parser/src/parser/statement.ts
@@ -2953,7 +2953,9 @@ export default abstract class StatementParser extends ExpressionParser {
 
   parseImportSpecifierLocal<
     T extends
-      N.ImportSpecifier | N.ImportDefaultSpecifier | N.ImportNamespaceSpecifier,
+      | N.ImportSpecifier
+      | N.ImportDefaultSpecifier
+      | N.ImportNamespaceSpecifier,
   >(
     node: Undone<N.ImportDeclaration>,
     specifier: Undone<T>,
@@ -2965,7 +2967,9 @@ export default abstract class StatementParser extends ExpressionParser {
 
   finishImportSpecifier<
     T extends
-      N.ImportSpecifier | N.ImportDefaultSpecifier | N.ImportNamespaceSpecifier,
+      | N.ImportSpecifier
+      | N.ImportDefaultSpecifier
+      | N.ImportNamespaceSpecifier,
   >(specifier: Undone<T>, type: T["type"], bindingType = BIND_LEXICAL) {
     this.checkLVal(specifier.local, {
       // @ts-expect-error refine types
diff --git ORI/babel/packages/babel-parser/src/plugins/flow/index.ts ALT/babel/packages/babel-parser/src/plugins/flow/index.ts
index f800a593..175629c8 100644
--- ORI/babel/packages/babel-parser/src/plugins/flow/index.ts
+++ ALT/babel/packages/babel-parser/src/plugins/flow/index.ts
@@ -1910,11 +1910,10 @@ export default (superClass: typeof Parser) =>
 
     parseFunctionBodyAndFinish<
       T extends
-
-          | N.Function
-          | N.TSDeclareMethod
-          | N.TSDeclareFunction
-          | N.ClassPrivateMethod,
+        | N.Function
+        | N.TSDeclareMethod
+        | N.TSDeclareFunction
+        | N.ClassPrivateMethod,
     >(node: Undone<T>, type: T["type"], isMethod: boolean = false): T {
       if (this.match(tt.colon)) {
         const typeNode = this.startNode<N.TypeAnnotation>();
@@ -2733,10 +2732,9 @@ export default (superClass: typeof Parser) =>
 
     parseImportSpecifierLocal<
       T extends
-
-          | N.ImportSpecifier
-          | N.ImportDefaultSpecifier
-          | N.ImportNamespaceSpecifier,
+        | N.ImportSpecifier
+        | N.ImportDefaultSpecifier
+        | N.ImportNamespaceSpecifier,
     >(node: N.ImportDeclaration, specifier: Undone<T>, type: T["type"]): void {
       specifier.local = hasTypeImportKind(node)
         ? this.flowParseRestrictedIdentifier(
diff --git ORI/babel/packages/babel-parser/src/plugins/typescript/index.ts ALT/babel/packages/babel-parser/src/plugins/typescript/index.ts
index 090e9126..9820396a 100644
--- ORI/babel/packages/babel-parser/src/plugins/typescript/index.ts
+++ ALT/babel/packages/babel-parser/src/plugins/typescript/index.ts
@@ -2315,11 +2315,10 @@ export default (superClass: ClassWithMixin<typeof Parser, IJSXParserMixin>) =>
 
     parseFunctionBodyAndFinish<
       T extends
-
-          | N.Function
-          | N.TSDeclareMethod
-          | N.TSDeclareFunction
-          | N.ClassPrivateMethod,
+        | N.Function
+        | N.TSDeclareMethod
+        | N.TSDeclareFunction
+        | N.ClassPrivateMethod,
     >(node: Undone<T>, type: T["type"], isMethod: boolean = false): T {
       if (this.match(tt.colon)) {
         node.returnType = this.tsParseTypeOrTypePredicateAnnotation(tt.colon);
diff --git ORI/babel/packages/babel-plugin-transform-flow-comments/src/index.ts ALT/babel/packages/babel-plugin-transform-flow-comments/src/index.ts
index 34cdc57d..524479c9 100644
--- ORI/babel/packages/babel-plugin-transform-flow-comments/src/index.ts
+++ ALT/babel/packages/babel-plugin-transform-flow-comments/src/index.ts
@@ -70,14 +70,13 @@ export default declare(api => {
 
   function wrapInFlowComment<
     N extends
-
-        | t.ClassProperty
-        | t.ExportNamedDeclaration
-        | t.Flow
-        | t.ImportDeclaration
-        | t.ExportDeclaration
-        | t.ImportSpecifier
-        | t.ImportDeclaration,
+      | t.ClassProperty
+      | t.ExportNamedDeclaration
+      | t.Flow
+      | t.ImportDeclaration
+      | t.ExportDeclaration
+      | t.ImportSpecifier
+      | t.ImportDeclaration,
   >(path: NodePath<N>) {
     attachComment({
       ofPath: path,
diff --git ORI/babel/packages/babel-traverse/src/path/index.ts ALT/babel/packages/babel-traverse/src/path/index.ts
index 1f84d26a..bf5345fe 100644
--- ORI/babel/packages/babel-traverse/src/path/index.ts
+++ ALT/babel/packages/babel-traverse/src/path/index.ts
@@ -299,12 +299,11 @@ interface NodePath<T>
    */
   ensureBlock<
     T extends
-
-        | t.Loop
-        | t.WithStatement
-        | t.Function
-        | t.LabeledStatement
-        | t.CatchClause,
+      | t.Loop
+      | t.WithStatement
+      | t.Function
+      | t.LabeledStatement
+      | t.CatchClause,
   >(
     this: NodePath<T>,
   ): asserts this is NodePath<T & { body: t.BlockStatement }>;


diff --git ORI/excalidraw/src/appState.ts ALT/excalidraw/src/appState.ts
index 45de2a9..5f3ef1a 100644
--- ORI/excalidraw/src/appState.ts
+++ ALT/excalidraw/src/appState.ts
@@ -100,15 +100,14 @@ export const getDefaultAppState = (): Omit<
  *  prop should be stripped when exporting to given storage type.
  */
 const APP_STATE_STORAGE_CONF = (<
-  Values extends
-    {
-      /** whether to keep when storing to browser storage (localStorage/IDB) */
-      browser: boolean;
-      /** whether to keep when exporting to file/database */
-      export: boolean;
-      /** server (shareLink/collab/...) */
-      server: boolean;
-    },
+  Values extends {
+    /** whether to keep when storing to browser storage (localStorage/IDB) */
+    browser: boolean;
+    /** whether to keep when exporting to file/database */
+    export: boolean;
+    /** server (shareLink/collab/...) */
+    server: boolean;
+  },
   T extends Record<keyof AppState, Values>,
 >(config: { [K in keyof T]: K extends keyof AppState ? T[K] : never }) =>
   config)({
diff --git ORI/excalidraw/src/data/restore.ts ALT/excalidraw/src/data/restore.ts
index a56738b..490f011 100644
--- ORI/excalidraw/src/data/restore.ts
+++ ALT/excalidraw/src/data/restore.ts
@@ -69,14 +69,13 @@ const getFontFamilyByName = (fontFamilyName: string): FontFamilyValues => {
 };
 
 const restoreElementWithProperties = <
-  T extends
-    Required<Omit<ExcalidrawElement, "customData">> & {
-      customData?: ExcalidrawElement["customData"];
-      /** @deprecated */
-      boundElementIds?: readonly ExcalidrawElement["id"][];
-      /** metadata that may be present in elements during collaboration */
-      [PRECEDING_ELEMENT_KEY]?: string;
-    },
+  T extends Required<Omit<ExcalidrawElement, "customData">> & {
+    customData?: ExcalidrawElement["customData"];
+    /** @deprecated */
+    boundElementIds?: readonly ExcalidrawElement["id"][];
+    /** metadata that may be present in elements during collaboration */
+    [PRECEDING_ELEMENT_KEY]?: string;
+  },
   K extends Pick<T, keyof Omit<Required<T>, keyof ExcalidrawElement>>,
 >(
   element: T,


diff --git ORI/typescript-eslint/packages/typescript-estree/src/convert.ts ALT/typescript-eslint/packages/typescript-estree/src/convert.ts
index e4402c1..b21a426 100644
--- ORI/typescript-eslint/packages/typescript-estree/src/convert.ts
+++ ALT/typescript-eslint/packages/typescript-estree/src/convert.ts
@@ -143,7 +143,8 @@ export class Converter {
    */
   private fixExports<
     T extends
-      TSESTree.DefaultExportDeclarations | TSESTree.NamedExportDeclarations,
+      | TSESTree.DefaultExportDeclarations
+      | TSESTree.NamedExportDeclarations,
   >(
     node:
       | ts.FunctionDeclaration
diff --git ORI/typescript-eslint/packages/utils/src/eslint-utils/rule-tester/RuleTester.ts ALT/typescript-eslint/packages/utils/src/eslint-utils/rule-tester/RuleTester.ts
index ee50995..7350de3 100644
--- ORI/typescript-eslint/packages/utils/src/eslint-utils/rule-tester/RuleTester.ts
+++ ALT/typescript-eslint/packages/utils/src/eslint-utils/rule-tester/RuleTester.ts
@@ -211,7 +211,8 @@ class RuleTester extends BaseRuleTester.RuleTester {
     */
     const normalizeTest = <
       T extends
-        ValidTestCase<TOptions> | InvalidTestCase<TMessageIds, TOptions>,
+        | ValidTestCase<TOptions>
+        | InvalidTestCase<TMessageIds, TOptions>,
     >({
       dependencyConstraints: _,
       ...test
@@ -270,7 +271,8 @@ class RuleTester extends BaseRuleTester.RuleTester {
           */
           const maybeMarkAsOnly = <
             T extends
-              ValidTestCase<TOptions> | InvalidTestCase<TMessageIds, TOptions>,
+              | ValidTestCase<TOptions>
+              | InvalidTestCase<TMessageIds, TOptions>,
           >(
             test: T,
           ): T => {

@fisker
Copy link
Sponsor Member Author

fisker commented May 26, 2023

run #14858 vs 2.8.8

@github-actions
Copy link
Contributor

github-actions bot commented May 26, 2023

[Error]

HttpError: Validation Failed: {"resource":"IssueComment","code":"unprocessable","field":"data","message":"Body is too long (maximum is 65536 characters)"}

@prettier prettier deleted a comment from github-actions bot May 26, 2023
@sosukesuzuki
Copy link
Member

run 2.7.1 vs 2.8.8

@github-actions
Copy link
Contributor

github-actions bot commented Jul 4, 2023

prettier/prettier@2.7.1 VS prettier/prettier@2.8.8

Diff (654 lines)
diff --git ORI/babel/packages/babel-core/src/config/files/index.ts ALT/babel/packages/babel-core/src/config/files/index.ts
index 5c340eb4..31e85602 100644
--- ORI/babel/packages/babel-core/src/config/files/index.ts
+++ ALT/babel/packages/babel-core/src/config/files/index.ts
@@ -3,7 +3,7 @@ type indexType = typeof import("./index");
 
 // Kind of gross, but essentially asserting that the exports of this module are the same as the
 // exports of index-browser, since this file may be replaced at bundle time with index-browser.
-({}) as any as indexBrowserType as indexType;
+({} as any as indexBrowserType as indexType);
 
 export { findPackageData } from "./package";
 
diff --git ORI/babel/packages/babel-core/src/config/printer.ts ALT/babel/packages/babel-core/src/config/printer.ts
index 618a9c3a..7e26ed7c 100644
--- ORI/babel/packages/babel-core/src/config/printer.ts
+++ ALT/babel/packages/babel-core/src/config/printer.ts
@@ -15,7 +15,7 @@ export const ChainFormatter = {
 
 type PrintableConfig = {
   content: OptionsAndDescriptors;
-  type: (typeof ChainFormatter)[keyof typeof ChainFormatter];
+  type: typeof ChainFormatter[keyof typeof ChainFormatter];
   callerName: string | undefined | null;
   filepath: string | undefined | null;
   index: number | undefined | null;
@@ -24,7 +24,7 @@ type PrintableConfig = {
 
 const Formatter = {
   title(
-    type: (typeof ChainFormatter)[keyof typeof ChainFormatter],
+    type: typeof ChainFormatter[keyof typeof ChainFormatter],
     callerName?: string | null,
     filepath?: string | null,
   ): string {
@@ -98,7 +98,7 @@ export class ConfigPrinter {
   _stack: Array<PrintableConfig> = [];
   configure(
     enabled: boolean,
-    type: (typeof ChainFormatter)[keyof typeof ChainFormatter],
+    type: typeof ChainFormatter[keyof typeof ChainFormatter],
     {
       callerName,
       filepath,
diff --git ORI/babel/packages/babel-core/src/config/resolve-targets.ts ALT/babel/packages/babel-core/src/config/resolve-targets.ts
index 04c7fec4..a7d9a790 100644
--- ORI/babel/packages/babel-core/src/config/resolve-targets.ts
+++ ALT/babel/packages/babel-core/src/config/resolve-targets.ts
@@ -3,7 +3,7 @@ type nodeType = typeof import("./resolve-targets");
 
 // Kind of gross, but essentially asserting that the exports of this module are the same as the
 // exports of index-browser, since this file may be replaced at bundle time with index-browser.
-({}) as any as browserType as nodeType;
+({} as any as browserType as nodeType);
 
 import type { ValidatedOptions } from "./validation/options";
 import path from "path";
diff --git ORI/babel/packages/babel-core/src/config/validation/options.ts ALT/babel/packages/babel-core/src/config/validation/options.ts
index 52b1338c..d79ea0fe 100644
--- ORI/babel/packages/babel-core/src/config/validation/options.ts
+++ ALT/babel/packages/babel-core/src/config/validation/options.ts
@@ -286,7 +286,7 @@ const knownAssumptions = [
   "skipForOfIteratorClosing",
   "superIsCallableConstructor",
 ] as const;
-export type AssumptionName = (typeof knownAssumptions)[number];
+export type AssumptionName = typeof knownAssumptions[number];
 export const assumptionsNames = new Set(knownAssumptions);
 
 function getSource(loc: NestingPath): OptionsSource {
diff --git ORI/babel/packages/babel-core/src/transform-file.ts ALT/babel/packages/babel-core/src/transform-file.ts
index c9706ba8..c493425d 100644
--- ORI/babel/packages/babel-core/src/transform-file.ts
+++ ALT/babel/packages/babel-core/src/transform-file.ts
@@ -12,7 +12,7 @@ type transformFileType = typeof import("./transform-file");
 // Kind of gross, but essentially asserting that the exports of this module are the same as the
 // exports of transform-file-browser, since this file may be replaced at bundle time with
 // transform-file-browser.
-({}) as any as transformFileBrowserType as transformFileType;
+({} as any as transformFileBrowserType as transformFileType);
 
 const transformFileRunner = gensync(function* (
   filename: string,
diff --git ORI/babel/packages/babel-helper-compilation-targets/src/utils.ts ALT/babel/packages/babel-helper-compilation-targets/src/utils.ts
index fa3b6705..4fba5a5c 100644
--- ORI/babel/packages/babel-helper-compilation-targets/src/utils.ts
+++ ALT/babel/packages/babel-helper-compilation-targets/src/utils.ts
@@ -50,7 +50,7 @@ export function isUnreleasedVersion(
 
 export function getLowestUnreleased(a: string, b: string, env: Target): string {
   const unreleasedLabel:
-    | (typeof unreleasedLabels)[keyof typeof unreleasedLabels]
+    | typeof unreleasedLabels[keyof typeof unreleasedLabels]
     | undefined =
     // @ts-expect-error unreleasedLabel is undefined when env is not safari
     unreleasedLabels[env];
diff --git ORI/babel/packages/babel-helper-create-regexp-features-plugin/src/features.ts ALT/babel/packages/babel-helper-create-regexp-features-plugin/src/features.ts
index acb9ab13..ed9b6f4e 100644
--- ORI/babel/packages/babel-helper-create-regexp-features-plugin/src/features.ts
+++ ALT/babel/packages/babel-helper-create-regexp-features-plugin/src/features.ts
@@ -18,7 +18,7 @@ export const FEATURES = Object.freeze({
 export const featuresKey = "@babel/plugin-regexp-features/featuresKey";
 export const runtimeKey = "@babel/plugin-regexp-features/runtimeKey";
 
-type FeatureType = (typeof FEATURES)[keyof typeof FEATURES];
+type FeatureType = typeof FEATURES[keyof typeof FEATURES];
 
 export function enableFeature(features: number, feature: FeatureType): number {
   return features | feature;
diff --git ORI/babel/packages/babel-parser/src/parser/lval.ts ALT/babel/packages/babel-parser/src/parser/lval.ts
index ceeece18..67b52575 100644
--- ORI/babel/packages/babel-parser/src/parser/lval.ts
+++ ALT/babel/packages/babel-parser/src/parser/lval.ts
@@ -384,7 +384,7 @@ export default abstract class LValParser extends NodeUtils {
   parseBindingList(
     this: Parser,
     close: TokenType,
-    closeCharCode: (typeof charCodes)[keyof typeof charCodes],
+    closeCharCode: typeof charCodes[keyof typeof charCodes],
     allowEmpty?: boolean,
     allowModifiers?: boolean,
   ): Array<Pattern | TSParameterProperty> {
@@ -729,7 +729,7 @@ export default abstract class LValParser extends NodeUtils {
   }
 
   checkCommaAfterRest(
-    close: (typeof charCodes)[keyof typeof charCodes],
+    close: typeof charCodes[keyof typeof charCodes],
   ): boolean {
     if (!this.match(tt.comma)) {
       return false;
diff --git ORI/babel/packages/babel-parser/src/plugins/typescript/index.ts ALT/babel/packages/babel-parser/src/plugins/typescript/index.ts
index 9820396a..efcb155e 100644
--- ORI/babel/packages/babel-parser/src/plugins/typescript/index.ts
+++ ALT/babel/packages/babel-parser/src/plugins/typescript/index.ts
@@ -3651,7 +3651,7 @@ export default (superClass: ClassWithMixin<typeof Parser, IJSXParserMixin>) =>
     }
 
     checkCommaAfterRest(
-      close: (typeof charCodes)[keyof typeof charCodes],
+      close: typeof charCodes[keyof typeof charCodes],
     ): boolean {
       if (
         this.state.isAmbientContext &&
diff --git ORI/babel/packages/babel-plugin-syntax-pipeline-operator/src/index.ts ALT/babel/packages/babel-plugin-syntax-pipeline-operator/src/index.ts
index c1cbd92e..9072fcd2 100644
--- ORI/babel/packages/babel-plugin-syntax-pipeline-operator/src/index.ts
+++ ALT/babel/packages/babel-plugin-syntax-pipeline-operator/src/index.ts
@@ -6,8 +6,8 @@ const documentationURL =
   "https://babeljs.io/docs/en/babel-plugin-proposal-pipeline-operator";
 
 export interface Options {
-  proposal: (typeof PIPELINE_PROPOSALS)[number];
-  topicToken?: (typeof TOPIC_TOKENS)[number];
+  proposal: typeof PIPELINE_PROPOSALS[number];
+  topicToken?: typeof TOPIC_TOKENS[number];
 }
 
 export default declare((api, { proposal, topicToken }: Options) => {
diff --git ORI/babel/packages/babel-preset-env/src/types.d.ts ALT/babel/packages/babel-preset-env/src/types.d.ts
index aec4b3f6..e0fb50ec 100644
--- ORI/babel/packages/babel-preset-env/src/types.d.ts
+++ ALT/babel/packages/babel-preset-env/src/types.d.ts
@@ -4,9 +4,9 @@ import type { Targets, InputTargets } from "@babel/helper-compilation-targets";
 
 // Options
 // Use explicit modules to prevent typo errors.
-export type ModuleOption = (typeof ModulesOption)[keyof typeof ModulesOption];
+export type ModuleOption = typeof ModulesOption[keyof typeof ModulesOption];
 export type BuiltInsOption =
-  (typeof UseBuiltInsOption)[keyof typeof UseBuiltInsOption];
+  typeof UseBuiltInsOption[keyof typeof UseBuiltInsOption];
 
 type CorejsVersion = 2 | 3 | string;
 
diff --git ORI/babel/packages/babel-traverse/src/path/evaluation.ts ALT/babel/packages/babel-traverse/src/path/evaluation.ts
index f272110f..6c7c1616 100644
--- ORI/babel/packages/babel-traverse/src/path/evaluation.ts
+++ ALT/babel/packages/babel-traverse/src/path/evaluation.ts
@@ -6,14 +6,14 @@ import type * as t from "@babel/types";
 const VALID_CALLEES = ["String", "Number", "Math"] as const;
 const INVALID_METHODS = ["random"] as const;
 
-function isValidCallee(val: string): val is (typeof VALID_CALLEES)[number] {
+function isValidCallee(val: string): val is typeof VALID_CALLEES[number] {
   return VALID_CALLEES.includes(
     // @ts-expect-error val is a string
     val,
   );
 }
 
-function isInvalidMethod(val: string): val is (typeof INVALID_METHODS)[number] {
+function isInvalidMethod(val: string): val is typeof INVALID_METHODS[number] {
   return INVALID_METHODS.includes(
     // @ts-expect-error val is a string
     val,
diff --git ORI/content/README.md ALT/content/README.md
index 7313d80b..88675664 100644
--- ORI/content/README.md
+++ ALT/content/README.md
@@ -47,4 +47,4 @@ By participating in and contributing to our projects and discussions, you acknow
 You can communicate with the MDN Web Docs team and community using the [communication channels][].
 
 [communication channels]: https://developer.mozilla.org/en-US/docs/MDN/Community/Communication_channels
-[MDN Web Docs]: https://developer.mozilla.org/
+[mdn web docs]: https://developer.mozilla.org/
diff --git ORI/content/REVIEWING.md ALT/content/REVIEWING.md
index 6062a357..4f54d304 100644
--- ORI/content/REVIEWING.md
+++ ALT/content/REVIEWING.md
@@ -210,4 +210,4 @@ for all their help.
 [get in touch with us]: https://developer.mozilla.org/en-US/docs/MDN/Community/Contributing/Getting_started#what_can_i_do_to_help
 [mdn code example guidelines]: https://developer.mozilla.org/en-US/docs/MDN/Writing_guidelines/Writing_style_guide/Code_style_guide
 [mdn writing style guide]: https://developer.mozilla.org/en-US/docs/MDN/Guidelines/Writing_style_guide
-[MDN Web Docs chat rooms]: https://developer.mozilla.org/en-US/docs/MDN/Community/Communication_channels
+[mdn web docs chat rooms]: https://developer.mozilla.org/en-US/docs/MDN/Community/Communication_channels
diff --git ORI/content/files/en-us/learn/forms/ui_pseudo-classes/index.md ALT/content/files/en-us/learn/forms/ui_pseudo-classes/index.md
index e97457c6..673ec85c 100644
--- ORI/content/files/en-us/learn/forms/ui_pseudo-classes/index.md
+++ ALT/content/files/en-us/learn/forms/ui_pseudo-classes/index.md
@@ -459,12 +459,7 @@ A fragment of the HTML is as follows — note the readonly attribute:
 If you try the live example, you'll see that the top set of form elements are not focusable, however, the values are submitted when the form is submitted. We've styled the form controls using the `:read-only` and `:read-write` pseudo-classes, like so:
 
 ```css
-:is(
-    input:read-only,
-    input:-moz-read-only,
-    textarea:-moz-read-only,
-    textarea:read-only
-  ) {
+:is(input:read-only, input:-moz-read-only, textarea:-moz-read-only, textarea:read-only) {
   border: 0;
   box-shadow: none;
   background-color: white;
diff --git ORI/content/files/en-us/web/api/text/index.md ALT/content/files/en-us/web/api/text/index.md
index f55e1762..dbc5af0b 100644
--- ORI/content/files/en-us/web/api/text/index.md
+++ ALT/content/files/en-us/web/api/text/index.md
@@ -26,10 +26,10 @@ To understand what a text node is, consider the following document:
 
 In that document, there are five text nodes, with the following contents:
 
-- `"\n    "` (after the `<head>` start tag, a newline followed by four spaces)
+- `"\n "` (after the `<head>` start tag, a newline followed by four spaces)
 - `"Aliens?"` (the contents of the `title` element)
-- `"\n  "` (after the `</head>` end tag, a newline followed by two spaces)
-- `"\n  "` (after the `<body>` start tag, a newline followed by two spaces)
+- `"\n "` (after the `</head>` end tag, a newline followed by two spaces)
+- `"\n "` (after the `<body>` start tag, a newline followed by two spaces)
 - `"\n Why yes.\n \n\n"` (the contents of the `body` element)
 
 Each of those text nodes is an object that has the properties and methods documented in this article.

diff --git ORI/excalidraw/src/appState.ts ALT/excalidraw/src/appState.ts
index 5f3ef1a..b35cd2a 100644
--- ORI/excalidraw/src/appState.ts
+++ ALT/excalidraw/src/appState.ts
@@ -194,11 +194,11 @@ const _clearAppStateForStorage = <
   exportType: ExportType,
 ) => {
   type ExportableKeys = {
-    [K in keyof typeof APP_STATE_STORAGE_CONF]: (typeof APP_STATE_STORAGE_CONF)[K][ExportType] extends true
+    [K in keyof typeof APP_STATE_STORAGE_CONF]: typeof APP_STATE_STORAGE_CONF[K][ExportType] extends true
       ? K
       : never;
   }[keyof typeof APP_STATE_STORAGE_CONF];
-  const stateForExport = {} as { [K in ExportableKeys]?: (typeof appState)[K] };
+  const stateForExport = {} as { [K in ExportableKeys]?: typeof appState[K] };
   for (const key of Object.keys(appState) as (keyof typeof appState)[]) {
     const propConfig = APP_STATE_STORAGE_CONF[key];
     if (propConfig?.[exportType]) {
diff --git ORI/excalidraw/src/components/App.tsx ALT/excalidraw/src/components/App.tsx
index 1590fa9..f865079 100644
--- ORI/excalidraw/src/components/App.tsx
+++ ALT/excalidraw/src/components/App.tsx
@@ -2184,7 +2184,7 @@ class App extends React.Component<AppProps, AppState> {
 
   private setActiveTool = (
     tool:
-      | { type: (typeof SHAPES)[number]["value"] | "eraser" }
+      | { type: typeof SHAPES[number]["value"] | "eraser" }
       | { type: "custom"; customType: string },
   ) => {
     const nextActiveTool = updateActiveTool(this.state, tool);
diff --git ORI/excalidraw/src/data/blob.ts ALT/excalidraw/src/data/blob.ts
index 178c741..b5ca1dc 100644
--- ORI/excalidraw/src/data/blob.ts
+++ ALT/excalidraw/src/data/blob.ts
@@ -116,7 +116,7 @@ export const isImageFileHandle = (handle: FileSystemHandle | null) => {
 
 export const isSupportedImageFile = (
   blob: Blob | null | undefined,
-): blob is Blob & { type: (typeof ALLOWED_IMAGE_MIME_TYPES)[number] } => {
+): blob is Blob & { type: typeof ALLOWED_IMAGE_MIME_TYPES[number] } => {
   const { type } = blob || {};
   return (
     !!type && (ALLOWED_IMAGE_MIME_TYPES as readonly string[]).includes(type)
@@ -277,7 +277,7 @@ export const resizeImageFile = async (
   file: File,
   opts: {
     /** undefined indicates auto */
-    outputType?: (typeof MIME_TYPES)["jpg"];
+    outputType?: typeof MIME_TYPES["jpg"];
     maxWidthOrHeight: number;
   },
 ): Promise<File> => {
diff --git ORI/excalidraw/src/element/linearElementEditor.ts ALT/excalidraw/src/element/linearElementEditor.ts
index 17cbb55..f0d0a21 100644
--- ORI/excalidraw/src/element/linearElementEditor.ts
+++ ALT/excalidraw/src/element/linearElementEditor.ts
@@ -387,7 +387,7 @@ export class LinearElementEditor {
   static getEditorMidPoints = (
     element: NonDeleted<ExcalidrawLinearElement>,
     appState: AppState,
-  ): (typeof editorMidPointsCache)["points"] => {
+  ): typeof editorMidPointsCache["points"] => {
     // Since its not needed outside editor unless 2 pointer lines
     if (!appState.editingLinearElement && element.points.length > 2) {
       return [];
@@ -478,7 +478,7 @@ export class LinearElementEditor {
       }
     }
     let index = 0;
-    const midPoints: (typeof editorMidPointsCache)["points"] =
+    const midPoints: typeof editorMidPointsCache["points"] =
       LinearElementEditor.getEditorMidPoints(element, appState);
     while (index < midPoints.length) {
       if (midPoints[index] !== null) {
@@ -586,7 +586,7 @@ export class LinearElementEditor {
     hitElement: NonDeleted<ExcalidrawElement> | null;
     linearElementEditor: LinearElementEditor | null;
   } {
-    const ret: ReturnType<(typeof LinearElementEditor)["handlePointerDown"]> = {
+    const ret: ReturnType<typeof LinearElementEditor["handlePointerDown"]> = {
       didAddPoint: false,
       hitElement: null,
       linearElementEditor: null,
diff --git ORI/excalidraw/src/element/types.ts ALT/excalidraw/src/element/types.ts
index 4d85652..8f81096 100644
--- ORI/excalidraw/src/element/types.ts
+++ ALT/excalidraw/src/element/types.ts
@@ -4,17 +4,17 @@ import { FONT_FAMILY, TEXT_ALIGN, THEME, VERTICAL_ALIGN } from "../constants";
 export type ChartType = "bar" | "line";
 export type FillStyle = "hachure" | "cross-hatch" | "solid";
 export type FontFamilyKeys = keyof typeof FONT_FAMILY;
-export type FontFamilyValues = (typeof FONT_FAMILY)[FontFamilyKeys];
-export type Theme = (typeof THEME)[keyof typeof THEME];
+export type FontFamilyValues = typeof FONT_FAMILY[FontFamilyKeys];
+export type Theme = typeof THEME[keyof typeof THEME];
 export type FontString = string & { _brand: "fontString" };
 export type GroupId = string;
 export type PointerType = "mouse" | "pen" | "touch";
 export type StrokeSharpness = "round" | "sharp";
 export type StrokeStyle = "solid" | "dashed" | "dotted";
-export type TextAlign = (typeof TEXT_ALIGN)[keyof typeof TEXT_ALIGN];
+export type TextAlign = typeof TEXT_ALIGN[keyof typeof TEXT_ALIGN];
 
 type VerticalAlignKeys = keyof typeof VERTICAL_ALIGN;
-export type VerticalAlign = (typeof VERTICAL_ALIGN)[VerticalAlignKeys];
+export type VerticalAlign = typeof VERTICAL_ALIGN[VerticalAlignKeys];
 
 type _ExcalidrawElementBase = Readonly<{
   id: string;
diff --git ORI/excalidraw/src/types.ts ALT/excalidraw/src/types.ts
index d60f35a..620f7b7 100644
--- ORI/excalidraw/src/types.ts
+++ ALT/excalidraw/src/types.ts
@@ -56,7 +56,7 @@ export type DataURL = string & { _brand: "DataURL" };
 
 export type BinaryFileData = {
   mimeType:
-    | (typeof ALLOWED_IMAGE_MIME_TYPES)[number]
+    | typeof ALLOWED_IMAGE_MIME_TYPES[number]
     // future user or unknown file type
     | typeof MIME_TYPES.binary;
   id: FileId;
@@ -81,7 +81,7 @@ export type BinaryFiles = Record<ExcalidrawElement["id"], BinaryFileData>;
 
 export type LastActiveToolBeforeEraser =
   | {
-      type: (typeof SHAPES)[number]["value"] | "eraser";
+      type: typeof SHAPES[number]["value"] | "eraser";
       customType: null;
     }
   | {
@@ -107,7 +107,7 @@ export type AppState = {
   editingLinearElement: LinearElementEditor | null;
   activeTool:
     | {
-        type: (typeof SHAPES)[number]["value"] | "eraser";
+        type: typeof SHAPES[number]["value"] | "eraser";
         lastActiveToolBeforeEraser: LastActiveToolBeforeEraser;
         locked: boolean;
         customType: null;
@@ -401,7 +401,7 @@ export type AppClassProperties = {
     FileId,
     {
       image: HTMLImageElement | Promise<HTMLImageElement>;
-      mimeType: (typeof ALLOWED_IMAGE_MIME_TYPES)[number];
+      mimeType: typeof ALLOWED_IMAGE_MIME_TYPES[number];
     }
   >;
   files: BinaryFiles;
diff --git ORI/excalidraw/src/utils.ts ALT/excalidraw/src/utils.ts
index fa9d167..9a92560 100644
--- ORI/excalidraw/src/utils.ts
+++ ALT/excalidraw/src/utils.ts
@@ -218,7 +218,7 @@ export const distance = (x: number, y: number) => Math.abs(x - y);
 export const updateActiveTool = (
   appState: Pick<AppState, "activeTool">,
   data: (
-    | { type: (typeof SHAPES)[number]["value"] | "eraser" }
+    | { type: typeof SHAPES[number]["value"] | "eraser" }
     | { type: "custom"; customType: string }
   ) & { lastActiveToolBeforeEraser?: LastActiveToolBeforeEraser },
 ): AppState["activeTool"] => {

diff --git ORI/react-admin/packages/ra-core/src/inference/inferTypeFromValues.ts ALT/react-admin/packages/ra-core/src/inference/inferTypeFromValues.ts
index 112d70e..ae7b817 100644
--- ORI/react-admin/packages/ra-core/src/inference/inferTypeFromValues.ts
+++ ALT/react-admin/packages/ra-core/src/inference/inferTypeFromValues.ts
@@ -36,7 +36,7 @@ export const InferenceTypes = [
     'object',
 ] as const;
 
-export type PossibleInferredElementTypes = (typeof InferenceTypes)[number];
+export type PossibleInferredElementTypes = typeof InferenceTypes[number];
 
 export interface InferredElementDescription {
     type: PossibleInferredElementTypes;
diff --git ORI/react-admin/packages/ra-ui-materialui/src/list/filter/FilterButton.tsx ALT/react-admin/packages/ra-ui-materialui/src/list/filter/FilterButton.tsx
index 877e919..8cccc7a 100644
--- ORI/react-admin/packages/ra-ui-materialui/src/list/filter/FilterButton.tsx
+++ ALT/react-admin/packages/ra-ui-materialui/src/list/filter/FilterButton.tsx
@@ -187,15 +187,13 @@ export const FilterButton = (props: FilterButtonProps): JSX.Element => {
                         </MenuItem>
                     )
                 )}
-                {hasFilterValues &&
-                    !hasSavedCurrentQuery &&
-                    !disableSaveQuery && (
-                        <MenuItem onClick={showAddSavedQueryDialog}>
-                            {translate('ra.saved_queries.new_label', {
-                                _: 'Save current query...',
-                            })}
-                        </MenuItem>
-                    )}
+                {hasFilterValues && !hasSavedCurrentQuery && !disableSaveQuery && (
+                    <MenuItem onClick={showAddSavedQueryDialog}>
+                        {translate('ra.saved_queries.new_label', {
+                            _: 'Save current query...',
+                        })}
+                    </MenuItem>
+                )}
                 {hasFilterValues && (
                     <MenuItem onClick={() => setFilters({}, {}, false)}>
                         {translate('ra.action.remove_all_filters', {
diff --git ORI/typescript-eslint/packages/eslint-plugin/docs/rules/no-base-to-string.md ALT/typescript-eslint/packages/eslint-plugin/docs/rules/no-base-to-string.md
index a5493c7..7409f5e 100644
--- ORI/typescript-eslint/packages/eslint-plugin/docs/rules/no-base-to-string.md
+++ ALT/typescript-eslint/packages/eslint-plugin/docs/rules/no-base-to-string.md
@@ -29,7 +29,7 @@ value + '';
 
 // Interpolation and manual .toString() calls too:
 `Value: ${value}`;
-({}).toString();
+({}.toString());
 ```
 
 ### ✅ Correct
diff --git ORI/typescript-eslint/packages/eslint-plugin/src/rules/no-redundant-type-constituents.ts ALT/typescript-eslint/packages/eslint-plugin/src/rules/no-redundant-type-constituents.ts
index 9f6db6e..33237a8 100644
--- ORI/typescript-eslint/packages/eslint-plugin/src/rules/no-redundant-type-constituents.ts
+++ ALT/typescript-eslint/packages/eslint-plugin/src/rules/no-redundant-type-constituents.ts
@@ -51,7 +51,7 @@ const keywordNodeTypesToTsTypes = new Map([
   [TSESTree.AST_NODE_TYPES.TSStringKeyword, ts.TypeFlags.String],
 ]);
 
-type PrimitiveTypeFlag = (typeof primitiveTypeFlags)[number];
+type PrimitiveTypeFlag = typeof primitiveTypeFlags[number];
 
 interface TypeFlagsWithName {
   typeFlags: ts.TypeFlags;
diff --git ORI/typescript-eslint/packages/eslint-plugin/src/rules/padding-line-between-statements.ts ALT/typescript-eslint/packages/eslint-plugin/src/rules/padding-line-between-statements.ts
index 548c50d..f9b9709 100644
--- ORI/typescript-eslint/packages/eslint-plugin/src/rules/padding-line-between-statements.ts
+++ ALT/typescript-eslint/packages/eslint-plugin/src/rules/padding-line-between-statements.ts
@@ -699,7 +699,7 @@ export default util.createRule<Options, MessageIds>({
     function getPaddingType(
       prevNode: TSESTree.Node,
       nextNode: TSESTree.Node,
-    ): (typeof PaddingTypes)[keyof typeof PaddingTypes] {
+    ): typeof PaddingTypes[keyof typeof PaddingTypes] {
       for (let i = configureList.length - 1; i >= 0; --i) {
         const configure = configureList[i];
         if (
diff --git ORI/typescript-eslint/packages/scope-manager/tests/fixtures.test.ts ALT/typescript-eslint/packages/scope-manager/tests/fixtures.test.ts
index 02173b8..fa86c15 100644
--- ORI/typescript-eslint/packages/scope-manager/tests/fixtures.test.ts
+++ ALT/typescript-eslint/packages/scope-manager/tests/fixtures.test.ts
@@ -52,7 +52,7 @@ const ALLOWED_OPTIONS: Map<string, ALLOWED_VALUE> = new Map<
 ]);
 
 function nestDescribe(
-  fixture: (typeof fixtures)[number],
+  fixture: typeof fixtures[number],
   segments = fixture.segments,
 ): void {
   if (segments.length > 0) {
diff --git ORI/typescript-eslint/packages/typescript-estree/tests/ast-fixtures.test.ts ALT/typescript-eslint/packages/typescript-estree/tests/ast-fixtures.test.ts
index f95af22..99cf80d 100644
--- ORI/typescript-eslint/packages/typescript-estree/tests/ast-fixtures.test.ts
+++ ALT/typescript-eslint/packages/typescript-estree/tests/ast-fixtures.test.ts
@@ -46,7 +46,7 @@ const fixtures = glob
   });
 
 function nestDescribe(
-  fixture: (typeof fixtures)[number],
+  fixture: typeof fixtures[number],
   segments = fixture.segments,
 ): void {
   if (segments.length > 0) {
diff --git ORI/typescript-eslint/packages/visitor-keys/src/visitor-keys.ts ALT/typescript-eslint/packages/visitor-keys/src/visitor-keys.ts
index ce848d2..80a8b8c 100644
--- ORI/typescript-eslint/packages/visitor-keys/src/visitor-keys.ts
+++ ALT/typescript-eslint/packages/visitor-keys/src/visitor-keys.ts
@@ -101,14 +101,14 @@ type KeysDefinedInESLintVisitorKeysCore =
 
 // strictly type the arrays of keys provided to make sure we keep this config in sync with the type defs
 type AdditionalKeys = {
-  // require keys for all nodes NOT defined in `eslint-visitor-keys`
-  readonly [T in Exclude<
+  readonly // require keys for all nodes NOT defined in `eslint-visitor-keys`
+  [T in Exclude<
     AST_NODE_TYPES,
     KeysDefinedInESLintVisitorKeysCore
   >]: readonly GetNodeTypeKeys<T>[];
 } & {
-  // optionally allow keys for all nodes defined in `eslint-visitor-keys`
-  readonly [T in KeysDefinedInESLintVisitorKeysCore]?: readonly GetNodeTypeKeys<T>[];
+  readonly // optionally allow keys for all nodes defined in `eslint-visitor-keys`
+  [T in KeysDefinedInESLintVisitorKeysCore]?: readonly GetNodeTypeKeys<T>[];
 };
 
 /**
diff --git ORI/vega-lite/src/channel.ts ALT/vega-lite/src/channel.ts
index 289cc69..d7de12a 100644
--- ORI/vega-lite/src/channel.ts
+++ ALT/vega-lite/src/channel.ts
@@ -193,11 +193,11 @@ const {row: _r, column: _c, facet: _f, ...SINGLE_DEF_UNIT_CHANNEL_INDEX} = SINGL
 
 export const SINGLE_DEF_CHANNELS = keys(SINGLE_DEF_CHANNEL_INDEX);
 
-export type SingleDefChannel = (typeof SINGLE_DEF_CHANNELS)[number];
+export type SingleDefChannel = typeof SINGLE_DEF_CHANNELS[number];
 
 export const SINGLE_DEF_UNIT_CHANNELS = keys(SINGLE_DEF_UNIT_CHANNEL_INDEX);
 
-export type SingleDefUnitChannel = (typeof SINGLE_DEF_UNIT_CHANNELS)[number];
+export type SingleDefUnitChannel = typeof SINGLE_DEF_UNIT_CHANNELS[number];
 
 export function isSingleDefUnitChannel(str: string): str is SingleDefUnitChannel {
   return !!SINGLE_DEF_UNIT_CHANNEL_INDEX[str];
@@ -389,7 +389,7 @@ const {
 } = UNIT_CHANNEL_INDEX;
 
 export const NONPOSITION_CHANNELS = keys(NONPOSITION_CHANNEL_INDEX);
-export type NonPositionChannel = (typeof NONPOSITION_CHANNELS)[number];
+export type NonPositionChannel = typeof NONPOSITION_CHANNELS[number];
 
 const POSITION_SCALE_CHANNEL_INDEX = {
   x: 1,
@@ -418,7 +418,7 @@ const OFFSET_SCALE_CHANNEL_INDEX: {xOffset: 1; yOffset: 1} = {xOffset: 1, yOffse
 
 export const OFFSET_SCALE_CHANNELS = keys(OFFSET_SCALE_CHANNEL_INDEX);
 
-export type OffsetScaleChannel = (typeof OFFSET_SCALE_CHANNELS)[0];
+export type OffsetScaleChannel = typeof OFFSET_SCALE_CHANNELS[0];
 
 export function isXorYOffset(channel: Channel): channel is OffsetScaleChannel {
   return channel in OFFSET_SCALE_CHANNEL_INDEX;
@@ -441,7 +441,7 @@ const {
   ...NONPOSITION_SCALE_CHANNEL_INDEX
 } = NONPOSITION_CHANNEL_INDEX;
 export const NONPOSITION_SCALE_CHANNELS = keys(NONPOSITION_SCALE_CHANNEL_INDEX);
-export type NonPositionScaleChannel = (typeof NONPOSITION_SCALE_CHANNELS)[number];
+export type NonPositionScaleChannel = typeof NONPOSITION_SCALE_CHANNELS[number];
 
 export function isNonPositionScaleChannel(channel: Channel): channel is NonPositionScaleChannel {
   return !!NONPOSITION_CHANNEL_INDEX[channel];
@@ -478,7 +478,7 @@ const SCALE_CHANNEL_INDEX = {
 
 /** List of channels with scales */
 export const SCALE_CHANNELS = keys(SCALE_CHANNEL_INDEX);
-export type ScaleChannel = (typeof SCALE_CHANNELS)[number];
+export type ScaleChannel = typeof SCALE_CHANNELS[number];
 
 export function isScaleChannel(channel: Channel): channel is ScaleChannel {
   return !!SCALE_CHANNEL_INDEX[channel];
diff --git ORI/vega-lite/src/compositemark/boxplot.ts ALT/vega-lite/src/compositemark/boxplot.ts
index e047c2d..b07a3cb 100644
--- ORI/vega-lite/src/compositemark/boxplot.ts
+++ ALT/vega-lite/src/compositemark/boxplot.ts
@@ -27,7 +27,7 @@ export type BoxPlot = typeof BOXPLOT;
 
 export const BOXPLOT_PARTS = ['box', 'median', 'outliers', 'rule', 'ticks'] as const;
 
-type BoxPlotPart = (typeof BOXPLOT_PARTS)[number];
+type BoxPlotPart = typeof BOXPLOT_PARTS[number];
 
 export type BoxPlotPartsMixins = PartsMixins<BoxPlotPart>;
 
diff --git ORI/vega-lite/src/compositemark/errorband.ts ALT/vega-lite/src/compositemark/errorband.ts
index 35924d6..16f790d 100644
--- ORI/vega-lite/src/compositemark/errorband.ts
+++ ALT/vega-lite/src/compositemark/errorband.ts
@@ -18,7 +18,7 @@ export type ErrorBand = typeof ERRORBAND;
 
 export const ERRORBAND_PARTS = ['band', 'borders'] as const;
 
-type ErrorBandPart = (typeof ERRORBAND_PARTS)[number];
+type ErrorBandPart = typeof ERRORBAND_PARTS[number];
 
 export type ErrorBandPartsMixins = PartsMixins<ErrorBandPart>;
 
diff --git ORI/vega-lite/src/compositemark/errorbar.ts ALT/vega-lite/src/compositemark/errorbar.ts
index 13e0e12..52d41fe 100644
--- ORI/vega-lite/src/compositemark/errorbar.ts
+++ ALT/vega-lite/src/compositemark/errorbar.ts
@@ -44,7 +44,7 @@ export type ErrorInputType = 'raw' | 'aggregated-upper-lower' | 'aggregated-erro
 
 export const ERRORBAR_PARTS = ['ticks', 'rule'] as const;
 
-export type ErrorBarPart = (typeof ERRORBAR_PARTS)[number];
+export type ErrorBarPart = typeof ERRORBAR_PARTS[number];
 
 export interface ErrorExtraEncoding<F extends Field> {
   /**
diff --git ORI/vega-lite/src/mark.ts ALT/vega-lite/src/mark.ts
index 5d53a2f..dc0d4ea 100644
--- ORI/vega-lite/src/mark.ts
+++ ALT/vega-lite/src/mark.ts
@@ -601,8 +601,10 @@ export interface RelativeBandSize {
 }
 
 // Point/Line OverlayMixins are only for area, line, and trail but we don't want to declare multiple types of MarkDef
-export interface MarkDef<M extends string | Mark = Mark, ES extends ExprRef | SignalRef = ExprRef | SignalRef>
-  extends GenericMarkDef<M>,
+export interface MarkDef<
+  M extends string | Mark = Mark,
+  ES extends ExprRef | SignalRef = ExprRef | SignalRef
+> extends GenericMarkDef<M>,
     Omit<
       MarkConfig<ES> &
         AreaConfig<ES> &

@fisker
Copy link
Sponsor Member Author

fisker commented Jul 29, 2023

Run #15081

@fisker
Copy link
Sponsor Member Author

fisker commented Aug 29, 2023

Run #15326

@fisker
Copy link
Sponsor Member Author

fisker commented Nov 18, 2023

Run #15679

@thorn0
Copy link
Member

thorn0 commented Dec 4, 2023

Run #15522

Copy link
Contributor

github-actions bot commented Dec 4, 2023

prettier/prettier#15522 VS prettier/prettier@main

Diff (178 lines)
diff --git ORI/content/files/en-us/learn/javascript/asynchronous/introducing_workers/index.md ALT/content/files/en-us/learn/javascript/asynchronous/introducing_workers/index.md
index d152c391..ba7c4182 100644
--- ORI/content/files/en-us/learn/javascript/asynchronous/introducing_workers/index.md
+++ ALT/content/files/en-us/learn/javascript/asynchronous/introducing_workers/index.md
@@ -74,8 +74,9 @@ function generatePrimes(quota) {
 document.querySelector("#generate").addEventListener("click", () => {
   const quota = document.querySelector("#quota").value;
   const primes = generatePrimes(quota);
-  document.querySelector("#output").textContent =
-    `Finished generating ${quota} primes!`;
+  document.querySelector(
+    "#output",
+  ).textContent = `Finished generating ${quota} primes!`;
 });
 
 document.querySelector("#reload").addEventListener("click", () => {
@@ -157,8 +158,9 @@ document.querySelector("#generate").addEventListener("click", () => {
 // update the output box with a message for the user, including the number of
 // primes that were generated, taken from the message data.
 worker.addEventListener("message", (message) => {
-  document.querySelector("#output").textContent =
-    `Finished generating ${message.data} primes!`;
+  document.querySelector(
+    "#output",
+  ).textContent = `Finished generating ${message.data} primes!`;
 });
 
 document.querySelector("#reload").addEventListener("click", () => {
diff --git ORI/content/files/en-us/web/api/batterymanager/chargingtime/index.md ALT/content/files/en-us/web/api/batterymanager/chargingtime/index.md
index 7be36c3f..61ce789f 100644
--- ORI/content/files/en-us/web/api/batterymanager/chargingtime/index.md
+++ ALT/content/files/en-us/web/api/batterymanager/chargingtime/index.md
@@ -34,8 +34,9 @@ A number.
 navigator.getBattery().then((battery) => {
   const time = battery.chargingTime;
 
-  document.querySelector("#chargingTime").textContent =
-    `Time to fully charge the battery: ${time}s`;
+  document.querySelector(
+    "#chargingTime",
+  ).textContent = `Time to fully charge the battery: ${time}s`;
 });
 ```
 
diff --git ORI/content/files/en-us/web/api/batterymanager/dischargingtime/index.md ALT/content/files/en-us/web/api/batterymanager/dischargingtime/index.md
index ae0883f0..011eacb5 100644
--- ORI/content/files/en-us/web/api/batterymanager/dischargingtime/index.md
+++ ALT/content/files/en-us/web/api/batterymanager/dischargingtime/index.md
@@ -36,8 +36,9 @@ A number.
 navigator.getBattery().then((battery) => {
   const time = battery.dischargingTime;
 
-  document.querySelector("#dischargingTime").textContent =
-    `Remaining time to fully discharge the battery: ${time}`;
+  document.querySelector(
+    "#dischargingTime",
+  ).textContent = `Remaining time to fully discharge the battery: ${time}`;
 });
 ```
 
diff --git ORI/content/files/en-us/web/api/batterymanager/levelchange_event/index.md ALT/content/files/en-us/web/api/batterymanager/levelchange_event/index.md
index 1ae9271c..c7b43a83 100644
--- ORI/content/files/en-us/web/api/batterymanager/levelchange_event/index.md
+++ ALT/content/files/en-us/web/api/batterymanager/levelchange_event/index.md
@@ -45,8 +45,9 @@ navigator.getBattery().then((battery) => {
         battery.chargingTime / 60
       }`;
     } else {
-      document.querySelector("#stateBattery").textContent =
-        `Discharging time: ${battery.dischargingTime / 60}`;
+      document.querySelector(
+        "#stateBattery",
+      ).textContent = `Discharging time: ${battery.dischargingTime / 60}`;
     }
   };
 });
diff --git ORI/content/files/en-us/web/api/keyboardevent/metakey/index.md ALT/content/files/en-us/web/api/keyboardevent/metakey/index.md
index 5ac693fd..6d3ca5fd 100644
--- ORI/content/files/en-us/web/api/keyboardevent/metakey/index.md
+++ ALT/content/files/en-us/web/api/keyboardevent/metakey/index.md
@@ -33,8 +33,9 @@ A boolean value.
 
 ```js
 function ismetaKey(e) {
-  document.querySelector("#output").textContent =
-    `metaKey pressed? ${e.metaKey}`;
+  document.querySelector(
+    "#output",
+  ).textContent = `metaKey pressed? ${e.metaKey}`;
 }
 ```
 
diff --git ORI/content/files/en-us/web/api/response/json/index.md ALT/content/files/en-us/web/api/response/json/index.md
index 44312c06..d610ce0e 100644
--- ORI/content/files/en-us/web/api/response/json/index.md
+++ ALT/content/files/en-us/web/api/response/json/index.md
@@ -49,8 +49,9 @@ fetch(myRequest)
       listItem.appendChild(document.createElement("strong")).textContent =
         product.Name;
       listItem.append(` can be found in ${product.Location}. Cost: `);
-      listItem.appendChild(document.createElement("strong")).textContent =
-        `£${product.Price}`;
+      listItem.appendChild(
+        document.createElement("strong"),
+      ).textContent = `£${product.Price}`;
       myList.appendChild(listItem);
     }
   })
diff --git ORI/content/files/en-us/web/api/rtcdatachannel/label/index.md ALT/content/files/en-us/web/api/rtcdatachannel/label/index.md
index 9dfe3a30..ac15fa0f 100644
--- ORI/content/files/en-us/web/api/rtcdatachannel/label/index.md
+++ ALT/content/files/en-us/web/api/rtcdatachannel/label/index.md
@@ -39,8 +39,9 @@ const dc = pc.createDataChannel("my channel");
 
 // …
 
-document.getElementById("channel-name").innerHTML =
-  `<span class='channelName'>${dc.label}</span>`;
+document.getElementById(
+  "channel-name",
+).innerHTML = `<span class='channelName'>${dc.label}</span>`;
 ```
 
 ## Specifications
diff --git ORI/content/files/en-us/web/api/webgl_api/by_example/hello_glsl/index.md ALT/content/files/en-us/web/api/webgl_api/by_example/hello_glsl/index.md
index 0c53c0ae..1f472756 100644
--- ORI/content/files/en-us/web/api/webgl_api/by_example/hello_glsl/index.md
+++ ALT/content/files/en-us/web/api/webgl_api/by_example/hello_glsl/index.md
@@ -97,8 +97,9 @@ function setupWebGL(evt) {
   if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
     const linkErrLog = gl.getProgramInfoLog(program);
     cleanup();
-    document.querySelector("p").textContent =
-      `Shader program did not link successfully. Error log: ${linkErrLog}`;
+    document.querySelector(
+      "p",
+    ).textContent = `Shader program did not link successfully. Error log: ${linkErrLog}`;
     return;
   }
 
diff --git ORI/content/files/en-us/web/api/webgl_api/by_example/hello_vertex_attributes/index.md ALT/content/files/en-us/web/api/webgl_api/by_example/hello_vertex_attributes/index.md
index b193e111..ad7acf56 100644
--- ORI/content/files/en-us/web/api/webgl_api/by_example/hello_vertex_attributes/index.md
+++ ALT/content/files/en-us/web/api/webgl_api/by_example/hello_vertex_attributes/index.md
@@ -102,8 +102,9 @@ function setupWebGL(evt) {
   if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
     const linkErrLog = gl.getProgramInfoLog(program);
     cleanup();
-    document.querySelector("p").textContent =
-      `Shader program did not link successfully. Error log: ${linkErrLog}`;
+    document.querySelector(
+      "p",
+    ).textContent = `Shader program did not link successfully. Error log: ${linkErrLog}`;
     return;
   }
 
diff --git ORI/content/files/en-us/web/api/webgl_api/by_example/textures_from_code/index.md ALT/content/files/en-us/web/api/webgl_api/by_example/textures_from_code/index.md
index 4fe34fe6..bbdbe999 100644
--- ORI/content/files/en-us/web/api/webgl_api/by_example/textures_from_code/index.md
+++ ALT/content/files/en-us/web/api/webgl_api/by_example/textures_from_code/index.md
@@ -108,8 +108,9 @@ function setupWebGL(evt) {
   if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
     const linkErrLog = gl.getProgramInfoLog(program);
     cleanup();
-    document.querySelector("p").textContent =
-      `Shader program did not link successfully. Error log: ${linkErrLog}`;
+    document.querySelector(
+      "p",
+    ).textContent = `Shader program did not link successfully. Error log: ${linkErrLog}`;
     return;
   }
   initializeAttributes();





@thorn0
Copy link
Member

thorn0 commented Dec 11, 2023

Run #15522

@fisker
Copy link
Sponsor Member Author

fisker commented Dec 15, 2023

Run #15806

Copy link
Contributor

github-actions bot commented Dec 15, 2023

prettier/prettier#15806 VS prettier/prettier@main

diff --git ORI/excalidraw/src/components/App.tsx ALT/excalidraw/src/components/App.tsx
index b5abc44..67e015a 100644
--- ORI/excalidraw/src/components/App.tsx
+++ ALT/excalidraw/src/components/App.tsx
@@ -3619,8 +3619,8 @@ class App extends React.Component<AppProps, AppState> {
           this.state.gridSize,
         );
 
-        const [lastCommittedX, lastCommittedY] =
-          multiElement?.lastCommittedPoint ?? [0, 0];
+        const [lastCommittedX, lastCommittedY] = multiElement
+          ?.lastCommittedPoint ?? [0, 0];
 
         let dxFromLastCommitted = gridX - rx - lastCommittedX;
         let dyFromLastCommitted = gridY - ry - lastCommittedY;
diff --git ORI/prettier/src/utils/infer-parser.js ALT/prettier/src/utils/infer-parser.js
index 2002360..090ca4a 100644
--- ORI/prettier/src/utils/infer-parser.js
+++ ALT/prettier/src/utils/infer-parser.js
@@ -44,8 +44,8 @@ function getLanguageByInterpreter(languages, file) {
     return;
   }
 
-  return languages.find(
-    (language) => language.interpreters?.includes(interpreter),
+  return languages.find((language) =>
+    language.interpreters?.includes(interpreter),
   );
 }
 
diff --git ORI/react-admin/packages/ra-data-localstorage/src/index.ts ALT/react-admin/packages/ra-data-localstorage/src/index.ts
index d2f9225..1a91949 100644
--- ORI/react-admin/packages/ra-data-localstorage/src/index.ts
+++ ALT/react-admin/packages/ra-data-localstorage/src/index.ts
@@ -151,8 +151,8 @@ export default (params?: LocalStorageDataProviderParams): DataProvider => {
         },
         deleteMany: (resource, params) => {
             updateLocalStorage(() => {
-                const indexes = params.ids.map(
-                    id => data[resource]?.findIndex(record => record.id == id)
+                const indexes = params.ids.map(id =>
+                    data[resource]?.findIndex(record => record.id == id)
                 );
                 pullAt(data[resource], indexes);
             });

@fisker
Copy link
Sponsor Member Author

fisker commented Dec 15, 2023

Run #15806

Copy link
Contributor

github-actions bot commented Dec 15, 2023

prettier/prettier#15806 VS prettier/prettier@main

Diff (52 lines)
diff --git ORI/excalidraw/src/tests/binding.test.tsx ALT/excalidraw/src/tests/binding.test.tsx
index 07af365..b23a549 100644
--- ORI/excalidraw/src/tests/binding.test.tsx
+++ ALT/excalidraw/src/tests/binding.test.tsx
@@ -36,8 +36,11 @@ describe("element binding", () => {
     expect(arrow.startBinding?.elementId).toBe(rectLeft.id);
     expect(arrow.endBinding?.elementId).toBe(rectRight.id);
 
-    const rotation = getTransformHandles(arrow, h.state.zoom, "mouse")
-      .rotation!;
+    const rotation = getTransformHandles(
+      arrow,
+      h.state.zoom,
+      "mouse",
+    ).rotation!;
     const rotationHandleX = rotation[0] + rotation[2] / 2;
     const rotationHandleY = rotation[1] + rotation[3] / 2;
     mouse.down(rotationHandleX, rotationHandleY);
diff --git ORI/prettier/src/utils/infer-parser.js ALT/prettier/src/utils/infer-parser.js
index 2002360..090ca4a 100644
--- ORI/prettier/src/utils/infer-parser.js
+++ ALT/prettier/src/utils/infer-parser.js
@@ -44,8 +44,8 @@ function getLanguageByInterpreter(languages, file) {
     return;
   }
 
-  return languages.find(
-    (language) => language.interpreters?.includes(interpreter),
+  return languages.find((language) =>
+    language.interpreters?.includes(interpreter),
   );
 }
 
diff --git ORI/react-admin/packages/ra-data-localstorage/src/index.ts ALT/react-admin/packages/ra-data-localstorage/src/index.ts
index d2f9225..1a91949 100644
--- ORI/react-admin/packages/ra-data-localstorage/src/index.ts
+++ ALT/react-admin/packages/ra-data-localstorage/src/index.ts
@@ -151,8 +151,8 @@ export default (params?: LocalStorageDataProviderParams): DataProvider => {
         },
         deleteMany: (resource, params) => {
             updateLocalStorage(() => {
-                const indexes = params.ids.map(
-                    id => data[resource]?.findIndex(record => record.id == id)
+                const indexes = params.ids.map(id =>
+                    data[resource]?.findIndex(record => record.id == id)
                 );
                 pullAt(data[resource], indexes);
             });

@fisker
Copy link
Sponsor Member Author

fisker commented Dec 15, 2023

Run #15806

Copy link
Contributor

github-actions bot commented Dec 15, 2023

prettier/prettier#15806 VS prettier/prettier@main

Diff (52 lines)
diff --git ORI/excalidraw/src/tests/binding.test.tsx ALT/excalidraw/src/tests/binding.test.tsx
index 07af365..b23a549 100644
--- ORI/excalidraw/src/tests/binding.test.tsx
+++ ALT/excalidraw/src/tests/binding.test.tsx
@@ -36,8 +36,11 @@ describe("element binding", () => {
     expect(arrow.startBinding?.elementId).toBe(rectLeft.id);
     expect(arrow.endBinding?.elementId).toBe(rectRight.id);
 
-    const rotation = getTransformHandles(arrow, h.state.zoom, "mouse")
-      .rotation!;
+    const rotation = getTransformHandles(
+      arrow,
+      h.state.zoom,
+      "mouse",
+    ).rotation!;
     const rotationHandleX = rotation[0] + rotation[2] / 2;
     const rotationHandleY = rotation[1] + rotation[3] / 2;
     mouse.down(rotationHandleX, rotationHandleY);
diff --git ORI/prettier/src/utils/infer-parser.js ALT/prettier/src/utils/infer-parser.js
index 2002360..090ca4a 100644
--- ORI/prettier/src/utils/infer-parser.js
+++ ALT/prettier/src/utils/infer-parser.js
@@ -44,8 +44,8 @@ function getLanguageByInterpreter(languages, file) {
     return;
   }
 
-  return languages.find(
-    (language) => language.interpreters?.includes(interpreter),
+  return languages.find((language) =>
+    language.interpreters?.includes(interpreter),
   );
 }
 
diff --git ORI/react-admin/packages/ra-data-localstorage/src/index.ts ALT/react-admin/packages/ra-data-localstorage/src/index.ts
index d2f9225..1a91949 100644
--- ORI/react-admin/packages/ra-data-localstorage/src/index.ts
+++ ALT/react-admin/packages/ra-data-localstorage/src/index.ts
@@ -151,8 +151,8 @@ export default (params?: LocalStorageDataProviderParams): DataProvider => {
         },
         deleteMany: (resource, params) => {
             updateLocalStorage(() => {
-                const indexes = params.ids.map(
-                    id => data[resource]?.findIndex(record => record.id == id)
+                const indexes = params.ids.map(id =>
+                    data[resource]?.findIndex(record => record.id == id)
                 );
                 pullAt(data[resource], indexes);
             });

@fisker
Copy link
Sponsor Member Author

fisker commented Dec 16, 2023

Run #15209

Copy link
Contributor

github-actions bot commented Dec 16, 2023

prettier/prettier#15209 VS prettier/prettier@main

Diff (178 lines)
diff --git ORI/content/files/en-us/learn/javascript/asynchronous/introducing_workers/index.md ALT/content/files/en-us/learn/javascript/asynchronous/introducing_workers/index.md
index d152c391..ba7c4182 100644
--- ORI/content/files/en-us/learn/javascript/asynchronous/introducing_workers/index.md
+++ ALT/content/files/en-us/learn/javascript/asynchronous/introducing_workers/index.md
@@ -74,8 +74,9 @@ function generatePrimes(quota) {
 document.querySelector("#generate").addEventListener("click", () => {
   const quota = document.querySelector("#quota").value;
   const primes = generatePrimes(quota);
-  document.querySelector("#output").textContent =
-    `Finished generating ${quota} primes!`;
+  document.querySelector(
+    "#output",
+  ).textContent = `Finished generating ${quota} primes!`;
 });
 
 document.querySelector("#reload").addEventListener("click", () => {
@@ -157,8 +158,9 @@ document.querySelector("#generate").addEventListener("click", () => {
 // update the output box with a message for the user, including the number of
 // primes that were generated, taken from the message data.
 worker.addEventListener("message", (message) => {
-  document.querySelector("#output").textContent =
-    `Finished generating ${message.data} primes!`;
+  document.querySelector(
+    "#output",
+  ).textContent = `Finished generating ${message.data} primes!`;
 });
 
 document.querySelector("#reload").addEventListener("click", () => {
diff --git ORI/content/files/en-us/web/api/batterymanager/chargingtime/index.md ALT/content/files/en-us/web/api/batterymanager/chargingtime/index.md
index 7be36c3f..61ce789f 100644
--- ORI/content/files/en-us/web/api/batterymanager/chargingtime/index.md
+++ ALT/content/files/en-us/web/api/batterymanager/chargingtime/index.md
@@ -34,8 +34,9 @@ A number.
 navigator.getBattery().then((battery) => {
   const time = battery.chargingTime;
 
-  document.querySelector("#chargingTime").textContent =
-    `Time to fully charge the battery: ${time}s`;
+  document.querySelector(
+    "#chargingTime",
+  ).textContent = `Time to fully charge the battery: ${time}s`;
 });
 ```
 
diff --git ORI/content/files/en-us/web/api/batterymanager/dischargingtime/index.md ALT/content/files/en-us/web/api/batterymanager/dischargingtime/index.md
index ae0883f0..011eacb5 100644
--- ORI/content/files/en-us/web/api/batterymanager/dischargingtime/index.md
+++ ALT/content/files/en-us/web/api/batterymanager/dischargingtime/index.md
@@ -36,8 +36,9 @@ A number.
 navigator.getBattery().then((battery) => {
   const time = battery.dischargingTime;
 
-  document.querySelector("#dischargingTime").textContent =
-    `Remaining time to fully discharge the battery: ${time}`;
+  document.querySelector(
+    "#dischargingTime",
+  ).textContent = `Remaining time to fully discharge the battery: ${time}`;
 });
 ```
 
diff --git ORI/content/files/en-us/web/api/batterymanager/levelchange_event/index.md ALT/content/files/en-us/web/api/batterymanager/levelchange_event/index.md
index 1ae9271c..c7b43a83 100644
--- ORI/content/files/en-us/web/api/batterymanager/levelchange_event/index.md
+++ ALT/content/files/en-us/web/api/batterymanager/levelchange_event/index.md
@@ -45,8 +45,9 @@ navigator.getBattery().then((battery) => {
         battery.chargingTime / 60
       }`;
     } else {
-      document.querySelector("#stateBattery").textContent =
-        `Discharging time: ${battery.dischargingTime / 60}`;
+      document.querySelector(
+        "#stateBattery",
+      ).textContent = `Discharging time: ${battery.dischargingTime / 60}`;
     }
   };
 });
diff --git ORI/content/files/en-us/web/api/keyboardevent/metakey/index.md ALT/content/files/en-us/web/api/keyboardevent/metakey/index.md
index 5ac693fd..6d3ca5fd 100644
--- ORI/content/files/en-us/web/api/keyboardevent/metakey/index.md
+++ ALT/content/files/en-us/web/api/keyboardevent/metakey/index.md
@@ -33,8 +33,9 @@ A boolean value.
 
 ```js
 function ismetaKey(e) {
-  document.querySelector("#output").textContent =
-    `metaKey pressed? ${e.metaKey}`;
+  document.querySelector(
+    "#output",
+  ).textContent = `metaKey pressed? ${e.metaKey}`;
 }
 ```
 
diff --git ORI/content/files/en-us/web/api/response/json/index.md ALT/content/files/en-us/web/api/response/json/index.md
index 44312c06..d610ce0e 100644
--- ORI/content/files/en-us/web/api/response/json/index.md
+++ ALT/content/files/en-us/web/api/response/json/index.md
@@ -49,8 +49,9 @@ fetch(myRequest)
       listItem.appendChild(document.createElement("strong")).textContent =
         product.Name;
       listItem.append(` can be found in ${product.Location}. Cost: `);
-      listItem.appendChild(document.createElement("strong")).textContent =
-        `£${product.Price}`;
+      listItem.appendChild(
+        document.createElement("strong"),
+      ).textContent = `£${product.Price}`;
       myList.appendChild(listItem);
     }
   })
diff --git ORI/content/files/en-us/web/api/rtcdatachannel/label/index.md ALT/content/files/en-us/web/api/rtcdatachannel/label/index.md
index 9dfe3a30..ac15fa0f 100644
--- ORI/content/files/en-us/web/api/rtcdatachannel/label/index.md
+++ ALT/content/files/en-us/web/api/rtcdatachannel/label/index.md
@@ -39,8 +39,9 @@ const dc = pc.createDataChannel("my channel");
 
 // …
 
-document.getElementById("channel-name").innerHTML =
-  `<span class='channelName'>${dc.label}</span>`;
+document.getElementById(
+  "channel-name",
+).innerHTML = `<span class='channelName'>${dc.label}</span>`;
 ```
 
 ## Specifications
diff --git ORI/content/files/en-us/web/api/webgl_api/by_example/hello_glsl/index.md ALT/content/files/en-us/web/api/webgl_api/by_example/hello_glsl/index.md
index 0c53c0ae..1f472756 100644
--- ORI/content/files/en-us/web/api/webgl_api/by_example/hello_glsl/index.md
+++ ALT/content/files/en-us/web/api/webgl_api/by_example/hello_glsl/index.md
@@ -97,8 +97,9 @@ function setupWebGL(evt) {
   if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
     const linkErrLog = gl.getProgramInfoLog(program);
     cleanup();
-    document.querySelector("p").textContent =
-      `Shader program did not link successfully. Error log: ${linkErrLog}`;
+    document.querySelector(
+      "p",
+    ).textContent = `Shader program did not link successfully. Error log: ${linkErrLog}`;
     return;
   }
 
diff --git ORI/content/files/en-us/web/api/webgl_api/by_example/hello_vertex_attributes/index.md ALT/content/files/en-us/web/api/webgl_api/by_example/hello_vertex_attributes/index.md
index b193e111..ad7acf56 100644
--- ORI/content/files/en-us/web/api/webgl_api/by_example/hello_vertex_attributes/index.md
+++ ALT/content/files/en-us/web/api/webgl_api/by_example/hello_vertex_attributes/index.md
@@ -102,8 +102,9 @@ function setupWebGL(evt) {
   if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
     const linkErrLog = gl.getProgramInfoLog(program);
     cleanup();
-    document.querySelector("p").textContent =
-      `Shader program did not link successfully. Error log: ${linkErrLog}`;
+    document.querySelector(
+      "p",
+    ).textContent = `Shader program did not link successfully. Error log: ${linkErrLog}`;
     return;
   }
 
diff --git ORI/content/files/en-us/web/api/webgl_api/by_example/textures_from_code/index.md ALT/content/files/en-us/web/api/webgl_api/by_example/textures_from_code/index.md
index 4fe34fe6..bbdbe999 100644
--- ORI/content/files/en-us/web/api/webgl_api/by_example/textures_from_code/index.md
+++ ALT/content/files/en-us/web/api/webgl_api/by_example/textures_from_code/index.md
@@ -108,8 +108,9 @@ function setupWebGL(evt) {
   if (!gl.getProgramParameter(program, gl.LINK_STATUS)) {
     const linkErrLog = gl.getProgramInfoLog(program);
     cleanup();
-    document.querySelector("p").textContent =
-      `Shader program did not link successfully. Error log: ${linkErrLog}`;
+    document.querySelector(
+      "p",
+    ).textContent = `Shader program did not link successfully. Error log: ${linkErrLog}`;
     return;
   }
   initializeAttributes();





@fisker
Copy link
Sponsor Member Author

fisker commented Dec 16, 2023

Run #15209

@fisker
Copy link
Sponsor Member Author

fisker commented Dec 17, 2023

Run #15811

Copy link
Contributor

github-actions bot commented Dec 17, 2023

prettier/prettier#15811 VS prettier/prettier@main

Diff (141 lines)
diff --git ORI/babel/packages/babel-parser/src/parse-error/pipeline-operator-errors.ts ALT/babel/packages/babel-parser/src/parse-error/pipeline-operator-errors.ts
index b7f21ad0..fa9e4fcf 100644
--- ORI/babel/packages/babel-parser/src/parse-error/pipeline-operator-errors.ts
+++ ALT/babel/packages/babel-parser/src/parse-error/pipeline-operator-errors.ts
@@ -7,9 +7,8 @@ export const UnparenthesizedPipeBodyDescriptions = new Set([
   "YieldExpression",
 ] as const);
 
-type GetSetMemberType<T extends Set<any>> = T extends Set<infer M>
-  ? M
-  : unknown;
+type GetSetMemberType<T extends Set<any>> =
+  T extends Set<infer M> ? M : unknown;
 
 type UnparenthesizedPipeBodyTypes = GetSetMemberType<
   typeof UnparenthesizedPipeBodyDescriptions
diff --git ORI/babel/packages/babel-traverse/src/path/family.ts ALT/babel/packages/babel-traverse/src/path/family.ts
index 0c6f2ab6..be6f6b2f 100644
--- ORI/babel/packages/babel-traverse/src/path/family.ts
+++ ALT/babel/packages/babel-traverse/src/path/family.ts
@@ -335,9 +335,10 @@ type MaybeToIndex<T extends string> = T extends `${bigint}` ? number : T;
 type Pattern<Obj extends string, Prop extends string> = `${Obj}.${Prop}`;
 
 // split "body.body.1" to ["body", "body", 1]
-type Split<P extends string> = P extends Pattern<infer O, infer U>
-  ? [MaybeToIndex<O>, ...Split<U>]
-  : [MaybeToIndex<P>];
+type Split<P extends string> =
+  P extends Pattern<infer O, infer U>
+    ? [MaybeToIndex<O>, ...Split<U>]
+    : [MaybeToIndex<P>];
 
 // get all K with Node[K] is t.Node | t.Node[]
 type NodeKeyOf<Node extends t.Node | t.Node[]> = keyof Pick<
@@ -361,11 +362,12 @@ type Trav<
     : never
   : never;
 
-type ToNodePath<T> = T extends Array<t.Node | null | undefined>
-  ? Array<NodePath<T[number]>>
-  : T extends t.Node | null | undefined
-    ? NodePath<T>
-    : never;
+type ToNodePath<T> =
+  T extends Array<t.Node | null | undefined>
+    ? Array<NodePath<T[number]>>
+    : T extends t.Node | null | undefined
+      ? NodePath<T>
+      : never;
 
 function get<T extends t.Node, K extends keyof T>(
   this: NodePath<T>,


diff --git ORI/excalidraw/src/utility-types.ts ALT/excalidraw/src/utility-types.ts
index b84eb19..e24f11c 100644
--- ORI/excalidraw/src/utility-types.ts
+++ ALT/excalidraw/src/utility-types.ts
@@ -44,6 +44,5 @@ export type ForwardRef<T, P = any> = Parameters<
   CallableType<React.ForwardRefRenderFunction<T, P>>
 >[1];
 
-export type ExtractSetType<T extends Set<any>> = T extends Set<infer U>
-  ? U
-  : never;
+export type ExtractSetType<T extends Set<any>> =
+  T extends Set<infer U> ? U : never;
diff --git ORI/prettier/src/cli/format.js ALT/prettier/src/cli/format.js
index 694a62c..fe1c05d 100644
--- ORI/prettier/src/cli/format.js
+++ ALT/prettier/src/cli/format.js
@@ -221,7 +221,11 @@ async function format(context, input, opt) {
     context.logger.debug(
       `'${
         performanceTestFlag.name
-      }' measurements for formatWithCursor: ${JSON.stringify(results, null, 2)}`,
+      }' measurements for formatWithCursor: ${JSON.stringify(
+        results,
+        null,
+        2,
+      )}`,
     );
   }
 
diff --git ORI/prettier/src/index.d.ts ALT/prettier/src/index.d.ts
index 628825d..255d2e3 100644
--- ORI/prettier/src/index.d.ts
+++ ALT/prettier/src/index.d.ts
@@ -39,9 +39,8 @@ type ArrayProperties<T> = {
 // A union of the properties of the given array T that can be used to index it.
 // If the array is a tuple, then that's going to be the explicit indices of the
 // array, otherwise it's going to just be number.
-type IndexProperties<T extends { length: number }> = IsTuple<T> extends true
-  ? Exclude<Partial<T>["length"], T["length"]>
-  : number;
+type IndexProperties<T extends { length: number }> =
+  IsTuple<T> extends true ? Exclude<Partial<T>["length"], T["length"]> : number;
 
 // Effectively performing T[P], except that it's telling TypeScript that it's
 // safe to do this for tuples, arrays, or objects.

diff --git ORI/typescript-eslint/packages/utils/src/eslint-utils/InferTypesFromRule.ts ALT/typescript-eslint/packages/utils/src/eslint-utils/InferTypesFromRule.ts
index 4aca4b0..215a869 100644
--- ORI/typescript-eslint/packages/utils/src/eslint-utils/InferTypesFromRule.ts
+++ ALT/typescript-eslint/packages/utils/src/eslint-utils/InferTypesFromRule.ts
@@ -3,25 +3,21 @@ import type { RuleCreateFunction, RuleModule } from '../ts-eslint';
 /**
  * Uses type inference to fetch the TOptions type from the given RuleModule
  */
-type InferOptionsTypeFromRule<T> = T extends RuleModule<
-  infer _TMessageIds,
-  infer TOptions
->
-  ? TOptions
-  : T extends RuleCreateFunction<infer _TMessageIds, infer TOptions>
+type InferOptionsTypeFromRule<T> =
+  T extends RuleModule<infer _TMessageIds, infer TOptions>
     ? TOptions
-    : unknown;
+    : T extends RuleCreateFunction<infer _TMessageIds, infer TOptions>
+      ? TOptions
+      : unknown;
 
 /**
  * Uses type inference to fetch the TMessageIds type from the given RuleModule
  */
-type InferMessageIdsTypeFromRule<T> = T extends RuleModule<
-  infer TMessageIds,
-  infer _TOptions
->
-  ? TMessageIds
-  : T extends RuleCreateFunction<infer TMessageIds, infer _TOptions>
+type InferMessageIdsTypeFromRule<T> =
+  T extends RuleModule<infer TMessageIds, infer _TOptions>
     ? TMessageIds
-    : unknown;
+    : T extends RuleCreateFunction<infer TMessageIds, infer _TOptions>
+      ? TMessageIds
+      : unknown;
 
 export { InferOptionsTypeFromRule, InferMessageIdsTypeFromRule };

@fisker
Copy link
Sponsor Member Author

fisker commented Dec 18, 2023

Run #15811

Copy link
Contributor

github-actions bot commented Dec 18, 2023

prettier/prettier#15811 VS prettier/prettier@main

Diff (124 lines)
diff --git ORI/babel/packages/babel-parser/src/parse-error/pipeline-operator-errors.ts ALT/babel/packages/babel-parser/src/parse-error/pipeline-operator-errors.ts
index b7f21ad0..fa9e4fcf 100644
--- ORI/babel/packages/babel-parser/src/parse-error/pipeline-operator-errors.ts
+++ ALT/babel/packages/babel-parser/src/parse-error/pipeline-operator-errors.ts
@@ -7,9 +7,8 @@ export const UnparenthesizedPipeBodyDescriptions = new Set([
   "YieldExpression",
 ] as const);
 
-type GetSetMemberType<T extends Set<any>> = T extends Set<infer M>
-  ? M
-  : unknown;
+type GetSetMemberType<T extends Set<any>> =
+  T extends Set<infer M> ? M : unknown;
 
 type UnparenthesizedPipeBodyTypes = GetSetMemberType<
   typeof UnparenthesizedPipeBodyDescriptions
diff --git ORI/babel/packages/babel-traverse/src/path/family.ts ALT/babel/packages/babel-traverse/src/path/family.ts
index 0c6f2ab6..be6f6b2f 100644
--- ORI/babel/packages/babel-traverse/src/path/family.ts
+++ ALT/babel/packages/babel-traverse/src/path/family.ts
@@ -335,9 +335,10 @@ type MaybeToIndex<T extends string> = T extends `${bigint}` ? number : T;
 type Pattern<Obj extends string, Prop extends string> = `${Obj}.${Prop}`;
 
 // split "body.body.1" to ["body", "body", 1]
-type Split<P extends string> = P extends Pattern<infer O, infer U>
-  ? [MaybeToIndex<O>, ...Split<U>]
-  : [MaybeToIndex<P>];
+type Split<P extends string> =
+  P extends Pattern<infer O, infer U>
+    ? [MaybeToIndex<O>, ...Split<U>]
+    : [MaybeToIndex<P>];
 
 // get all K with Node[K] is t.Node | t.Node[]
 type NodeKeyOf<Node extends t.Node | t.Node[]> = keyof Pick<
@@ -361,11 +362,12 @@ type Trav<
     : never
   : never;
 
-type ToNodePath<T> = T extends Array<t.Node | null | undefined>
-  ? Array<NodePath<T[number]>>
-  : T extends t.Node | null | undefined
-    ? NodePath<T>
-    : never;
+type ToNodePath<T> =
+  T extends Array<t.Node | null | undefined>
+    ? Array<NodePath<T[number]>>
+    : T extends t.Node | null | undefined
+      ? NodePath<T>
+      : never;
 
 function get<T extends t.Node, K extends keyof T>(
   this: NodePath<T>,


diff --git ORI/excalidraw/src/utility-types.ts ALT/excalidraw/src/utility-types.ts
index b84eb19..e24f11c 100644
--- ORI/excalidraw/src/utility-types.ts
+++ ALT/excalidraw/src/utility-types.ts
@@ -44,6 +44,5 @@ export type ForwardRef<T, P = any> = Parameters<
   CallableType<React.ForwardRefRenderFunction<T, P>>
 >[1];
 
-export type ExtractSetType<T extends Set<any>> = T extends Set<infer U>
-  ? U
-  : never;
+export type ExtractSetType<T extends Set<any>> =
+  T extends Set<infer U> ? U : never;
diff --git ORI/prettier/src/index.d.ts ALT/prettier/src/index.d.ts
index 628825d..255d2e3 100644
--- ORI/prettier/src/index.d.ts
+++ ALT/prettier/src/index.d.ts
@@ -39,9 +39,8 @@ type ArrayProperties<T> = {
 // A union of the properties of the given array T that can be used to index it.
 // If the array is a tuple, then that's going to be the explicit indices of the
 // array, otherwise it's going to just be number.
-type IndexProperties<T extends { length: number }> = IsTuple<T> extends true
-  ? Exclude<Partial<T>["length"], T["length"]>
-  : number;
+type IndexProperties<T extends { length: number }> =
+  IsTuple<T> extends true ? Exclude<Partial<T>["length"], T["length"]> : number;
 
 // Effectively performing T[P], except that it's telling TypeScript that it's
 // safe to do this for tuples, arrays, or objects.

diff --git ORI/typescript-eslint/packages/utils/src/eslint-utils/InferTypesFromRule.ts ALT/typescript-eslint/packages/utils/src/eslint-utils/InferTypesFromRule.ts
index 4aca4b0..215a869 100644
--- ORI/typescript-eslint/packages/utils/src/eslint-utils/InferTypesFromRule.ts
+++ ALT/typescript-eslint/packages/utils/src/eslint-utils/InferTypesFromRule.ts
@@ -3,25 +3,21 @@ import type { RuleCreateFunction, RuleModule } from '../ts-eslint';
 /**
  * Uses type inference to fetch the TOptions type from the given RuleModule
  */
-type InferOptionsTypeFromRule<T> = T extends RuleModule<
-  infer _TMessageIds,
-  infer TOptions
->
-  ? TOptions
-  : T extends RuleCreateFunction<infer _TMessageIds, infer TOptions>
+type InferOptionsTypeFromRule<T> =
+  T extends RuleModule<infer _TMessageIds, infer TOptions>
     ? TOptions
-    : unknown;
+    : T extends RuleCreateFunction<infer _TMessageIds, infer TOptions>
+      ? TOptions
+      : unknown;
 
 /**
  * Uses type inference to fetch the TMessageIds type from the given RuleModule
  */
-type InferMessageIdsTypeFromRule<T> = T extends RuleModule<
-  infer TMessageIds,
-  infer _TOptions
->
-  ? TMessageIds
-  : T extends RuleCreateFunction<infer TMessageIds, infer _TOptions>
+type InferMessageIdsTypeFromRule<T> =
+  T extends RuleModule<infer TMessageIds, infer _TOptions>
     ? TMessageIds
-    : unknown;
+    : T extends RuleCreateFunction<infer TMessageIds, infer _TOptions>
+      ? TMessageIds
+      : unknown;
 
 export { InferOptionsTypeFromRule, InferMessageIdsTypeFromRule };

@fisker
Copy link
Sponsor Member Author

fisker commented Mar 20, 2024

Run #16158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants