Skip to content

feat(eslint-plugin): remove deprecated no-throw-literal rule #9092

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/eslint-plugin/TSLINT_RULE_ALTERNATIVES.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ It lists all TSLint rules along side rules from the ESLint ecosystem that are th
| [`no-shadowed-variable`] | 🌟 | [`no-shadow`][no-shadow] |
| [`no-sparse-arrays`] | 🌟 | [`no-sparse-arrays`][no-sparse-arrays] |
| [`no-string-literal`] | 🌟 | [`dot-notation`][dot-notation] |
| [`no-string-throw`] | ✅ | [`@typescript-eslint/no-throw-literal`] |
| [`no-string-throw`] | ✅ | [`@typescript-eslint/only-throw-literal`] |
| [`no-submodule-imports`] | 🌓 | [`import/no-internal-modules`] (slightly different) |
| [`no-switch-case-fall-through`] | 🌟 | [`no-fallthrough`][no-fallthrough] |
| [`no-tautology-expression`] | 🛑 | N/A |
Expand Down Expand Up @@ -622,7 +622,7 @@ Relevant plugins: [`chai-expect-keywords`](https://github.com/gavinaiken/eslint-
[`@typescript-eslint/no-unnecessary-boolean-literal-compare`]: https://typescript-eslint.io/rules/no-unnecessary-boolean-literal-compare
[`@typescript-eslint/no-misused-new`]: https://typescript-eslint.io/rules/no-misused-new
[`@typescript-eslint/no-this-alias`]: https://typescript-eslint.io/rules/no-this-alias
[`@typescript-eslint/no-throw-literal`]: https://typescript-eslint.io/rules/no-throw-literal
[`@typescript-eslint/only-throw-literal`]: https://typescript-eslint.io/rules/only-throw-literal
[`@typescript-eslint/no-extraneous-class`]: https://typescript-eslint.io/rules/no-extraneous-class
[`@typescript-eslint/no-unused-vars`]: https://typescript-eslint.io/rules/no-unused-vars
[`@typescript-eslint/no-use-before-define`]: https://typescript-eslint.io/rules/no-use-before-define
Expand Down
25 changes: 0 additions & 25 deletions packages/eslint-plugin/docs/rules/no-throw-literal.mdx

This file was deleted.

1 change: 0 additions & 1 deletion packages/eslint-plugin/src/configs/disable-type-checked.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export = {
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/no-mixed-enums': 'off',
'@typescript-eslint/no-redundant-type-constituents': 'off',
'@typescript-eslint/no-throw-literal': 'off',
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'off',
'@typescript-eslint/no-unnecessary-condition': 'off',
'@typescript-eslint/no-unnecessary-qualifier': 'off',
Expand Down
2 changes: 0 additions & 2 deletions packages/eslint-plugin/src/rules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ import noRequireImports from './no-require-imports';
import noRestrictedImports from './no-restricted-imports';
import noShadow from './no-shadow';
import noThisAlias from './no-this-alias';
import noThrowLiteral from './no-throw-literal';
import noTypeAlias from './no-type-alias';
import noUnnecessaryBooleanLiteralCompare from './no-unnecessary-boolean-literal-compare';
import noUnnecessaryCondition from './no-unnecessary-condition';
Expand Down Expand Up @@ -189,7 +188,6 @@ export default {
'no-restricted-imports': noRestrictedImports,
'no-shadow': noShadow,
'no-this-alias': noThisAlias,
'no-throw-literal': noThrowLiteral,
'no-type-alias': noTypeAlias,
'no-unnecessary-boolean-literal-compare': noUnnecessaryBooleanLiteralCompare,
'no-unnecessary-condition': noUnnecessaryCondition,
Expand Down
99 changes: 0 additions & 99 deletions packages/eslint-plugin/src/rules/no-throw-literal.ts

This file was deleted.

This file was deleted.

Loading
Loading