diff --git a/packages/app/components/auth/PanelTransition.tsx b/packages/app/components/auth/PanelTransition.tsx index 370132c..c260793 100644 --- a/packages/app/components/auth/PanelTransition.tsx +++ b/packages/app/components/auth/PanelTransition.tsx @@ -139,7 +139,7 @@ class PanelTransition extends React.PureComponent { onFormSubmit: () => void; } | null = null; - timerIds: Array = []; // this is a list of a probably running timeouts to clean on unmount + timerIds: Array> = []; // this is a list of a probably running timeouts to clean on unmount componentDidUpdate(prevProps: Props) { const nextPanel: PanelId = this.props.Body && (this.props.Body.type as any).panelId; @@ -160,8 +160,7 @@ class PanelTransition extends React.PureComponent { if (forceHeight) { this.timerIds.push( - // https://stackoverflow.com/a/51040768/5184751 - window.setTimeout(() => { + setTimeout(() => { this.setState({ forceHeight: 0 }); }, 100), ); diff --git a/packages/app/components/auth/deviceCode/DeviceCode.tsx b/packages/app/components/auth/deviceCode/DeviceCode.tsx index cae7191..99954b5 100644 --- a/packages/app/components/auth/deviceCode/DeviceCode.tsx +++ b/packages/app/components/auth/deviceCode/DeviceCode.tsx @@ -22,7 +22,7 @@ const DeviceCode: FC = (props) => { Body={} Footer={ } /> diff --git a/packages/app/components/ui/form/Dropdown.tsx b/packages/app/components/ui/form/Dropdown.tsx index 37628de..2095da9 100644 --- a/packages/app/components/ui/form/Dropdown.tsx +++ b/packages/app/components/ui/form/Dropdown.tsx @@ -39,11 +39,10 @@ export default class Dropdown extends FormInputComponent { }; render() { - const { color, block, items, ...restProps } = this.props; + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const { color, block, items, label: unusedLabel, ...restProps } = this.props; const { isActive } = this.state; - delete restProps.label; - const activeItem = this.getActiveItem(); const label = React.isValidElement(activeItem.label) ? activeItem.label : this.formatMessage(activeItem.label); diff --git a/packages/scripts/build-dll.ts b/packages/scripts/build-dll.ts index 0a48cc9..1b53d3a 100644 --- a/packages/scripts/build-dll.ts +++ b/packages/scripts/build-dll.ts @@ -32,7 +32,7 @@ Promise.all([stat(`${__dirname}/../../yarn.lock`), stat(`${__dirname}/../../dll/ console.log('Rebuilding dlls...'); - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { compiler.run((err, stats) => { if (err) { return reject(err); diff --git a/tsconfig.json b/tsconfig.json index 49122cf..22e7d17 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,6 @@ "esModuleInterop": true, // allow importing commonjs exports as default in es imports "moduleResolution": "node", "noEmit": true, - "checkJs": true, "allowJs": true, "skipLibCheck": true, "strictNullChecks": true,