Skip to content

Commit

Permalink
Disabling the unnecessary eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosiorowska committed Dec 6, 2023
1 parent 832da1e commit 8f4b700
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion dapp/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
"extends": ["@thesis-co"],
"rules": {
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off"
"import/prefer-default-export": "off",
// TypeScript allows us to declare props that are non-optional internally
// but are interpreted as optional externally if they have defaultProps
// defined; the following two adjustments disable eslint-plugin-react
// checks that predate this ability for TS and that no longer apply.
"react/default-props-match-prop-types": [
2,
{ "allowRequiredDefaults": true }
],
"react/require-default-props": [0]
}
}
2 changes: 1 addition & 1 deletion dapp/src/components/Header/ConnectWallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { formatSatoshiAmount, truncateAddress } from "../../utils"
export type ConnectButtonsProps = {
leftIcon: typeof Icon
rightIcon: typeof Icon
account: Account | undefined
account?: Account
requestAccount: () => Promise<void>
}

Expand Down

0 comments on commit 8f4b700

Please sign in to comment.