prettier / prettier-regression-testing

Automates the prettier/prettier regression checks with GitHub Actions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

for 13621 (Fix template literal indention)

fisker opened this issue · comments

run #13621 vs prettier/prettier#next

run #13626 vs prettier/prettier#next

prettier/prettier#13626 VS prettier/prettier@next

Diff (64 lines)
diff --git ORI/babel/packages/babel-types/scripts/generators/ast-types.js ALT/babel/packages/babel-types/scripts/generators/ast-types.js
index 3bf42869..3703b472 100644
--- ORI/babel/packages/babel-types/scripts/generators/ast-types.js
+++ ALT/babel/packages/babel-types/scripts/generators/ast-types.js
@@ -50,8 +50,8 @@ interface BaseNode {
 export type CommentTypeShorthand = "leading" | "inner" | "trailing";
 
 export type Node = ${t.TYPES.filter(k => !t.FLIPPED_ALIAS_KEYS[k])
-    .sort()
-    .join(" | ")};\n\n`;
+  .sort()
+  .join(" | ")};\n\n`;
 
   const deprecatedAlias = {};
   for (const type in t.DEPRECATED_KEYS) {



diff --git ORI/react-admin/packages/ra-ui-materialui/src/detail/EditGuesser.tsx ALT/react-admin/packages/ra-ui-materialui/src/detail/EditGuesser.tsx
index 940ac21..5483c9e 100644
--- ORI/react-admin/packages/ra-ui-materialui/src/detail/EditGuesser.tsx
+++ ALT/react-admin/packages/ra-ui-materialui/src/detail/EditGuesser.tsx
@@ -35,8 +35,8 @@ const EditViewGuesser = props => {
                     `Guessed Edit:
 
 export const ${inflection.capitalize(
-                        inflection.singularize(resource)
-                    )}Edit = props => (
+    inflection.singularize(resource)
+)}Edit = props => (
     <Edit {...props}>
 ${inferredChild.getRepresentation()}
     </Edit>
diff --git ORI/react-admin/packages/ra-ui-materialui/src/detail/ShowGuesser.tsx ALT/react-admin/packages/ra-ui-materialui/src/detail/ShowGuesser.tsx
index 4637e65..10f4b00 100644
--- ORI/react-admin/packages/ra-ui-materialui/src/detail/ShowGuesser.tsx
+++ ALT/react-admin/packages/ra-ui-materialui/src/detail/ShowGuesser.tsx
@@ -35,8 +35,8 @@ const ShowViewGuesser = props => {
                     `Guessed Show:
 
 export const ${inflection.capitalize(
-                        inflection.singularize(resource)
-                    )}Show = props => (
+    inflection.singularize(resource)
+)}Show = props => (
     <Show {...props}>
 ${inferredChild.getRepresentation()}
     </Show>
diff --git ORI/react-admin/packages/ra-ui-materialui/src/list/ListGuesser.tsx ALT/react-admin/packages/ra-ui-materialui/src/list/ListGuesser.tsx
index fd60b3b..a37ba86 100644
--- ORI/react-admin/packages/ra-ui-materialui/src/list/ListGuesser.tsx
+++ ALT/react-admin/packages/ra-ui-materialui/src/list/ListGuesser.tsx
@@ -64,8 +64,8 @@ const ListViewGuesser = (props: Omit<ListViewProps, 'children'>) => {
                     `Guessed List:
 
 export const ${inflection.capitalize(
-                        inflection.singularize(resource)
-                    )}List = props => (
+    inflection.singularize(resource)
+)}List = props => (
     <List {...props}>
 ${inferredChild.getRepresentation()}
     </List>