From 69a12611dda635a71113f437ccf23758620857bb Mon Sep 17 00:00:00 2001 From: Daniel Nalborczyk Date: Wed, 20 Sep 2023 10:32:17 -0400 Subject: [PATCH] refactor: re-activate unicorn/no-array-push-push --- .eslintrc.cjs | 1 - src/ServerlessOffline.js | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 22f6748cd..d6fd06282 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -65,7 +65,6 @@ module.exports = { 'unicorn/no-abusive-eslint-disable': 'off', 'unicorn/no-array-callback-reference': 'off', 'unicorn/no-array-for-each': 'off', - 'unicorn/no-array-push-push': 'off', 'unicorn/no-array-reduce': 'off', 'unicorn/no-await-expression-member': 'off', 'unicorn/no-lonely-if': 'off', diff --git a/src/ServerlessOffline.js b/src/ServerlessOffline.js index a46478269..9ba15f8d5 100644 --- a/src/ServerlessOffline.js +++ b/src/ServerlessOffline.js @@ -107,8 +107,10 @@ export default class ServerlessOffline { const eventModules = [] if (this.#lambda) { - eventModules.push(this.#lambda.cleanup()) - eventModules.push(this.#lambda.stop(SERVER_SHUTDOWN_TIMEOUT)) + eventModules.push( + this.#lambda.cleanup(), + this.#lambda.stop(SERVER_SHUTDOWN_TIMEOUT), + ) } if (this.#alb) {