Skip to content

Commit b2efdb9

Browse files
committed
fix: lint
1 parent fa06ed9 commit b2efdb9

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

packages/api/src/fetcher.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export default class Fetcher {
7171
let url;
7272
try {
7373
url = new URL(uri);
74+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
7475
} catch (err) {
7576
// If that try fails for whatever reason than the URI that we have isn't a real URL and
7677
// we can safely attempt to look for it on the filesystem.

packages/api/src/storage.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export default class Storage {
130130
const file = fs.readFileSync(Storage.getLockfilePath(), 'utf8');
131131
try {
132132
Storage.lockfile = JSON.parse(file) as Lockfile;
133+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
133134
} catch (err) {
134135
// If we can't parse the lock file for whatever reason then it's probably corrupted so we
135136
// should reset it to the default.

packages/core/src/lib/parseResponse.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export default async function parseResponse<HTTPStatus extends number = number>(
1111
if (isJSON) {
1212
try {
1313
data = JSON.parse(responseBody);
14+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1415
} catch (e) {
1516
// If our JSON parsing failed then we can just return plaintext instead.
1617
}

packages/test-utils/vitest.matchers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ interface CustomMatchers<R = unknown> {
2626
}
2727

2828
declare module 'vitest' {
29-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
29+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-empty-object-type
3030
interface Assertion<T = any> extends CustomMatchers<T> {}
31+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
3132
interface AsymmetricMatchersContaining extends CustomMatchers {}
3233
}
3334

0 commit comments

Comments
 (0)