Update eslint to 8.27.0

This commit is contained in:
Fedor Indutny 2022-11-17 16:45:19 -08:00 committed by GitHub
parent c8fb43a846
commit 98ef4c627a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
499 changed files with 8995 additions and 8494 deletions

View file

@ -10,13 +10,13 @@ import { strictAssert } from '../util/assert';
import { parseNumber } from '../util/libphonenumberUtil';
import { getChallengeURL } from '../challenge';
const PhoneInput = ({
function PhoneInput({
onValidation,
onNumberChange,
}: {
onValidation: (isValid: boolean) => void;
onNumberChange: (number?: string) => void;
}): JSX.Element => {
}): JSX.Element {
const [isValid, setIsValid] = useState(false);
const pluginRef = useRef<Plugin | undefined>();
const elemRef = useRef<HTMLInputElement | null>(null);
@ -90,9 +90,9 @@ const PhoneInput = ({
</div>
</div>
);
};
}
export const StandaloneRegistration = ({
export function StandaloneRegistration({
onComplete,
requestVerification,
registerSingleDevice,
@ -104,7 +104,7 @@ export const StandaloneRegistration = ({
token: string
) => Promise<void>;
registerSingleDevice: (number: string, code: string) => Promise<void>;
}): JSX.Element => {
}): JSX.Element {
useEffect(() => {
window.readyForUpdates();
}, []);
@ -269,4 +269,4 @@ export const StandaloneRegistration = ({
</div>
</div>
);
};
}