Skip to content

Commit 2132240

Browse files
committed
chore: remove eslintConfig from package.json
1 parent 32ef3d6 commit 2132240

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

lib/socket.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ internals.Socket.prototype._onMessage = async function (message) {
237237
try {
238238
var request = JSON.parse(message);
239239
}
240-
catch (err) {
240+
catch {
241241
return this._error(Boom.badRequest('Cannot parse message'));
242242
}
243243

@@ -563,7 +563,7 @@ internals.Socket.prototype._authenticate = async function (request) {
563563
const auth = await Iron.unseal(request.auth, config.password, config.iron ?? Iron.defaults);
564564
this._setCredentials(auth);
565565
}
566-
catch (err) {
566+
catch {
567567
throw Boom.unauthorized('Invalid token');
568568
}
569569
}
@@ -585,7 +585,7 @@ internals.Socket.prototype._authByCookie = async function () {
585585
try {
586586
var { states } = await this.server.states.parse(cookies);
587587
}
588-
catch (err) {
588+
catch {
589589
throw Boom.unauthorized('Invalid nes authentication cookie');
590590
}
591591

package.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
"plugin",
1717
"websocket"
1818
],
19-
"eslintConfig": {
20-
"extends": [
21-
"plugin:@hapi/module"
22-
]
23-
},
2419
"dependencies": {
2520
"@hapi/boom": "^10.0.1",
2621
"@hapi/bounce": "^3.0.1",
@@ -34,9 +29,9 @@
3429
},
3530
"devDependencies": {
3631
"@hapi/code": "^9.0.3",
37-
"@hapi/eslint-plugin": "*",
32+
"@hapi/eslint-plugin": "^7.0.0",
3833
"@hapi/hapi": "^21.3.9",
39-
"@hapi/lab": "^25.2.0",
34+
"@hapi/lab": "^26.0.0",
4035
"@types/node": "^20.14.2",
4136
"joi": "^17.13.3",
4237
"typescript": "^5.4.5"

0 commit comments

Comments
 (0)