Prune
This commit is contained in:
@@ -50,6 +50,7 @@ export default function VerifyTwoFactor(props: Props) {
|
||||
};
|
||||
|
||||
const onChange =
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
||||
(callback: Function, triggerSubmit: Function) => (otp: string) => {
|
||||
callback(otp);
|
||||
if (otp.length === 6) {
|
||||
|
||||
@@ -21,14 +21,14 @@ export default [
|
||||
"@typescript-eslint/array-type": "off",
|
||||
"@typescript-eslint/no-empty-function": "off",
|
||||
"@typescript-eslint/prefer-optional-chain": "off",
|
||||
"@typescript-eslint/ban-types": "off",
|
||||
"@typescript-eslint/no-misused-promises": "off",
|
||||
|
||||
|
||||
"react-hooks/exhaustive-deps": "off",
|
||||
"react-hooks/rules-of-hooks": "off",
|
||||
"react-refresh/only-export-components": "off",
|
||||
/** TODO: New during eslint 8=>9 migration */
|
||||
"@typescript-eslint/no-unused-vars": "off",
|
||||
"@typescript-eslint/no-unsafe-function-type": "off",
|
||||
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@@ -278,6 +278,7 @@ const Page: React.FC<PageProps> = ({ appContext }) => {
|
||||
}
|
||||
};
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
||||
const useMasterPassword: VerifyMasterPasswordFormProps["callback"] = async (
|
||||
key,
|
||||
kek,
|
||||
|
||||
Reference in New Issue
Block a user