Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
docs: add Rule Deprecations page#6156
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
JoshuaKGoldberg merged 2 commits intotypescript-eslint:mainfromJoshuaKGoldberg:docs-rule-deprecationsDec 7, 2022
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
2 commits Select commitHold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
1 change: 0 additions & 1 deletiondocs/maintenance/ISSUES.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| --- | ||
| id: issues | ||
| title: Issues | ||
| --- | ||
34 changes: 34 additions & 0 deletionsdocs/maintenance/issues/Rule_Deprecations.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| --- | ||
| id: rule-deprecations | ||
| title: Rule Deprecations | ||
| --- | ||
| Sometimes a rule that used to be 👍 does not age well and becomes 👎. | ||
| In the past, these cases have included: | ||
| - Overly opinionated and/or stylistic rules that don't represent a universal best practice | ||
| - Renames | ||
| - Rules moved to an external plugin | ||
| In these cases, we aim to remove the old rule with minimal user disruption. | ||
| ## Filing the Issue | ||
| Rule deprecations can be filed as a [new issue bypassing templates](https://github.com/typescript-eslint/typescript-eslint/issues/new). | ||
| Provide it an `## Overview` containing: | ||
| - The rule name & link to its documentation page | ||
| - A clear explanation of why you believe it should be deprecated | ||
| - Whether it exists in popular configs such as `eslint-config-airbnb-typescript` and `eslint-config-standard-with-typescript` | ||
| - Sourcegraph queries showing how often it appears in user configs | ||
| > See [#6036](https://github.com/typescript-eslint/typescript-eslint/issues/6036) for examples of those links and queries. | ||
| ## Timeline | ||
| 1. In any minor/patch version, add [rule `meta` properties](https://eslint.org/docs/latest/developer-guide/working-with-rules#rule-basics): | ||
| - `deprecated: true` | ||
| - `replacedBy`, if applicable | ||
| 2. In the next major version, you may delete the rule | ||
| - If the rule is relatively popular with users, consider leaving a documentation page as a tombstone pointing to the new relevant rule or docs (see [`camelcase`](https://typescript-eslint.io/rules/camelcase/) as an example) |
11 changes: 10 additions & 1 deletionpackages/website/sidebars/sidebar.base.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.