Skip to content

Commit 8e0b4b0

Browse files
committed
npm run lint
No-Issue
1 parent 5861f2f commit 8e0b4b0

File tree

6 files changed

+3
-10
lines changed

6 files changed

+3
-10
lines changed

ansible-hub-ui/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.9.0dev"
1+
__version__ = "4.9.0b1"

src/components/legacy-namespace-list/legacy-namespace-item.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@ import {
33
DataListItem,
44
DataListItemCells,
55
DataListItemRow,
6-
DropdownItem,
76
} from '@patternfly/react-core';
87
import React from 'react';
98
import { Link } from 'react-router-dom';
109
import { LegacyNamespaceDetailType } from 'src/api';
1110
import { Logo } from 'src/components';
12-
import { useContext } from 'src/loaders/app-context';
1311
import { Paths, formatPath } from 'src/paths';
1412
import './legacy-namespace-item.scss';
1513

src/containers/ansible-role/namespace-detail.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
DataListItem,
66
DataListItemCells,
77
DataListItemRow,
8-
DropdownItem,
98
} from '@patternfly/react-core';
109
import React from 'react';
1110
import { Link } from 'react-router-dom';

src/containers/ansible-role/namespace-list.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import {
2525
interface RoleNamespacesState {
2626
alerts: AlertType[];
2727
count: number;
28-
lightspeedModal?: string;
2928
loading: boolean;
3029
params: {
3130
page?: number;
@@ -50,7 +49,6 @@ class AnsibleRoleNamespaceList extends React.Component<
5049
this.state = {
5150
alerts: [],
5251
count: 0,
53-
lightspeedModal: null,
5452
loading: true,
5553
params: {
5654
page: 1,
@@ -119,7 +117,7 @@ class AnsibleRoleNamespaceList extends React.Component<
119117
},
120118
];
121119

122-
const { alerts, count, lightspeedModal, loading, params, roleNamespaces } =
120+
const { alerts, count, loading, params, roleNamespaces } =
123121
this.state;
124122

125123
const noData =

src/containers/namespace-detail/namespace-detail.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -989,8 +989,6 @@ export class NamespaceDetail extends React.Component<RouteProps, IState> {
989989

990990
private renderCollectionControls(collection: CollectionVersionSearch) {
991991
const { hasPermission } = this.context;
992-
const hasObjectPermission = (permission, namespace) =>
993-
namespace?.related_fields?.my_permissions?.includes?.(permission);
994992
const { showControls } = this.state;
995993
const { display_repositories } = this.context.featureFlags;
996994

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"allowSyntheticDefaultImports": true,
55
"baseUrl": ".",
66
"jsx": "react",
7-
"lib": ["es2021", "dom"],
7+
"lib": ["es2020", "dom"],
88
"module": "es2020",
99
"moduleResolution": "node",
1010
"noImplicitAny": false,

0 commit comments

Comments
 (0)