Fix tsconfig (#62)

* make typeRoots consistent

* config/tokens.json doesn't exist

* simplify parent paths
This commit is contained in:
Jordan Sexton 2021-04-14 23:42:19 -05:00 committed by GitHub
parent 4c228b1219
commit cfaecafba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 18 additions and 18 deletions

View File

@ -16,7 +16,7 @@
"downlevelIteration": true,
"noEmit": true,
"jsx": "react",
"typeRoots": ["../../types"]
"typeRoots": ["types", "../../types", "../../node_modules/@types"]
},
"include": ["src"]
}

View File

@ -16,7 +16,7 @@
"downlevelIteration": true,
"noEmit": true,
"jsx": "react",
"typeRoots": ["../../types"]
"typeRoots": ["types", "../../types", "../../node_modules/@types"]
},
"include": ["src"]
}

View File

@ -3,9 +3,9 @@ import { WalletAdapter } from "@solana/wallet-base";
import Wallet from "@project-serum/sol-wallet-adapter";
import { Button, Modal } from "antd";
import React, { useCallback, useContext, useEffect, useMemo, useState} from "react";
import { notify } from "./../utils/notifications";
import { notify } from "../utils/notifications";
import { useConnectionConfig } from "./connection";
import { useLocalStorageState } from "./../utils/utils";
import { useLocalStorageState } from "../utils/utils";
import { LedgerProvider } from "@solana/wallet-ledger";
import { SolongWalletAdapter } from "../wallet-adapters/solong";
import { PhantomWalletAdapter } from "../wallet-adapters/phantom";

View File

@ -1,6 +1,6 @@
import EventEmitter from "eventemitter3";
import { PublicKey } from "@solana/web3.js";
import { notify } from "./../utils/notifications";
import { notify } from "../utils/notifications";
export class SolongAdapter extends EventEmitter {
_publicKey: any;

View File

@ -16,8 +16,8 @@
"resolveJsonModule": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"typeRoots": ["../../types/", "../../node_modules/@types", "../../types"]
"typeRoots": ["types", "../../types", "../../node_modules/@types"]
},
"include": ["src/**/*", "src/config/tokens.json"],
"include": ["src/**/*"],
"exclude": ["src/**/*.test.ts", "**/node_modules"]
}

View File

@ -1,7 +1,7 @@
import React, { useMemo } from "react";
import { GUTTER, LABELS } from "../../constants";
import { LiquidateItem } from "./item";
import { useEnrichedLendingObligations } from "./../../hooks";
import { useEnrichedLendingObligations } from "../../hooks";
import "./style.less";
import { Card, Col, Row, Statistic, Typography } from "antd";
import { BarChartStatistic } from "../../components/BarChartStatistic";

View File

@ -1,10 +1,10 @@
import React from "react";
import { useLendingReserve } from "./../../hooks";
import { useLendingReserve } from "../../hooks";
import { useParams } from "react-router-dom";
import "./style.less";
import { UserLendingCard } from "./../../components/UserLendingCard";
import { ReserveStatus } from "./../../components/ReserveStatus";
import { UserLendingCard } from "../../components/UserLendingCard";
import { ReserveStatus } from "../../components/ReserveStatus";
import { Col, Row } from "antd";
import { GUTTER } from "../../constants";

View File

@ -16,7 +16,7 @@
"downlevelIteration": true,
"noEmit": true,
"jsx": "react",
"typeRoots": ["../../types"]
"typeRoots": ["types", "../../types", "../../node_modules/@types"]
},
"include": ["src"]
}

View File

@ -16,7 +16,7 @@
"downlevelIteration": true,
"noEmit": true,
"jsx": "react",
"typeRoots": ["../../types"]
"typeRoots": ["types", "../../types", "../../node_modules/@types"]
},
"include": ["src"]
}

View File

@ -16,8 +16,8 @@
"resolveJsonModule": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"typeRoots": ["../../types/", "../../node_modules/@types", "../../types"]
"typeRoots": ["types", "../../types", "../../node_modules/@types"]
},
"include": ["src/**/*", "src/config/tokens.json"],
"include": ["src/**/*"],
"exclude": ["src/**/*.test.ts", "**/node_modules"]
}

View File

@ -16,8 +16,8 @@
"resolveJsonModule": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"typeRoots": ["../../types/", "../../node_modules/@types", "../../types"]
"typeRoots": ["types", "../../types", "../../node_modules/@types"]
},
"include": ["src/**/*", "src/config/tokens.json"],
"include": ["src/**/*"],
"exclude": ["src/**/*.test.ts", "**/node_modules"]
}

View File

@ -11,7 +11,7 @@
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"noImplicitAny": true,
"typeRoots": ["types/", "node_modules/@types"]
"typeRoots": ["types", "node_modules/@types"]
},
"include": ["src/**/*"]
}