Comments (4)
run 2.3.2
from prettier-regression-testing.
prettier/[email protected] VS prettier/prettier@main
- babel/babel@2ae19d0
- vuejs/eslint-plugin-vue@62f577d
- excalidraw/excalidraw@25fd275
- prettier/prettier@5f8bad8
- marmelab/react-admin@43c4faf
- typescript-eslint/typescript-eslint@d0d7186
- vega/vega-lite@2dff36f
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.
run 2.3.2
from prettier-regression-testing.
prettier/[email protected] VS prettier/prettier@main
- babel/babel@2ae19d0
- vuejs/eslint-plugin-vue@62f577d
- excalidraw/excalidraw@25fd275
- prettier/prettier@5f8bad8
- marmelab/react-admin@43c4faf
- typescript-eslint/typescript-eslint@d0d7186
- vega/vega-lite@2dff36f
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)
- v3 HOT 23
- for 12349 HOT 5
- For #12359 and #12362 HOT 8
- Regression testing for 2.6 HOT 3
- For 12563 HOT 6
- 2.7 HOT 2
- compact multiline imports HOT 8
- for 13532 (Fix unstable embedded template literals) HOT 4
- misc tests HOT 38
- for 11103 (Break multiline parenthesized logical expression) HOT 8
- for 13621 (Fix template literal indention) HOT 4
- for 13735 (Print `ChainExpression`) HOT 8
- v2.8.0 HOT 5
- 2.8.1 HOT 2
- Misc tests HOT 52
- v3 HOT 23
- 15447 HOT 26
- 3.1 HOT 34
- 3.2 HOT 2
- 15909 & 15993 HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prettier-regression-testing.