Skip to content

Commit

Permalink
Enable the unicorn/throw-new-error linting rule
Browse files Browse the repository at this point in the history
For more information refer to
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/throw-new-error.md.

This didn't require any changes because we already do this correctly,
but it ensures that new code remains consistent and explicit.
  • Loading branch information
timvandermeij committed Aug 8, 2024
1 parent ad95df2 commit 318433b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"unicorn/prefer-string-replace-all": "error",
"unicorn/prefer-string-starts-ends-with": "error",
"unicorn/prefer-ternary": ["error", "only-single-line"],
"unicorn/throw-new-error": "error",

// Possible errors
"for-direction": "error",
Expand Down

0 comments on commit 318433b

Please sign in to comment.