Skip to content

Commit 78b9f11

Browse files
authored
Fix all lint issues that are not no-explicit-any (#993)
* Address all issues that are *not* no-explicty-any * Update .prettierignore
1 parent 2567905 commit 78b9f11

File tree

5 files changed

+2
-49
lines changed

5 files changed

+2
-49
lines changed

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ node_modules/**
55
coverage/**
66
.vercel/**
77
/package
8+
pnpm-lock.yaml

cypress/support/commands.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Cypress.Commands.add('interceptCancelWorkflowApi', () => {
167167

168168
Cypress.Commands.add(
169169
'interceptApi',
170-
({ namespace, archived } = { namespace: 'default', archived: false }) => {
170+
({ archived } = { namespace: 'default', archived: false }) => {
171171
cy.interceptNamespacesApi();
172172
cy.interceptNamespaceApi({ archived });
173173
cy.interceptWorkflowsApi();

src/lib/services/schedule-service.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { v4 as uuidv4 } from 'uuid';
33

44
import type {
55
ListScheduleResponse,
6-
DescribeScheduleResponse,
76
CreateScheduleRequest,
87
UpdateScheduleRequest,
98
ScheduleListEntry,

src/lib/stores/pagination.test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {
1010
pagination,
1111
perPageFromSearchParameter,
1212
} from './pagination';
13-
import { stringifyWithBigInt } from '../utilities/parse-with-big-int';
1413

1514
const oneHundredResolutions = new Array(100).fill(null).map((_, i) => i);
1615

src/lib/utilities/get-namespace.test.ts

-46
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,6 @@
11
import { describe, expect, it } from 'vitest';
22
import { getNamespace } from './get-namespace';
33

4-
const temporalSystemNamespace = {
5-
namespaceInfo: {
6-
name: 'temporal-system',
7-
state: 'Registered',
8-
description: 'Temporal internal system namespace',
9-
ownerEmail: '[email protected]',
10-
data: {},
11-
id: '32049b68-7872-4094-8e63-d0dd59896a83',
12-
},
13-
config: {
14-
workflowExecutionRetentionTtl: '604800s',
15-
badBinaries: {
16-
binaries: {},
17-
},
18-
historyArchivalState: 'Disabled',
19-
historyArchivalUri: '',
20-
visibilityArchivalState: 'Disabled',
21-
visibilityArchivalUri: '',
22-
},
23-
replicationConfig: {
24-
activeClusterName: 'active',
25-
clusters: [
26-
{
27-
clusterName: 'active',
28-
},
29-
],
30-
state: 'Unspecified',
31-
},
32-
failoverVersion: '0',
33-
isGlobalNamespace: false,
34-
};
35-
364
const canaryNamespace = {
375
namespaceInfo: {
386
name: 'canary',
@@ -97,20 +65,6 @@ const defaultNamespace = {
9765
isGlobalNamespace: false,
9866
};
9967

100-
const getSettings = (
101-
defaultNamespace: string,
102-
showTemporalSystemNamespace: boolean,
103-
) => {
104-
return {
105-
auth: {
106-
enabled: false,
107-
options: ['organization', 'invitation', 'audience'],
108-
},
109-
defaultNamespace,
110-
showTemporalSystemNamespace,
111-
};
112-
};
113-
11468
describe('getNamespace', () => {
11569
it('should return default namespace if no namespace given', () => {
11670
const namespaces = [defaultNamespace, canaryNamespace];

0 commit comments

Comments
 (0)