Skip to content

Commit

Permalink
chore: remove eslintConfig from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Marsup committed Oct 23, 2024
1 parent 32ef3d6 commit 2132240
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions lib/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ internals.Socket.prototype._onMessage = async function (message) {
try {
var request = JSON.parse(message);
}
catch (err) {
catch {
return this._error(Boom.badRequest('Cannot parse message'));
}

Expand Down Expand Up @@ -563,7 +563,7 @@ internals.Socket.prototype._authenticate = async function (request) {
const auth = await Iron.unseal(request.auth, config.password, config.iron ?? Iron.defaults);
this._setCredentials(auth);
}
catch (err) {
catch {
throw Boom.unauthorized('Invalid token');
}
}
Expand All @@ -585,7 +585,7 @@ internals.Socket.prototype._authByCookie = async function () {
try {
var { states } = await this.server.states.parse(cookies);
}
catch (err) {
catch {
throw Boom.unauthorized('Invalid nes authentication cookie');
}

Expand Down
9 changes: 2 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
"plugin",
"websocket"
],
"eslintConfig": {
"extends": [
"plugin:@hapi/module"
]
},
"dependencies": {
"@hapi/boom": "^10.0.1",
"@hapi/bounce": "^3.0.1",
Expand All @@ -34,9 +29,9 @@
},
"devDependencies": {
"@hapi/code": "^9.0.3",
"@hapi/eslint-plugin": "*",
"@hapi/eslint-plugin": "^7.0.0",
"@hapi/hapi": "^21.3.9",
"@hapi/lab": "^25.2.0",
"@hapi/lab": "^26.0.0",
"@types/node": "^20.14.2",
"joi": "^17.13.3",
"typescript": "^5.4.5"
Expand Down

0 comments on commit 2132240

Please sign in to comment.