-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
docs: mark rules that are frozen on rules index page #11467
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
base: main
Are you sure you want to change the base?
Conversation
Thanks for the PR, @nayounsang! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. |
✅ Deploy Preview for typescript-eslint ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
View your CI Pipeline Execution ↗ for commit a004167
☁️ Nx Cloud last updated this comment at |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11467 +/- ##
=======================================
Coverage 90.88% 90.88%
=======================================
Files 505 505
Lines 51125 51132 +7
Branches 8415 8415
=======================================
+ Hits 46463 46470 +7
Misses 4648 4648
Partials 14 14
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
/** | ||
* Mark this rule as frozen. | ||
*/ | ||
frozen?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we decide where to put the description of frozen, can link it here too.
|
||
## Frozen Rules | ||
|
||
When rules are feature complete, they are marked as frozen (indicated with ❄️ in the documentation). This applies to standalone rules that are complete, as well as [extension rules](#extension-rules) whose underlying core ESLint rules are frozen. After that point, we expect users to use [disable comments](https://eslint.org/docs/latest/use/configure/rules#using-configuration-comments-1) when they find an edge case that isn’t covered. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is slightly different from the ESLint's.
I don't quite understand the 80% policy, so I added a line that says the dependent ESLint rule is frozen.
However, my English isn't very good, so I'm not sure if the meaning is natural.
PR Checklist
Overview
frozen
property in meta data of rule.We can determine if something is frozen by
deprecated.availableUntil === null
, but I don't like this property, so I add new property:docs.frozen
.deprecated
can be boolean(truthy) or object(truthy). Additional conditions are needed to distinguish between the two.availableUntil
can be undefined or null. Adding unnecessary comments to bypass the eqeqeq lint ruleTODO