Remove // eslint-disable-next-line @typescript-eslint/no-unused-vars

This commit is contained in:
Adria Navarro 2024-04-17 10:22:49 +02:00
parent 9be86e8b05
commit ec93ea59c1
8 changed files with 5 additions and 19 deletions

View File

@ -166,8 +166,7 @@ class InMemoryQueue implements Partial<Queue> {
return [] return []
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars async removeJobs(_pattern: string) {
async removeJobs(pattern: string) {
// no-op // no-op
} }

@ -1 +1 @@
Subproject commit c68183402b8fb17248572006531d5293ffc8a9ac Subproject commit e6c7cde321b6943e3f0f464957b1c1c5b22fbb50

View File

@ -62,7 +62,6 @@ export const definition: AutomationStepSchema = {
} }
export async function run({ inputs }: AutomationStepInput) { export async function run({ inputs }: AutomationStepInput) {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { automationId, ...fieldParams } = inputs.automation const { automationId, ...fieldParams } = inputs.automation
if (await features.isTriggerAutomationRunEnabled()) { if (await features.isTriggerAutomationRunEnabled()) {

View File

@ -168,8 +168,7 @@ class GoogleSheetsIntegration implements DatasourcePlus {
return "" return ""
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars getStringConcat(_parts: string[]) {
getStringConcat(parts: string[]) {
return "" return ""
} }

View File

@ -35,7 +35,6 @@ export function init() {
// Because we can't pass functions into an Isolate, we remove them from // Because we can't pass functions into an Isolate, we remove them from
// the passed context and rely on the withHelpers() method to add them // the passed context and rely on the withHelpers() method to add them
// back in. // back in.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { helpers, snippets, ...rest } = ctx const { helpers, snippets, ...rest } = ctx
return vm.withContext(rest, () => vm.execute(js)) return vm.withContext(rest, () => vm.execute(js))
} catch (error: any) { } catch (error: any) {

View File

@ -351,7 +351,6 @@ describe("table sdk", () => {
const view: ViewV2 = { const view: ViewV2 = {
...basicView, ...basicView,
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { name, description, ...newTableSchema } = basicTable.schema const { name, description, ...newTableSchema } = basicTable.schema
const result = syncSchema(_.cloneDeep(view), newTableSchema, undefined) const result = syncSchema(_.cloneDeep(view), newTableSchema, undefined)
@ -365,7 +364,6 @@ describe("table sdk", () => {
const view: ViewV2 = { const view: ViewV2 = {
...basicView, ...basicView,
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { description, ...newTableSchema } = { const { description, ...newTableSchema } = {
...basicTable.schema, ...basicTable.schema,
updatedDescription: { updatedDescription: {
@ -450,7 +448,6 @@ describe("table sdk", () => {
hiddenField: { visible: false }, hiddenField: { visible: false },
}, },
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { name, description, ...newTableSchema } = basicTable.schema const { name, description, ...newTableSchema } = basicTable.schema
const result = syncSchema(_.cloneDeep(view), newTableSchema, undefined) const result = syncSchema(_.cloneDeep(view), newTableSchema, undefined)
@ -474,7 +471,6 @@ describe("table sdk", () => {
hiddenField: { visible: false }, hiddenField: { visible: false },
}, },
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { name, description, ...newTableSchema } = { const { name, description, ...newTableSchema } = {
...basicTable.schema, ...basicTable.schema,
newField1: { newField1: {
@ -506,7 +502,6 @@ describe("table sdk", () => {
hiddenField: { visible: false }, hiddenField: { visible: false },
}, },
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { description, ...newTableSchema } = { const { description, ...newTableSchema } = {
...basicTable.schema, ...basicTable.schema,
updatedDescription: { updatedDescription: {

View File

@ -262,13 +262,11 @@ export class BaseSocket {
} }
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars async onConnect(_socket: Socket) {
async onConnect(socket: Socket) {
// Override // Override
} }
// eslint-disable-next-line @typescript-eslint/no-unused-vars async onDisconnect(_socket: Socket) {
async onDisconnect(socket: Socket) {
// Override // Override
} }

View File

@ -704,7 +704,6 @@ describe("scim", () => {
expect(response).toEqual({ expect(response).toEqual({
Resources: expect.arrayContaining( Resources: expect.arrayContaining(
groups.map(g => { groups.map(g => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { members, ...groupData } = g const { members, ...groupData } = g
return groupData return groupData
}) })
@ -724,7 +723,6 @@ describe("scim", () => {
expect(response).toEqual({ expect(response).toEqual({
Resources: expect.arrayContaining( Resources: expect.arrayContaining(
groups.map(g => { groups.map(g => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { members, displayName, ...groupData } = g const { members, displayName, ...groupData } = g
return groupData return groupData
}) })
@ -874,7 +872,6 @@ describe("scim", () => {
qs: "excludedAttributes=members", qs: "excludedAttributes=members",
}) })
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { members, ...expectedResponse } = group const { members, ...expectedResponse } = group
expect(response).toEqual(expectedResponse) expect(response).toEqual(expectedResponse)