Skip to content

Commit

Permalink
chore(deps): update dependency eslint-plugin-unicorn to v47 (#5002)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency eslint-plugin-unicorn to v47

* Fix lint errors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Lukas Taegert-Atkinson <lukas.taegert-atkinson@tngtech.com>
  • Loading branch information
renovate[bot] and lukastaegert committed May 20, 2023
1 parent 101628e commit 25dbb3e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 26 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.js
Expand Up @@ -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'
}
};
50 changes: 25 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -105,7 +105,7 @@
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-unicorn": "^46.0.0",
"eslint-plugin-unicorn": "^47.0.0",
"eslint-plugin-vue": "^9.11.0",
"fixturify": "^3.0.0",
"flru": "^1.0.2",
Expand Down
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 25dbb3e

Please sign in to comment.