Skip to content

Commit 417db73

Browse files
peanutenthusiastauvred
authored andcommitted
docs: add tombstone file for no-parameter-properties and suggested replacements for deprecated rules in v6 (typescript-eslint#8104)
* Add redirection file for no-parameter-peroperties, indicate replacements in 2023-07-09 blog post to announce v6 * Add link for useUnknownInCatchVariables for no-implicit-any-catch's suggested replacement * Add no-parameter-properties.md to ignored files in validating rules docs describe block
1 parent 043f3ec commit 417db73

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
:::danger Deprecated
2+
3+
This rule has been deprecated in favour of the [`parameter-properties`](https://typescript-eslint.io/rules/parameter-properties/) rule.
4+
5+
:::
6+
7+
<!--
8+
This doc file has been left on purpose to help direct people to the replacement rule.
9+
10+
Note that there is no actual way to get to this page in the normal navigation,
11+
so end-users will only be able to get to this page from the search bar.
12+
-->

packages/eslint-plugin/tests/docs.test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ describe('Validating rule docs', () => {
5353
// comments in the files for more information.
5454
'camelcase.md',
5555
'no-duplicate-imports.md',
56+
'no-parameter-properties.md',
5657
]);
5758
it('All rules must have a corresponding rule doc', () => {
5859
const files = fs

packages/website/blog/2023-07-09-announcing-typescript-eslint-v6.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -481,10 +481,10 @@ console.log(
481481
Several rules were changed in significant enough ways to be considered breaking changes:
482482

483483
- Previously deprecated rules are deleted ([chore(eslint-plugin): remove deprecated rules for v6](https://github.com/typescript-eslint/typescript-eslint/pull/6112)):
484-
- `@typescript-eslint/no-duplicate-imports`
485-
- `@typescript-eslint/no-implicit-any-catch`
486-
- `@typescript-eslint/no-parameter-properties`
487-
- `@typescript-eslint/sort-type-union-intersection-members`
484+
- `@typescript-eslint/no-duplicate-imports`, replaced by `imports/no-duplicates`
485+
- `@typescript-eslint/no-implicit-any-catch`, replaced by the TSConfig option [`useUnknownInCatchVariables`](https://www.typescriptlang.org/tsconfig#useUnknownInCatchVariables)
486+
- `@typescript-eslint/no-parameter-properties`, replaced by `@typescript-eslint/parameter-properties`
487+
- `@typescript-eslint/sort-type-union-intersection-members`, replaced by `@typescript-eslint/sort-type-constituents`
488488
- [feat(eslint-plugin): [prefer-nullish-coalescing]: add support for assignment expressions](https://github.com/typescript-eslint/typescript-eslint/pull/5234): Enhances the [`@typescript-eslint/prefer-nullish-coalescing`](https://typescript-eslint.io/prefer-nullish-coalescing) rule to also check `||=` expressions.
489489
- [feat(eslint-plugin): [prefer-optional-chain] use type checking for strict falsiness](https://github.com/typescript-eslint/typescript-eslint/pull/6240): Fixes edge case bugs in the [`@typescript-eslint/prefer-optional-chain`](https://typescript-eslint.io/prefer-optional-chain) rule around false positives, at the cost of making it require type information.
490490
-[feat(eslint-plugin): [restrict-plus-operands] change checkCompoundAssignments to skipCompoundAssignments](https://github.com/typescript-eslint/typescript-eslint/pull/7027): inverses the logical value of the option and renames it

0 commit comments

Comments
 (0)