Code Monkey home page Code Monkey logo

Comments (4)

sosukesuzuki avatar sosukesuzuki commented on May 21, 2024

run 2.3.2

from prettier-regression-testing.

github-actions avatar github-actions commented on May 21, 2024

prettier/[email protected] VS prettier/prettier@main

Diff (99 lines)
diff --git ORI/excalidraw/src/appState.ts ALT/excalidraw/src/appState.ts
index aa0351e..73ccf68 100644
--- ORI/excalidraw/src/appState.ts
+++ ALT/excalidraw/src/appState.ts
@@ -89,8 +89,9 @@ const APP_STATE_STORAGE_CONF = (<
     export: boolean;
   },
   T extends Record<keyof AppState, Values>,
->(config: { [K in keyof T]: K extends keyof AppState ? T[K] : never }) =>
-  config)({
+>(
+  config: { [K in keyof T]: K extends keyof AppState ? T[K] : never },
+) => config)({
   theme: { browser: true, export: false },
   collaborators: { browser: false, export: false },
   currentChartType: { browser: true, export: false },
diff --git ORI/excalidraw/src/element/transformHandles.ts ALT/excalidraw/src/element/transformHandles.ts
index 55d40ed..1a8b546 100644
--- ORI/excalidraw/src/element/transformHandles.ts
+++ ALT/excalidraw/src/element/transformHandles.ts
@@ -17,9 +17,11 @@ export type TransformHandleDirection =
 export type TransformHandleType = TransformHandleDirection | "rotation";
 
 export type TransformHandle = [number, number, number, number];
-export type TransformHandles = Partial<{
-  [T in TransformHandleType]: TransformHandle;
-}>;
+export type TransformHandles = Partial<
+  {
+    [T in TransformHandleType]: TransformHandle;
+  }
+>;
 export type MaybeTransformHandleType = TransformHandleType | false;
 
 const transformHandleSizes: { [k in PointerType]: number } = {


diff --git ORI/typescript-eslint/packages/eslint-plugin/docs/rules/no-type-alias.md ALT/typescript-eslint/packages/eslint-plugin/docs/rules/no-type-alias.md
index cac4785..45db986 100644
--- ORI/typescript-eslint/packages/eslint-plugin/docs/rules/no-type-alias.md
+++ ALT/typescript-eslint/packages/eslint-plugin/docs/rules/no-type-alias.md
@@ -405,9 +405,10 @@ type Foo<T, U> =
 
 type Foo<T, U> = { [P in keyof T]?: T[P] } | { [P in keyof U]?: U[P] };
 
-type Foo<T, U> = { readonly [P in keyof T]: T[P] } & {
-  readonly [P in keyof U]: U[P];
-};
+type Foo<T, U> = { readonly [P in keyof T]: T[P] } &
+  {
+    readonly [P in keyof U]: U[P];
+  };
 
 type Foo<T, U> = { [P in keyof T]?: T[P] } & { [P in keyof U]?: U[P] };
 ```
@@ -419,9 +420,10 @@ type Foo<T> = { readonly [P in keyof T]: T[P] };
 
 type Foo<T> = { [P in keyof T]?: T[P] };
 
-type Foo<T, U> = { readonly [P in keyof T]: T[P] } & {
-  readonly [P in keyof U]: U[P];
-};
+type Foo<T, U> = { readonly [P in keyof T]: T[P] } &
+  {
+    readonly [P in keyof U]: U[P];
+  };
 
 type Foo<T, U> = { [P in keyof T]?: T[P] } & { [P in keyof U]?: U[P] };
 ```
@@ -453,9 +455,10 @@ type Foo<T, U> = { [P in keyof T]?: T[P] } | { [P in keyof U]?: U[P] };
 Examples of **correct** code for the `{ "allowMappedTypes": "in-intersections" }` option:
 
 ```ts
-type Foo<T, U> = { readonly [P in keyof T]: T[P] } & {
-  readonly [P in keyof U]: U[P];
-};
+type Foo<T, U> = { readonly [P in keyof T]: T[P] } &
+  {
+    readonly [P in keyof U]: U[P];
+  };
 
 type Foo<T, U> = { [P in keyof T]?: T[P] } & { [P in keyof U]?: U[P] };
 ```
@@ -477,9 +480,10 @@ type Foo<T, U> =
 
 type Foo<T, U> = { [P in keyof T]?: T[P] } | { [P in keyof U]?: U[P] };
 
-type Foo<T, U> = { readonly [P in keyof T]: T[P] } & {
-  readonly [P in keyof U]: U[P];
-};
+type Foo<T, U> = { readonly [P in keyof T]: T[P] } &
+  {
+    readonly [P in keyof U]: U[P];
+  };
 
 type Foo<T, U> = { [P in keyof T]?: T[P] } & { [P in keyof U]?: U[P] };
 ```

from prettier-regression-testing.

sosukesuzuki avatar sosukesuzuki commented on May 21, 2024

run 2.3.2

from prettier-regression-testing.

github-actions avatar github-actions commented on May 21, 2024

prettier/[email protected] VS prettier/prettier@main

Diff (99 lines)
diff --git ORI/excalidraw/src/appState.ts ALT/excalidraw/src/appState.ts
index aa0351e..73ccf68 100644
--- ORI/excalidraw/src/appState.ts
+++ ALT/excalidraw/src/appState.ts
@@ -89,8 +89,9 @@ const APP_STATE_STORAGE_CONF = (<
     export: boolean;
   },
   T extends Record<keyof AppState, Values>,
->(config: { [K in keyof T]: K extends keyof AppState ? T[K] : never }) =>
-  config)({
+>(
+  config: { [K in keyof T]: K extends keyof AppState ? T[K] : never },
+) => config)({
   theme: { browser: true, export: false },
   collaborators: { browser: false, export: false },
   currentChartType: { browser: true, export: false },
diff --git ORI/excalidraw/src/element/transformHandles.ts ALT/excalidraw/src/element/transformHandles.ts
index 55d40ed..1a8b546 100644
--- ORI/excalidraw/src/element/transformHandles.ts
+++ ALT/excalidraw/src/element/transformHandles.ts
@@ -17,9 +17,11 @@ export type TransformHandleDirection =
 export type TransformHandleType = TransformHandleDirection | "rotation";
 
 export type TransformHandle = [number, number, number, number];
-export type TransformHandles = Partial<{
-  [T in TransformHandleType]: TransformHandle;
-}>;
+export type TransformHandles = Partial<
+  {
+    [T in TransformHandleType]: TransformHandle;
+  }
+>;
 export type MaybeTransformHandleType = TransformHandleType | false;
 
 const transformHandleSizes: { [k in PointerType]: number } = {


diff --git ORI/typescript-eslint/packages/eslint-plugin/docs/rules/no-type-alias.md ALT/typescript-eslint/packages/eslint-plugin/docs/rules/no-type-alias.md
index cac4785..45db986 100644
--- ORI/typescript-eslint/packages/eslint-plugin/docs/rules/no-type-alias.md
+++ ALT/typescript-eslint/packages/eslint-plugin/docs/rules/no-type-alias.md
@@ -405,9 +405,10 @@ type Foo<T, U> =
 
 type Foo<T, U> = { [P in keyof T]?: T[P] } | { [P in keyof U]?: U[P] };
 
-type Foo<T, U> = { readonly [P in keyof T]: T[P] } & {
-  readonly [P in keyof U]: U[P];
-};
+type Foo<T, U> = { readonly [P in keyof T]: T[P] } &
+  {
+    readonly [P in keyof U]: U[P];
+  };
 
 type Foo<T, U> = { [P in keyof T]?: T[P] } & { [P in keyof U]?: U[P] };
 ```
@@ -419,9 +420,10 @@ type Foo<T> = { readonly [P in keyof T]: T[P] };
 
 type Foo<T> = { [P in keyof T]?: T[P] };
 
-type Foo<T, U> = { readonly [P in keyof T]: T[P] } & {
-  readonly [P in keyof U]: U[P];
-};
+type Foo<T, U> = { readonly [P in keyof T]: T[P] } &
+  {
+    readonly [P in keyof U]: U[P];
+  };
 
 type Foo<T, U> = { [P in keyof T]?: T[P] } & { [P in keyof U]?: U[P] };
 ```
@@ -453,9 +455,10 @@ type Foo<T, U> = { [P in keyof T]?: T[P] } | { [P in keyof U]?: U[P] };
 Examples of **correct** code for the `{ "allowMappedTypes": "in-intersections" }` option:
 
 ```ts
-type Foo<T, U> = { readonly [P in keyof T]: T[P] } & {
-  readonly [P in keyof U]: U[P];
-};
+type Foo<T, U> = { readonly [P in keyof T]: T[P] } &
+  {
+    readonly [P in keyof U]: U[P];
+  };
 
 type Foo<T, U> = { [P in keyof T]?: T[P] } & { [P in keyof U]?: U[P] };
 ```
@@ -477,9 +480,10 @@ type Foo<T, U> =
 
 type Foo<T, U> = { [P in keyof T]?: T[P] } | { [P in keyof U]?: U[P] };
 
-type Foo<T, U> = { readonly [P in keyof T]: T[P] } & {
-  readonly [P in keyof U]: U[P];
-};
+type Foo<T, U> = { readonly [P in keyof T]: T[P] } &
+  {
+    readonly [P in keyof U]: U[P];
+  };
 
 type Foo<T, U> = { [P in keyof T]?: T[P] } & { [P in keyof U]?: U[P] };
 ```

from prettier-regression-testing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.