Skip to content

Commit d15f5bf

Browse files
committed
-eslint
1 parent 9a6805e commit d15f5bf

10 files changed

Lines changed: 0 additions & 25 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@ on:
99
- '*'
1010

1111
jobs:
12-
eslint:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v4
16-
- uses: actions/setup-node@v4
17-
with:
18-
node-version: 22
19-
- run: corepack yarn
20-
- run: corepack yarn lint:js
21-
2212
pack:
2313
runs-on: ubuntu-latest
2414
steps:
@@ -96,7 +86,6 @@ jobs:
9686
release:
9787
runs-on: ubuntu-latest
9888
needs:
99-
- eslint
10089
- pack
10190
- biome
10291
- typescript

examples/credentials.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable max-len */
21
// Run this file as:
32
//
43
// env TRANSLOADIT_KEY=xxx TRANSLOADIT_SECRET=yyy node template_api.js

examples/fetch_costs_of_all_assemblies_in_timeframe.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ do {
3838

3939
await pMap(
4040
items,
41-
// eslint-disable-next-line no-loop-func
4241
async (assembly) => {
4342
const assemblyFull = await transloadit.getAssembly(assembly.id)
4443
// console.log(assemblyFull.assembly_id)

src/PaginationStream.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Readable } from 'node:stream'
22
import type { PaginationList, PaginationListWithCount } from './apiTypes.js'
33

4-
// eslint-disable-next-line no-unused-vars
54
type FetchPage<T> = (
65
pageno: number,
76
) =>

src/Transloadit.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ export class Transloadit {
258258

259259
await pMap(
260260
Object.entries(files),
261-
// eslint-disable-next-line no-bitwise
262261
async ([, path]) => access(path, constants.F_OK | constants.R_OK),
263262
{ concurrency: 5 },
264263
)
@@ -357,7 +356,6 @@ export class Transloadit {
357356
): Promise<AssemblyStatus> {
358357
assert.ok(assemblyId)
359358

360-
// eslint-disable-next-line no-constant-condition
361359
while (true) {
362360
const result = await this.getAssembly(assemblyId)
363361

@@ -401,7 +399,6 @@ export class Transloadit {
401399
throw err
402400
}
403401

404-
// eslint-disable-next-line no-console
405402
console.error(
406403
`---\nPlease report this error to Transloadit (support@transloadit.com). We are working on better schemas for our API and this looks like something we do not cover yet: \n\n${err}\nThank you in advance!\n---\n`,
407404
)
@@ -813,7 +810,6 @@ export class Transloadit {
813810
}
814811

815812
// We want to mock this method
816-
// eslint-disable-next-line class-methods-use-this
817813
private _getExpiresDate(): string {
818814
const expiresDate = new Date()
819815
expiresDate.setDate(expiresDate.getDate() + 1)

src/alphalib/zodParseWithContext.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export function zodParseWithContext<T extends z.ZodType>(
4343
Object.keys(obj).length === 0 &&
4444
zodRes.error.errors.length > 0
4545
) {
46-
// eslint-disable-next-line no-console
4746
// console.log('[zodParseWithContext] Empty object detected, Zod errors:', JSON.stringify(zodRes.error.errors, null, 2));
4847

4948
const firstError = zodRes.error.errors[0]
@@ -232,7 +231,6 @@ export function zodParseWithContext<T extends z.ZodType>(
232231
switch (zodIssue.code) {
233232
case 'invalid_type': {
234233
received = zodIssue.received === 'undefined' ? 'missing' : zodIssue.received
235-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
236234
const actualValue = getByPath(obj, path) as any
237235
const actualValueStr =
238236
typeof actualValue === 'object' && actualValue !== null

test/integration/live-api.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,6 @@ describe('API integration', { timeout: 60000 }, () => {
481481
const ret = await client.awaitAssemblyCompletion(nn(id, 'assembly_id'))
482482
return ret
483483
} catch (err) {
484-
// eslint-disable-next-line no-console
485484
console.error(err)
486485
return null
487486
}

test/testserver.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ export async function createTestServer(onRequest: RequestListener) {
8282

8383
log('Waiting for tunnel to allow requests to pass through')
8484

85-
// eslint-disable-next-line no-inner-declarations
8685
async function sendTunnelRequest() {
8786
// try connecting to the tunnel and resolve when connection successfully passed through
8887
for (let i = 0; i < 10; i += 1) {

test/util.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
import { RequestError, type Transloadit } from '../src/Transloadit.js'
22

3-
// eslint-disable-next-line import/prefer-default-export
43
export const createProxy = (transloaditInstance: Transloadit) => {
54
return new Proxy(transloaditInstance, {
65
get(target, propKey) {
76
// @ts-expect-error I dunno how to type
87
const origMethod = target[propKey]
98
if (typeof origMethod === 'function') {
10-
// eslint-disable-next-line func-names
119
return (...args: unknown[]) => {
1210
const result = origMethod.apply(target, args)
1311

vitest.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// eslint-disable-next-line import/no-unresolved
21
import { defineConfig } from 'vitest/config'
32

43
export default defineConfig({

0 commit comments

Comments
 (0)