Skip to content

Commit

Permalink
feat!: update eslint-plugin-unicorn to v47
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed May 9, 2023
1 parent 4cf172e commit 328526a
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 59 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Instead of simply extending `@voxpelli` you can extend `@voxpelli/eslint-config/
* :wrench: [`unicorn/catch-error-name`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/catch-error-name.md)*changed* – I prefer `err` over `error` as I find `error`to be a far too similar name to the built in `Error` class
* :mute: [`unicorn/explicit-length-check`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/explicit-length-check.md)*deactivated* – I don't see an issue with `if (string.length)` instead of `if (string.length !== 0)`
* :warning: [`unicorn/unicorn/no-await-expression-member`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/unicorn/no-await-expression-member.md)*changed* – eg. useful in chai tests
* :warning: [`unicorn/unicorn/no-negated-condition`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/unicorn/no-negated-condition.md)*changed* – set to `warn` instead of `error`
* :mute: [`unicorn/numeric-separators-style`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/numeric-separators-style.md)*deactivated* – currently not enough good support for this in engines
* :warning: [`unicorn/prefer-add-event-listener`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-add-event-listener.md)*changed* – set to `warn` instead of `error`
* :warning: [`unicorn/prefer-event-target`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules//prefer-event-target.md)*changed* – set to `warn` instead of `error`
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ module.exports = {
'unicorn/catch-error-name': ['error', { name: 'err', ignore: ['^cause$'] }],
'unicorn/explicit-length-check': 'off',
'unicorn/no-await-expression-member': 'warn',
'unicorn/no-negated-condition': 'warn',
'unicorn/numeric-separators-style': 'off',
'unicorn/prefer-add-event-listener': 'warn',
'unicorn/prefer-event-target': 'warn',
Expand Down
193 changes: 137 additions & 56 deletions package-lock.json

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

Loading

0 comments on commit 328526a

Please sign in to comment.