-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: genericize eslint and add to apps/dashboard tests (#3394)
* chore: switch build folder from 'lib' to 'dist' * test: setup generic eslint config structure with dashboard * build: add eslint rule to apps/dashboard * build: add check-lint to apps/dashboard test suite * chore: fix prettier lints * chore: fix 'import/order' lints * chore: fix '@typescript-eslint/no-unused-vars' lints * chore: fix 'no-duplicate-imports' lints * chore: fix 'import/no-unassigned-import' lints * chore: update pnpm lock file * build: add lib/eslint-config to root BUCK * fix: root BUCK * fix: export package-json from eslint-config BUCK --------- Co-authored-by: bodymindarts <[email protected]>
- Loading branch information
1 parent
f9c9869
commit 1739e6c
Showing
48 changed files
with
839 additions
and
579 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
"extends": ["next/core-web-vitals", "@galoy/eslint-config/base"] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { CircularProgress } from "@mui/joy"; | ||
import React from "react"; | ||
import { CircularProgress } from "@mui/joy" | ||
import React from "react" | ||
|
||
function Loading() { | ||
return ( | ||
<div className="flex justify-center items-center min-h-screen"> | ||
<CircularProgress /> | ||
</div> | ||
); | ||
) | ||
} | ||
|
||
export default Loading; | ||
export default Loading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
import { getServerSession } from "next-auth"; | ||
import { authOptions } from "./api/auth/[...nextauth]/route"; | ||
import PriceContainer from "@/components/price-container/price-container"; | ||
import ContentContainer from "@/components/content-container"; | ||
import { getServerSession } from "next-auth" | ||
|
||
import { authOptions } from "./api/auth/[...nextauth]/route" | ||
|
||
import PriceContainer from "@/components/price-container/price-container" | ||
import ContentContainer from "@/components/content-container" | ||
|
||
export default async function Home() { | ||
const session = await getServerSession(authOptions); | ||
const walletDetails = | ||
session?.userData?.data?.me?.defaultAccount?.wallets || []; | ||
const session = await getServerSession(authOptions) | ||
const walletDetails = session?.userData?.data?.me?.defaultAccount?.wallets || [] | ||
|
||
return ( | ||
<main> | ||
<ContentContainer> | ||
<PriceContainer walletDetails={walletDetails}></PriceContainer> | ||
</ContentContainer> | ||
</main> | ||
); | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
interface UrlInfo { | ||
title: string; | ||
protected: boolean; | ||
title: string | ||
protected: boolean | ||
} | ||
|
||
export const URLS: Record<string, UrlInfo> = { | ||
"/": { title: "Home", protected: true }, | ||
"/transactions": { title: "Transactions", protected: true }, | ||
}; | ||
} |
Oops, something went wrong.