Skip to content

Commit

Permalink
fix: lint errors corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
Opty1712 committed Jul 31, 2022
1 parent eb0a0d9 commit 3256273
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
"lint:eslint": "eslint --ext .js,.jsx,.ts,.tsx ./ --color --cache",
"lint:prettier": "prettier -c ./",
"lint:stylelint": "stylelint **/*.{ts,tsx}",
"test": "cross-env NODE_ENV=test jest",
"test:watch": "jest --watch",
"healthcheck": "yarn lint && yarn test && yarn build"
"healthcheck": "yarn lint && yarn build"
},
"husky": {
"hooks": {
Expand Down
2 changes: 2 additions & 0 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import createEmotionCache from '../src/createEmotionCache';
export default class MyDocument extends Document<{
emotionStyleTags: JSX.Element[];
}> {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
static async getInitialProps(ctx: any) {
const initialProps = await Document.getInitialProps(ctx);

Expand Down Expand Up @@ -54,6 +55,7 @@ MyDocument.getInitialProps = async (ctx) => {

ctx.renderPage = () =>
originalRenderPage({
// eslint-disable-next-line @typescript-eslint/no-explicit-any
enhanceApp: (App: any) =>
function EnhanceApp(props: AppProps) {
return <App emotionCache={cache} {...props} />;
Expand Down
4 changes: 1 addition & 3 deletions src/global.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@


body {
padding: 0;
margin: 0;
height: 100%;
font-family: 'Roboto', Arial
font-family: 'Roboto', Arial;
}
3 changes: 1 addition & 2 deletions src/utils/finance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const defaultDecimals = 18;
BigNumber.config({ DECIMAL_PLACES: defaultDecimals });

export const bnToDec = (balanceInWei: string, decimals = defaultDecimals) => {
const bn = new BigNumber(balanceInWei)
const bn = new BigNumber(balanceInWei);
if (bn.isZero() || bn.isNaN()) return 0;

return bn.dividedBy(new BigNumber(10).pow(decimals)).toNumber();
Expand All @@ -13,4 +13,3 @@ export const bnToDec = (balanceInWei: string, decimals = defaultDecimals) => {
export const decToBn = (dec: number | string, decimals = 18) => {
return new BigNumber(dec, 10).multipliedBy(new BigNumber(10).pow(decimals));
};

1 comment on commit 3256273

@vercel
Copy link

@vercel vercel bot commented on 3256273 Jul 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nft-search – ./

nft-search-snowy.vercel.app
nft-search-git-main-opty1712.vercel.app
nft-search-opty1712.vercel.app

Please sign in to comment.