Skip to content

Commit 7877887

Browse files
committed
chore: lint
1 parent aa548e9 commit 7877887

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/fetch-mock/src/IsSubsetOf.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
12
/** Copied from deprecated https://www.npmjs.com/package/is-subset-of **/
23
import { Type } from './TypeDescriptor.js';
34

packages/fetch-mock/src/TypeDescriptor.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-function-type */
2+
/** Copied from deprecated https://www.npmjs.com/package/typedescriptor **/
13
const valueTypes = new Set([
24
'boolean',
35
'number',
@@ -96,7 +98,6 @@ class TypeDescriptor {
9698
return valueTypes.has(TypeDescriptor.of(value));
9799
}
98100

99-
// eslint-disable-next-line @typescript-eslint/ban-types
100101
public static isReferenceType(
101102
value: any,
102103
): value is any[] | Function | object | symbol {
@@ -111,7 +112,6 @@ class TypeDescriptor {
111112
return TypeDescriptor.of(value) === 'boolean';
112113
}
113114

114-
// eslint-disable-next-line @typescript-eslint/ban-types
115115
public static isFunction(value: any): value is Function {
116116
return TypeDescriptor.of(value) === 'function';
117117
}
@@ -124,7 +124,6 @@ class TypeDescriptor {
124124
return TypeDescriptor.of(value) === 'number';
125125
}
126126

127-
// eslint-disable-next-line @typescript-eslint/ban-types
128127
public static isObject(value: any): value is object {
129128
return TypeDescriptor.of(value) === 'object';
130129
}

0 commit comments

Comments
 (0)