-
Notifications
You must be signed in to change notification settings - Fork 7
Start migrating rules away from counter system #57
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
Conversation
@@ -55,7 +55,7 @@ linters: | |||
|
|||
## Rules | |||
|
|||
- [GitHub::Accessibility::AvoidBothDisabledAndAriaDisabledCounter](./docs/rules/accessibility/avoid-both-disabled-and-aria-disabled-counter.md) | |||
- [GitHub::Accessibility::AvoidBothDisabledAndAriaDisabledCounter](./docs/rules/accessibility/avoid-both-disabled-and-aria-disabled.md) |
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.
I will remove Counter
from names in the README right before we cut release, for alignment with current version.
@jonrohan what do you think of this counter deprecation approach? could it work for PVC too? update: chatted in person and on board! |
👋 Hello and thanks for pinging us! An accessibility first responder will review this soon.
|
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.
Excited for this change!
Relates to: #56
This PR starts prepping for deprecation of the counter system which we've used as a way to get around lack of support for inline disables. This is no longer necessary with the latest ERB version which now offers inline disable support.
This PR renames
AvoidBothDisabledAndAriaDisabledCounter
to beAvoidBothDisabledAndAriaDisabled
, deprecating the counter from the name.The to-be-deprecated counter system will continue to work if it's configured explicitly, so existing counter comments shouldn't break. Basically if ERBLint config is:
The existing counter comments shouldn't break. We will default to counter system off. We can keep them enabled and turn them off as we migrate each rule.
This PR adds a doc which we will be surfaced during the new release which instructs how to migrate away from counters.
Preview migration doc 🔍 . I am hoping we can also include a script to ease this migration for our release.
If this approach seems fine, I plan to follow-up with every other rule to prep for migration internally.