Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
Format editor, website and npm files
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Aug 17, 2022
1 parent 4aaddd8 commit 6293638
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions editors/vscode/src/commands/syntaxTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ export function syntaxTree(session: Session): Command {
return async () => {
const document = await workspace.openTextDocument(provider.uri);
provider.eventEmitter.fire(provider.uri);
void await window.showTextDocument(document, {
void (await window.showTextDocument(document, {
viewColumn: ViewColumn.Two,
preserveFocus: true,
});
}));
};
}
18 changes: 9 additions & 9 deletions website/playground/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ export function usePlaygroundState(
searchParams.get("lineWidth") ?? defaultRomeConfig.lineWidth,
),
indentStyle:
(
searchParams.get("indentStyle") as IndentStyle
) ?? defaultRomeConfig.indentStyle,
(searchParams.get(
"indentStyle",
) as IndentStyle) ?? defaultRomeConfig.indentStyle,
quoteStyle:
(
searchParams.get("quoteStyle") as QuoteStyle
) ?? defaultRomeConfig.quoteStyle,
(searchParams.get(
"quoteStyle",
) as QuoteStyle) ?? defaultRomeConfig.quoteStyle,
indentWidth: parseInt(
searchParams.get("indentWidth") ?? defaultRomeConfig.indentWidth,
),
Expand All @@ -74,9 +74,9 @@ export function usePlaygroundState(
) === "true" || defaultRomeConfig.isTypeScript,
isJsx: searchParams.get("jsx") === "true" || defaultRomeConfig.isJsx,
sourceType:
(
searchParams.get("sourceType") as SourceType
) ?? defaultRomeConfig.sourceType,
(searchParams.get(
"sourceType",
) as SourceType) ?? defaultRomeConfig.sourceType,
cursorPosition: 0,
});
const [playgroundState, setPlaygroundState] = useState(initState());
Expand Down

0 comments on commit 6293638

Please sign in to comment.