Skip to content

Commit

Permalink
build(eslint): disable rule @typescript-eslint/only-throw-error
Browse files Browse the repository at this point in the history
Having the rule enabled results in false positives for Error-like objects/subclasses. For example, the rule flagged the throwing of `StripeError` in `StripePaymentInput`.
  • Loading branch information
trevor-anderson committed Mar 26, 2024
1 parent 6f898a0 commit 193a20a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export default [
// `...props` is too common to enable ignoreRestSiblings in this project
},
],
"@typescript-eslint/only-throw-error": "off", // <-- rule results in false positives for Error-like objects/subclasses
"@typescript-eslint/prefer-includes": "off",
"@typescript-eslint/prefer-nullish-coalescing": [
"error",
Expand Down

0 comments on commit 193a20a

Please sign in to comment.