From b955a17c79eab78998e7962720a524d254ef23ee Mon Sep 17 00:00:00 2001 From: Lukas Taegert-Atkinson Date: Sat, 20 May 2023 21:36:17 +0200 Subject: [PATCH] Fix lint errors --- .eslintrc.js | 2 ++ src/utils/hookActions.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 1b3006accab..152ef87f382 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -139,9 +139,11 @@ module.exports = { 'unicorn/no-null': 'off', 'unicorn/no-this-assignment': 'off', 'unicorn/no-useless-undefined': 'off', + 'unicorn/prefer-at': 'off', 'unicorn/prefer-code-point': 'off', 'unicorn/prefer-math-trunc': 'off', 'unicorn/prefer-number-properties': 'off', + 'unicorn/prefer-string-replace-all': 'off', 'unicorn/prefer-top-level-await': 'off' } }; diff --git a/src/utils/hookActions.ts b/src/utils/hookActions.ts index 20615009f76..ef07992eb9d 100644 --- a/src/utils/hookActions.ts +++ b/src/utils/hookActions.ts @@ -28,6 +28,7 @@ function formatAction([pluginName, hookName, parameters]: HookAction): string { // We do not directly listen on process to avoid max listeners warnings for // complicated build processes const beforeExitEvent = 'beforeExit'; +// eslint-disable-next-line unicorn/prefer-event-target const beforeExitEmitter = new EventEmitter(); beforeExitEmitter.setMaxListeners(0); process.on(beforeExitEvent, () => beforeExitEmitter.emit(beforeExitEvent));