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
@@ -25,8 +25,8 @@ import React from "react";
|
||||
import { DrawerTitle } from "../drawer";
|
||||
import { KubeEventDetails } from "../+events/kube-event-details";
|
||||
import { observer } from "mobx-react";
|
||||
import { KubeObjectDetailsProps } from "../kube-object";
|
||||
import { Role } from "../../api/endpoints";
|
||||
import type { KubeObjectDetailsProps } from "../kube-object";
|
||||
import type { Role } from "../../api/endpoints";
|
||||
import { KubeObjectMeta } from "../kube-object/kube-object-meta";
|
||||
import { kubeObjectDetailRegistry } from "../../api/kube-object-detail-registry";
|
||||
|
||||
@@ -38,7 +38,7 @@ export class RoleDetails extends React.Component<Props> {
|
||||
render() {
|
||||
const { object: role } = this.props;
|
||||
|
||||
if (!role) return;
|
||||
if (!role) return null;
|
||||
const rules = role.getRules();
|
||||
|
||||
return (
|
||||
|
||||
@@ -23,10 +23,10 @@ import "./roles.scss";
|
||||
|
||||
import React from "react";
|
||||
import { observer } from "mobx-react";
|
||||
import { RouteComponentProps } from "react-router";
|
||||
import { IRolesRouteParams } from "../+user-management/user-management.route";
|
||||
import type { RouteComponentProps } from "react-router";
|
||||
import type { IRolesRouteParams } from "../+user-management/user-management.route";
|
||||
import { rolesStore } from "./roles.store";
|
||||
import { Role } from "../../api/endpoints";
|
||||
import type { Role } from "../../api/endpoints";
|
||||
import { KubeObjectListLayout } from "../kube-object";
|
||||
import { AddRoleDialog } from "./add-role-dialog";
|
||||
import { KubeObjectStatusIcon } from "../kube-object-status-icon";
|
||||
|
||||
Reference in new issue
Block a user