Skip to content

Commit

Permalink
fix: default import lint
Browse files Browse the repository at this point in the history
  • Loading branch information
grothem committed Dec 12, 2024
1 parent 815ae2f commit a1f0e55
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
'import/first': 'error',
'import/newline-after-import': 'error',
'import/no-duplicates': 'error',
'import/no-named-as-default': 'warn',
'import/no-named-as-default': 'error',
'import/no-unresolved': 'warn',
// disabled as with the static export Image does not make to much sense
'@next/next/no-img-element': 'off',
Expand Down
4 changes: 1 addition & 3 deletions src/components/ConnectWalletPaper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Trans } from '@lingui/macro';
import { Box, CircularProgress, Paper, PaperProps, Typography } from '@mui/material';
import { useModal } from 'connectkit';
import { ReactNode } from 'react';
import { useWeb3Context } from 'src/libs/hooks/useWeb3Context';

import LandingGhost from '/public/resting-gho-hat-purple.svg';

Expand All @@ -14,7 +13,6 @@ interface ConnectWalletPaperProps extends PaperProps {

export const ConnectWalletPaper = ({ description, sx, ...rest }: ConnectWalletPaperProps) => {
const { open } = useModal();
const { loading } = useWeb3Context();

return (
<Paper
Expand All @@ -34,7 +32,7 @@ export const ConnectWalletPaper = ({ description, sx, ...rest }: ConnectWalletPa
<LandingGhost />
</Box>
<>
{open || loading ? (
{open ? (
<CircularProgress />
) : (
<>
Expand Down
2 changes: 1 addition & 1 deletion src/components/HealthFactorNumber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { valueToBigNumber } from '@aave/math-utils';
import { Trans } from '@lingui/macro';
import { Box, Button, Typography, useTheme } from '@mui/material';
import { TypographyProps } from '@mui/material/Typography';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';

import { FormattedNumber } from './primitives/FormattedNumber';

Expand Down
2 changes: 1 addition & 1 deletion src/components/infoTooltips/PriceImpactTooltip.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Trans } from '@lingui/macro';
import { Box, Skeleton } from '@mui/material';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';
import { GENERAL } from 'src/utils/mixPanelEvents';

import { FormattedNumber } from '../primitives/FormattedNumber';
Expand Down
2 changes: 1 addition & 1 deletion src/components/transactions/Bridge/BridgeModalContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
SvgIcon,
Typography,
} from '@mui/material';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';
import { constants } from 'ethers';
import { formatUnits } from 'ethers/lib/utils';
import React, { useEffect, useState } from 'react';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ArrowDownIcon } from '@heroicons/react/outline';
import { ArrowNarrowRightIcon } from '@heroicons/react/solid';
import { Trans } from '@lingui/macro';
import { Box, ListItemText, ListSubheader, Stack, SvgIcon, Typography } from '@mui/material';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';
import React, { useRef, useState } from 'react';
import { GhoIncentivesCard } from 'src/components/incentives/GhoIncentivesCard';
import { PriceImpactTooltip } from 'src/components/infoTooltips/PriceImpactTooltip';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { valueToBigNumber } from '@aave/math-utils';
import { ArrowDownIcon } from '@heroicons/react/outline';
import { Trans } from '@lingui/macro';
import { Box, Stack, SvgIcon, Typography } from '@mui/material';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';
import { useRef, useState } from 'react';
import { PriceImpactTooltip } from 'src/components/infoTooltips/PriceImpactTooltip';
import { FormattedNumber } from 'src/components/primitives/FormattedNumber';
Expand Down
2 changes: 1 addition & 1 deletion src/components/transactions/Repay/RepayModalContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
} from '@aave/math-utils';
import { Trans } from '@lingui/macro';
import Typography from '@mui/material/Typography';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';
import React, { useEffect, useRef, useState } from 'react';
import {
ExtendedFormattedUser,
Expand Down
2 changes: 1 addition & 1 deletion src/components/transactions/Supply/SupplyModalContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { API_ETH_MOCK_ADDRESS } from '@aave/contract-helpers';
import { USD_DECIMALS, valueToBigNumber } from '@aave/math-utils';
import { Trans } from '@lingui/macro';
import { Skeleton, Stack, Typography } from '@mui/material';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';
import React, { useEffect, useState } from 'react';
import { WrappedTokenTooltipContent } from 'src/components/infoTooltips/WrappedTokenToolTipContent';
import { FormattedNumber } from 'src/components/primitives/FormattedNumber';
Expand Down
2 changes: 1 addition & 1 deletion src/components/transactions/Swap/SwapModalContent.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { SwitchVerticalIcon } from '@heroicons/react/outline';
import { Trans } from '@lingui/macro';
import { Box, Stack, SvgIcon, Typography } from '@mui/material';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';
import React, { useRef, useState } from 'react';
import { PriceImpactTooltip } from 'src/components/infoTooltips/PriceImpactTooltip';
import { FormattedNumber } from 'src/components/primitives/FormattedNumber';
Expand Down
2 changes: 1 addition & 1 deletion src/components/transactions/Withdraw/WithdrawError.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { valueToBigNumber } from '@aave/math-utils';
import { Trans } from '@lingui/macro';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';
import {
ComputedReserveData,
ExtendedFormattedUser,
Expand Down
2 changes: 1 addition & 1 deletion src/components/transactions/Withdraw/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { valueToBigNumber } from '@aave/math-utils';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';
import {
ComputedReserveData,
ComputedUserReserveData,
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/pool/useUserYield.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
FormattedGhoUserData,
FormatUserSummaryAndIncentivesResponse,
} from '@aave/math-utils';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';
import memoize from 'micro-memoize';
import { MarketDataType } from 'src/ui-config/marketsConfig';
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { valueToBigNumber } from '@aave/math-utils';
import { Trans } from '@lingui/macro';
import { AlertColor, Box, Typography, useTheme } from '@mui/material';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';
import React from 'react';

import { FormattedNumber } from '../../../../components/primitives/FormattedNumber';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { API_ETH_MOCK_ADDRESS } from '@aave/contract-helpers';
import { USD_DECIMALS, valueToBigNumber } from '@aave/math-utils';
import { Trans } from '@lingui/macro';
import { Box, Typography, useMediaQuery, useTheme } from '@mui/material';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';
import { Fragment, useState } from 'react';
import { ListColumn } from 'src/components/lists/ListColumn';
import { ListHeaderTitle } from 'src/components/lists/ListHeaderTitle';
Expand Down
2 changes: 1 addition & 1 deletion src/modules/governance/utils/formatProposal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
VotingMachineProposalState,
} from '@aave/contract-helpers';
import { normalizeBN, valueToBigNumber } from '@aave/math-utils';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';
import {
EnhancedSubgraphProposal,
Proposal,
Expand Down
2 changes: 1 addition & 1 deletion src/modules/reserve-overview/ReserveActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
Typography,
useTheme,
} from '@mui/material';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';
import React, { ReactNode, useState } from 'react';
import { WalletIcon } from 'src/components/icons/WalletIcon';
import { getMarketInfoById } from 'src/components/MarketSwitcher';
Expand Down
2 changes: 1 addition & 1 deletion src/store/v3MigrationSelectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
ReserveIncentiveResponse,
} from '@aave/math-utils/dist/esm/formatters/incentive/calculate-reserve-incentives';
import { SignatureLike } from '@ethersproject/bytes';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';
import { BigNumberish } from 'ethers';
import { Approval } from 'src/helpers/useTransactionHandler';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/getMaxAmountAvailableToBorrow.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { FormatUserSummaryAndIncentivesResponse, valueToBigNumber } from '@aave/math-utils';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';
import { ethers } from 'ethers';

import {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/getMaxAmountAvailableToSupply.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { API_ETH_MOCK_ADDRESS } from '@aave/contract-helpers';
import { valueToBigNumber } from '@aave/math-utils';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';

import { roundToTokenDecimals } from './utils';

Expand Down
2 changes: 1 addition & 1 deletion src/utils/hfUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
UserReserveData,
valueToBigNumber,
} from '@aave/math-utils';
import BigNumber from 'bignumber.js';
import { BigNumber } from 'bignumber.js';
import {
ComputedReserveData,
ComputedUserReserveData,
Expand Down

0 comments on commit a1f0e55

Please sign in to comment.