Skip to content

Commit 29645b2

Browse files
committed
fix: relax the tsc rules for the unused variables
1 parent 43f3704 commit 29645b2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

test/unit/socket-stream-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ for (const proto of testProtos("tcp")) {
6565
const port = parseInt(address.split(":").pop()!, 10)
6666

6767
const server = await new Promise<Server>(resolve => {
68-
const http = createServer((req, res) => {
68+
const http = createServer((_req, res) => {
6969
res.writeHead(200, {
7070
"Content-Type": "text/plain",
7171
"Content-Length": 12,

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
"noImplicitAny": true,
1515
"noImplicitReturns": true,
1616
"noImplicitThis": true,
17-
"noUnusedLocals": true,
18-
"noUnusedParameters": true,
17+
// eslint already warns about:
18+
"noUnusedLocals": false,
19+
"noUnusedParameters": false,
1920
"incremental": true,
2021
"sourceMap": true,
2122
"lib": [

0 commit comments

Comments
 (0)