Skip to content

Commit d00af4e

Browse files
committed
lint
1 parent d7c74e9 commit d00af4e

File tree

3 files changed

+7
-18
lines changed

3 files changed

+7
-18
lines changed

test/tsconfig.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
{
22
"extends": "../tsconfig.json",
3-
"include": [
4-
"**/*.ts"
5-
],
3+
"include": ["**/*.ts"],
64
"compilerOptions": {
7-
"types": [
8-
"mocha"
9-
],
10-
"lib": [
11-
"ESNext",
12-
]
5+
"types": ["mocha"],
6+
"lib": ["ESNext"]
137
}
148
}

test/unit/socket-close-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ for (const proto of testProtos("tcp", "ipc", "inproc")) {
113113
let weakRef: undefined | WeakRef<any>
114114

115115
const task = async () => {
116-
let context: zmq.Context | undefined = new zmq.Context()
116+
const context: zmq.Context | undefined = new zmq.Context()
117117
const socket = new zmq.Dealer({context, linger: 0})
118118
weakRef = new WeakRef(context)
119119

tsconfig.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
"target": "es2020",
55
"declaration": true,
66
"module": "commonjs",
7-
"types": [
8-
"node",
9-
],
7+
"types": ["node"],
108
"strictPropertyInitialization": false, // TODO
119
"strict": true,
1210
"strictNullChecks": true,
@@ -19,9 +17,6 @@
1917
"incremental": true,
2018
"sourceMap": true,
2119
"esModuleInterop": true,
22-
"lib": [
23-
"ES2022",
24-
"dom"
25-
]
20+
"lib": ["ES2022", "dom"]
2621
}
27-
}
22+
}

0 commit comments

Comments
 (0)