Commit 27acddc0 authored by Vignesh Mohankumar's avatar Vignesh Mohankumar Committed by GitHub

chore: upgrade prettier (#6887)

* lint

* upgrade prettier

---------
Co-authored-by: default avatarZach Pomerantz <zzmp@uniswap.org>
parent 102a935f
......@@ -103,7 +103,7 @@ export const L1_CHAIN_IDS = [
SupportedChainId.BNB,
] as const
export type SupportedL1ChainId = typeof L1_CHAIN_IDS[number]
export type SupportedL1ChainId = (typeof L1_CHAIN_IDS)[number]
/**
* Controls some L2 specific behavior, e.g. slippage tolerance, special UI behavior.
......@@ -116,7 +116,7 @@ export const L2_CHAIN_IDS = [
SupportedChainId.OPTIMISM_GOERLI,
] as const
export type SupportedL2ChainId = typeof L2_CHAIN_IDS[number]
export type SupportedL2ChainId = (typeof L2_CHAIN_IDS)[number]
export function isPolygonChain(chainId: number): chainId is SupportedChainId.POLYGON | SupportedChainId.POLYGON_MUMBAI {
return chainId === SupportedChainId.POLYGON || chainId === SupportedChainId.POLYGON_MUMBAI
......
......@@ -33,7 +33,7 @@ export const SUPPORTED_LOCALES = [
'zh-CN',
'zh-TW',
]
export type SupportedLocale = typeof SUPPORTED_LOCALES[number]
export type SupportedLocale = (typeof SUPPORTED_LOCALES)[number]
export const DEFAULT_LOCALE: SupportedLocale = 'en-US'
......
......@@ -57,7 +57,7 @@ const ContentContainer = styled.div`
border: 1px solid ${({ theme }) => theme.backgroundOutline};
border-top: none;
border-radius: 0px 0px 16px 16px;
background-color: ${({ theme }) => theme.backgroundSurface}; ;
background-color: ${({ theme }) => theme.backgroundSurface};
`
const InfoContainer = ({
......
......@@ -67,7 +67,7 @@ const supportedTimePeriods = [
HistoryDuration.Year,
HistoryDuration.Max,
] as const
export type SupportedTimePeriodsType = typeof supportedTimePeriods[number]
export type SupportedTimePeriodsType = (typeof supportedTimePeriods)[number]
const supportedTimePeriodsData: Record<SupportedTimePeriodsType, ReactNode> = {
[HistoryDuration.Week]: <Trans>1 week</Trans>,
......
......@@ -115,7 +115,7 @@ export function transformRoutesToTrade(args: GetQuoteArgs, data: QuoteData): Tra
v2Routes:
routes
?.filter(
(r): r is typeof routes[0] & { routev2: NonNullable<typeof routes[0]['routev2']> } => r.routev2 !== null
(r): r is (typeof routes)[0] & { routev2: NonNullable<(typeof routes)[0]['routev2']> } => r.routev2 !== null
)
.map(({ routev2, inputAmount, outputAmount }) => ({
routev2,
......@@ -125,7 +125,7 @@ export function transformRoutesToTrade(args: GetQuoteArgs, data: QuoteData): Tra
v3Routes:
routes
?.filter(
(r): r is typeof routes[0] & { routev3: NonNullable<typeof routes[0]['routev3']> } => r.routev3 !== null
(r): r is (typeof routes)[0] & { routev3: NonNullable<(typeof routes)[0]['routev3']> } => r.routev3 !== null
)
.map(({ routev3, inputAmount, outputAmount }) => ({
routev3,
......@@ -135,7 +135,7 @@ export function transformRoutesToTrade(args: GetQuoteArgs, data: QuoteData): Tra
mixedRoutes:
routes
?.filter(
(r): r is typeof routes[0] & { mixedRoute: NonNullable<typeof routes[0]['mixedRoute']> } =>
(r): r is (typeof routes)[0] & { mixedRoute: NonNullable<(typeof routes)[0]['mixedRoute']> } =>
r.mixedRoute !== null
)
.map(({ mixedRoute, inputAmount, outputAmount }) => ({
......
......@@ -6,5 +6,5 @@ import reducer from './reducer'
type GetState<T> = T extends Reducer<infer State> ? State : never
export type AppState = {
[K in keyof typeof reducer]: GetState<typeof reducer[K]>
[K in keyof typeof reducer]: GetState<(typeof reducer)[K]>
}
......@@ -16093,10 +16093,10 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"
prettier@^2.1.2, prettier@^2.7.1, prettier@^2.8.0:
version "2.8.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.1.tgz#4e1fd11c34e2421bc1da9aea9bd8127cd0a35efc"
integrity sha512-lqGoSJBQNJidqCHE80vqZJHWHRFoNYsSpP9AjFhlhi9ODCJA541svILes/+/1GM3VaL/abZi7cpFzOpdR9UPKg==
prettier@^2.1.2, prettier@^2.8.0, prettier@^2.8.8:
version "2.8.8"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da"
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==
pretty-bytes@^5.3.0, pretty-bytes@^5.4.1, pretty-bytes@^5.6.0:
version "5.6.0"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment