Turn on noUnusedLocals, noImplicitReturns, importsNotUsedAsValues: error, and isolatedModules (#2777)

This commit is contained in:
Sebastian Malton authored and GitHub committed 2021-05-19 12:11:54 -04:00
1 parent 489cef9595
commit 5ed4537979
287 files changed
+704 -628

No files matched your search

+2 -5
View File
@@ -42,9 +42,6 @@ export interface ButtonProps extends ButtonHTMLAttributes<any>, TooltipDecorator
@withTooltip
export class Button extends React.PureComponent<ButtonProps, {}> {
private link: HTMLAnchorElement;
private button: HTMLButtonElement;
render() {
const {
waiting, label, primary, accent, plain, hidden, active, big,
@@ -60,7 +57,7 @@ export class Button extends React.PureComponent<ButtonProps, {}> {
// render as link
if (this.props.href) {
return (
<a {...btnProps} ref={e => this.link = e}>
<a {...btnProps}>
{label}
{children}
</a>
@@ -69,7 +66,7 @@ export class Button extends React.PureComponent<ButtonProps, {}> {
// render as button
return (
<button type="button" {...btnProps} ref={e => this.button = e}>
<button type="button" {...btnProps}>
{label}
{children}
</button>