Skip to content

Commit 8569c4d

Browse files
committed
chore(linting): linting updates
1 parent 1ef9e1a commit 8569c4d

13 files changed

Lines changed: 11 additions & 26 deletions

File tree

src/assertion/assertIsFunction.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/ban-types */
21
import { isFunction } from '../predicate/isFunction.js';
32

43
import { getError } from './getError.js';

src/describeInput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const describeInput = (input: unknown): string => {
2929
const url = new URL(input);
3030

3131
return `${url.protocol.replace(':', '')} URL${url.username || url.password ? ' with credentials' : ''}`;
32-
} catch (error) {
32+
} catch {
3333
return 'Invalid URL';
3434
}
3535
}

src/predicate/factory/shape.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/ban-types */
21
import { hasAdditionalProperties } from '../../hasAdditionalProperties.js';
32
import { isAnyObject } from '../isAnyObject.js';
43

src/predicate/factory/simple.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/ban-types */
21
import type { InferPredicateReturnType, TypePredicateFn } from '../../types/functions.js';
32

43
export type Simple<Type> = Type extends string

src/predicate/isFunction.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
/* eslint-disable @typescript-eslint/ban-types */
21
export const isFunction = (input: unknown): input is Function => typeof input === 'function';

src/redactCredentialsInURL.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const redactCredentialsInURL = (
2121
}
2222

2323
return url.toString();
24-
} catch (error) {
24+
} catch {
2525
return String(input);
2626
}
2727
};

src/types/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @typescript-eslint/no-explicit-any,@typescript-eslint/ban-types */
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
22

33
import type { NotPromise } from './utils.js';
44

src/types/objects.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ export type NonNullableProperties<Type> = {
2323
* Return a type containing all method names
2424
*/
2525
export type MethodNames<Type, Key extends keyof Type = keyof Type> = Key extends PropertyKey
26-
? // eslint-disable-next-line @typescript-eslint/ban-types
27-
Type[Key] extends Function
26+
? Type[Key] extends Function
2827
? Key
2928
: never
3029
: never;

src/types/strings.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { Digit } from './numbers.js';
22

3-
// eslint-disable-next-line @typescript-eslint/ban-types
43
export type AutoCompletableString = string & {};
54

65
export type EmptyString = '';

src/types/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types */
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
22

33
export type IfNever<Type, T, F> = [Type] extends [never] ? T : F;
44

0 commit comments

Comments
 (0)