diff --git a/.eslintrc.js b/.eslintrc.js index 1b3006accab..e683361378d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -142,6 +142,7 @@ module.exports = { '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));