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) {