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

@@ -21,7 +21,7 @@
import React from "react";
import { observer } from "mobx-react";
import { Cluster } from "../../../main/cluster";
import type { Cluster } from "../../../main/cluster";
import { cssNames } from "../../utils";
interface Props {
@@ -88,7 +88,7 @@ export class SidebarItem extends React.Component<SidebarItemProps> {
const { isExpandable, expanded, isActive } = this;
if (!isExpandable || !expanded) {
return;
return null;
}
return (
+1 -1
View File
@@ -155,7 +155,7 @@ export class Sidebar extends React.Component<Props> {
pageUrl = tabRoutes[0].url;
isActive = isActiveRoute(tabRoutes.map((tab) => tab.routePath));
} else {
return;
return null;
}
return (