Skip to content

Commit 66501f2

Browse files
committed
fix: linter errors
1 parent 396f815 commit 66501f2

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

src/components/ComponentsProvider/registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class Registry<Entities extends RegistryEntities = {}> {
1616
return this.entities[id];
1717
}
1818

19-
register<Id extends string, T>(id: Id, entity: T): Registry<Entities & {[key in Id]: T}> {
19+
register<Id extends string, T>(id: Id, entity: T): Registry<Entities & {[_key in Id]: T}> {
2020
this.entities[id] = entity;
2121

2222
return this;

src/components/InfoViewer/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import type React from 'react';
33
import type {InfoViewerItem} from './InfoViewer';
44

55
type LabelMap<T> = {
6-
[label in keyof T]?: string;
6+
[_label in keyof T]?: string;
77
};
88

99
type ValueFormatters<T> = {

src/containers/App/appSlots.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,42 +13,42 @@ import type {VDiskPage} from '../VDiskPage/VDiskPage';
1313
export const ClustersSlot = createSlot<{
1414
children:
1515
| React.ReactNode
16-
| ((props: {component: typeof Clusters} & RouteComponentProps) => React.ReactNode);
16+
| ((_props: {component: typeof Clusters} & RouteComponentProps) => React.ReactNode);
1717
}>('clusters');
1818
export const ClusterSlot = createSlot<{
1919
children:
2020
| React.ReactNode
21-
| ((props: {component: typeof Cluster} & RouteComponentProps) => React.ReactNode);
21+
| ((_props: {component: typeof Cluster} & RouteComponentProps) => React.ReactNode);
2222
}>('cluster');
2323
export const TenantSlot = createSlot<{
2424
children:
2525
| React.ReactNode
26-
| ((props: {component: typeof Tenant} & RouteComponentProps) => React.ReactNode);
26+
| ((_props: {component: typeof Tenant} & RouteComponentProps) => React.ReactNode);
2727
}>('tenant');
2828
export const NodeSlot = createSlot<{
2929
children:
3030
| React.ReactNode
31-
| ((props: {component: typeof Node} & RouteComponentProps) => React.ReactNode);
31+
| ((_props: {component: typeof Node} & RouteComponentProps) => React.ReactNode);
3232
}>('node');
3333
export const PDiskPageSlot = createSlot<{
3434
children:
3535
| React.ReactNode
36-
| ((props: {component: typeof PDiskPage} & RouteComponentProps) => React.ReactNode);
36+
| ((_props: {component: typeof PDiskPage} & RouteComponentProps) => React.ReactNode);
3737
}>('pDisk');
3838
export const VDiskPageSlot = createSlot<{
3939
children:
4040
| React.ReactNode
41-
| ((props: {component: typeof VDiskPage} & RouteComponentProps) => React.ReactNode);
41+
| ((_props: {component: typeof VDiskPage} & RouteComponentProps) => React.ReactNode);
4242
}>('vDisk');
4343
export const StorageGroupSlot = createSlot<{
4444
children:
4545
| React.ReactNode
46-
| ((props: {component: typeof StorageGroupPage} & RouteComponentProps) => React.ReactNode);
46+
| ((_props: {component: typeof StorageGroupPage} & RouteComponentProps) => React.ReactNode);
4747
}>('storageGroup');
4848
export const TabletSlot = createSlot<{
4949
children:
5050
| React.ReactNode
51-
| ((props: {component: typeof Tablet} & RouteComponentProps) => React.ReactNode);
51+
| ((_props: {component: typeof Tablet} & RouteComponentProps) => React.ReactNode);
5252
}>('tablet');
5353

5454
export const RoutesSlot = createSlot<{children: React.ReactNode}>('routes');

src/types/react-json-inspector.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ declare module 'react-json-inspector' {
66
searchOptions?: {
77
debounceTime?: number;
88
};
9-
onClick?: ({path: string, key: string, value: object}) => void;
10-
validateQuery?: (query: string) => boolean;
11-
isExpanded?: (keypath: string) => boolean;
9+
onClick?: (_props: {path: string; key: string; value: object}) => void;
10+
validateQuery?: (_query: string) => boolean;
11+
isExpanded?: (_keypath: string) => boolean;
1212
filterOptions?: {
1313
cacheResults?: bool;
1414
ignoreCase?: bool;

0 commit comments

Comments
 (0)