Skip to content

Commit 7865a55

Browse files
docs: fix typo for only-throw-error rule (typescript-eslint#10018)
1 parent 385bedb commit 7865a55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/eslint-plugin/TSLINT_RULE_ALTERNATIVES.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ It lists all TSLint rules along side rules from the ESLint ecosystem that are th
8585
| [`no-shadowed-variable`] | 🌟 | [`no-shadow`][no-shadow] |
8686
| [`no-sparse-arrays`] | 🌟 | [`no-sparse-arrays`][no-sparse-arrays] |
8787
| [`no-string-literal`] | 🌟 | [`dot-notation`][dot-notation] |
88-
| [`no-string-throw`] || [`@typescript-eslint/only-throw-literal`] |
88+
| [`no-string-throw`] || [`@typescript-eslint/only-throw-error`] |
8989
| [`no-submodule-imports`] | 🌓 | [`import/no-internal-modules`] (slightly different) |
9090
| [`no-switch-case-fall-through`] | 🌟 | [`no-fallthrough`][no-fallthrough] |
9191
| [`no-tautology-expression`] | 🛑 | N/A |
@@ -622,7 +622,7 @@ Relevant plugins: [`chai-expect-keywords`](https://github.com/gavinaiken/eslint-
622622
[`@typescript-eslint/no-unnecessary-boolean-literal-compare`]: https://typescript-eslint.io/rules/no-unnecessary-boolean-literal-compare
623623
[`@typescript-eslint/no-misused-new`]: https://typescript-eslint.io/rules/no-misused-new
624624
[`@typescript-eslint/no-this-alias`]: https://typescript-eslint.io/rules/no-this-alias
625-
[`@typescript-eslint/only-throw-literal`]: https://typescript-eslint.io/rules/only-throw-literal
625+
[`@typescript-eslint/only-throw-error`]: https://typescript-eslint.io/rules/only-throw-error
626626
[`@typescript-eslint/no-extraneous-class`]: https://typescript-eslint.io/rules/no-extraneous-class
627627
[`@typescript-eslint/no-unused-vars`]: https://typescript-eslint.io/rules/no-unused-vars
628628
[`@typescript-eslint/no-use-before-define`]: https://typescript-eslint.io/rules/no-use-before-define

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy