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

@ -140,7 +140,7 @@ export type PropsType = {
renderCrashReportDialog: () => JSX.Element;
} & LookupConversationWithoutUuidActionsType;
export const LeftPane: React.FC<PropsType> = ({
export function LeftPane({
challengeStatus,
crashReportCount,
clearConversationSearch,
@ -187,7 +187,7 @@ export const LeftPane: React.FC<PropsType> = ({
theme,
toggleComposeEditingAvatar,
updateSearchTerm,
}) => {
}: PropsType): JSX.Element {
const [preferredWidth, setPreferredWidth] = useState(
// This clamp is present just in case we get a bogus value from storage.
clamp(preferredWidthFromStorage, MIN_WIDTH, MAX_WIDTH)
@ -622,15 +622,13 @@ export const LeftPane: React.FC<PropsType> = ({
{footerContents && (
<div className="module-left-pane__footer">{footerContents}</div>
)}
<>
{/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}
<div
className="module-left-pane__resize-grab-area"
onMouseDown={() => {
setIsResizing(true);
}}
/>
</>
{/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}
<div
className="module-left-pane__resize-grab-area"
onMouseDown={() => {
setIsResizing(true);
}}
/>
{challengeStatus !== 'idle' &&
renderCaptchaDialog({
onSkip() {
@ -640,7 +638,7 @@ export const LeftPane: React.FC<PropsType> = ({
{crashReportCount > 0 && renderCrashReportDialog()}
</div>
);
};
}
function keyboardKeyToNumericIndex(key: string): undefined | number {
if (key.length !== 1) {