Skip to content

Commit

Permalink
fix: upgrade to prettier 3.0, formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron committed Aug 4, 2023
1 parent 83c899e commit 5b06fbf
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 16 deletions.
3 changes: 1 addition & 2 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"importOrder": ["^[./]"],
"importOrderSeparation": true
"trailingComma": "es5"
}
2 changes: 1 addition & 1 deletion src/app/components/PasswordForm/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const initialErrors: Record<string, errorMessage> = {
};

export default function PasswordForm<
T extends PasswordFormData = PasswordFormData
T extends PasswordFormData = PasswordFormData,
>({
formData,
setFormData,
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/Tips/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function Tips() {
backgroundIcon: <MnemonicTipCardIcon />,
link: `/accounts/${accountId}/secret-key/generate`,
},
} as const),
}) as const,
[accountId]
);

Expand Down
5 changes: 2 additions & 3 deletions src/app/screens/Keysend/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,8 @@ function Keysend() {
onChange={(e) => setAmountSat(e.target.value)}
value={amountSat}
fiatValue={fiatAmount}
hint={`${tCommon("balance")}: ${
auth?.balancesDecorated?.accountBalance
}`}
hint={`${tCommon("balance")}: ${auth?.balancesDecorated
?.accountBalance}`}
amountExceeded={amountExceeded}
rangeExceeded={rangeExceeded}
/>
Expand Down
5 changes: 2 additions & 3 deletions src/app/screens/LNURLPay/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,8 @@ function LNURLPay() {
value={valueSat}
onChange={(e) => setValueSat(e.target.value)}
fiatValue={fiatValue}
hint={`${tCommon("balance")}: ${
auth?.balancesDecorated?.accountBalance
}`}
hint={`${tCommon("balance")}: ${auth
?.balancesDecorated?.accountBalance}`}
amountExceeded={amountExceeded}
/>
<SatButtons
Expand Down
5 changes: 2 additions & 3 deletions src/extension/content-script/batteries/GeyserProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ function handleProjectPage(name: string) {
document.querySelector<HTMLElement>("#lightning-address")?.innerText;
const title =
document.querySelector<HTMLElement>("#project-title")?.innerText;
const icon = document.querySelector<HTMLImageElement>(
"#project-avatar img"
)?.src;
const icon = document.querySelector<HTMLImageElement>("#project-avatar img")
?.src;

if (address) {
setLightningData([
Expand Down
5 changes: 2 additions & 3 deletions src/extension/content-script/batteries/Twitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ function getUserData(username: string) {
if (element && imageUrl) {
return {
element,
name: `${
profileLinks[1].querySelector("span")?.textContent
} (@${username}) / Twitter`,
name: `${profileLinks[1].querySelector("span")
?.textContent} (@${username}) / Twitter`,
imageUrl,
};
}
Expand Down

0 comments on commit 5b06fbf

Please sign in to comment.