diff --git a/.eslintrc b/.eslintrc index 2b2d0a580c023..e942b58f34626 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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",