1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 14:48:08 +02:00

Enable the unicorn/throw-new-error linting rule

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.
This commit is contained in:
Tim van der Meij 2024-08-06 18:36:25 +02:00
parent ad95df2214
commit 318433b2d8
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762

View file

@ -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",