Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed May 20, 2023
1 parent 9c7bcef commit 86e98bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Expand Up @@ -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'
}
};
1 change: 1 addition & 0 deletions src/utils/hookActions.ts
Expand Up @@ -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));
Expand Down

0 comments on commit 86e98bf

Please sign in to comment.