Skip to content

Commit bbf1382

Browse files
committed
fix up linting
1 parent f334727 commit bbf1382

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

explorer-nextjs/.eslintrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"extends": ["next/core-web-vitals"]
2+
"extends": ["next/core-web-vitals"],
3+
"rules": {
4+
"react-hooks/exhaustive-deps": "off"
5+
}
36
}

sdk/typescript/packages/react-components/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"allowConstantExport": true
1616
}
1717
],
18-
"@typescript-eslint/no-explicit-any": "warn"
18+
"@typescript-eslint/no-explicit-any": "off",
19+
"react-hooks/exhaustive-deps": "off"
1920
}
2021
}

sdk/typescript/packages/react-components/lib/components/account/WalletAddressFormField.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export const WalletAddressFormField = ({
6565
if (errorText) {
6666
setValidationError(errorText);
6767
}
68+
// eslint-disable-next-line react-hooks/exhaustive-deps
6869
}, [initialValue, errorText]);
6970

7071
const handleChange = (event: ChangeEvent<HTMLInputElement>) => {

sdk/typescript/packages/react-components/lib/components/mixnodes/IdentityKeyFormField.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export const IdentityKeyFormField = ({
7171
if (errorText) {
7272
setValidationError(errorText);
7373
}
74+
// eslint-disable-next-line react-hooks/exhaustive-deps
7475
}, [initialValue, errorText]);
7576

7677
const handleChange = (event: ChangeEvent<HTMLInputElement>) => {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
declare type FCWithChildren<P = {}> = React.FC<React.PropsWithChildren<P>>;
1+
declare type FCWithChildren<P = Object> = React.FC<React.PropsWithChildren<P>>;

0 commit comments

Comments
 (0)