Skip to content

Commit 58438fa

Browse files
committed
fix: fix eslint errors for {}
1 parent 38a6948 commit 58438fa

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.eslintrc

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,10 @@
1313
"ignorePatterns": [
1414
"node_modules/",
1515
"build/",
16-
"lib/",
16+
"lib/**/*",
1717
"tmp/",
18-
"v5-compat.d.ts",
19-
"draft.d.ts",
20-
"script/*.js",
21-
"script/*.d.ts",
2218
"docs/",
2319
"doc-unminified/",
24-
"test/unit/compat/",
2520
"test/bench/"
2621
]
2722
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"format": "run-s format.prettier format.clang-format",
121121
"format.prettier": "prettier -l --cache --cache-location ./.cache/prettier --write .",
122122
"format.clang-format": "clang-format -i -style=file ./src/*.cc ./src/*.h ./src/util/*.h",
123-
"lint-test.eslint": "eslint ./**/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/",
123+
"lint-test.eslint": "eslint './**/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml}' --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/",
124124
"lint.eslint": "pnpm run lint-test.eslint --fix",
125125
"lint.tsc": "tsc --noEmit -p ./src/tsconfig.json",
126126
"lint.tsc-test": "tsc --noEmit -p ./test/tsconfig.json",

src/native.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ export interface EventError<E = ErrnoError> {
187187
* type AllEvents = { type: "bind", address: string }
188188
* ```
189189
*/
190+
// eslint-disable-next-line @typescript-eslint/ban-types
190191
export type EventFor<T extends string, D = {}> = Expand<{type: T} & D>
191192

192193
/**
@@ -530,6 +531,7 @@ export declare abstract class Socket {
530531
* @param type The socket type.
531532
* @param options Any options to set during construction.
532533
*/
534+
// eslint-disable-next-line @typescript-eslint/ban-types
533535
protected constructor(type: SocketType, options?: {})
534536

535537
/**
@@ -737,4 +739,5 @@ export type WritableKeys<T> = {
737739
* ```
738740
* @internal
739741
*/
742+
// eslint-disable-next-line @typescript-eslint/ban-types
740743
export type Options<T, E = {}> = Expand<Partial<E & Pick<T, WritableKeys<T>>>>

0 commit comments

Comments
 (0)