Skip to content

Commit

Permalink
Add exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl committed Sep 12, 2024
1 parent 8f16433 commit 869b3c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = {
"error",
{
"patterns": [
{ group: ["@ethersproject/bignumber"] },
{ group: ["@ethersproject/bignumber"], message: "Use 'src/utils/BigNumberUtils' instead" },
],
"paths": [
{ name: "ethers", importNames: ["BigNumber"], message: "Use 'src/utils/BigNumberUtils' instead" }
Expand Down
3 changes: 3 additions & 0 deletions src/utils/BigNumberUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
*/

import { utils as ethersUtils } from "ethers";

// eslint-disable-next-line no-restricted-imports
import { BigNumber, BigNumberish } from "@ethersproject/bignumber";

// eslint-disable-next-line no-restricted-imports
export * from "@ethersproject/bignumber";
export type BN = BigNumber;

Expand Down

0 comments on commit 869b3c8

Please sign in to comment.