mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Turn on noUnusedLocals, noImplicitReturns, importsNotUsedAsValues: error, and isolatedModules (#2777)
This commit is contained in:
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 (
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in new issue
Block a user