Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Suggest adding native disable instead of counter #61

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
Apr 3, 2023

Conversation

khiga8
Copy link
Collaborator

@khiga8 khiga8 commented Apr 3, 2023

When the counter config is enabled, if there is no existing counter comment, let's suggest using erblint:disable and link to the docs to add inline disable natively, rather than suggesting adding a counter comment which is facing deprecation, now that we got inline disable support natively into erblint.

This PR additionally cleans up an unused method.

@khiga8 khiga8 requested a review from a team as a code owner April 3, 2023 19:00
@khiga8 khiga8 requested a review from accessibility-bot April 3, 2023 19:00
@accessibility-bot
Copy link

👋 Hello and thanks for pinging us! An accessibility first responder will review this soon.

  • 💻 On PRs for our review: please provide a review environment with steps to validate, screenshots (with alt text), or videos demonstrating functionality we should be checking. This will help speed up our review and feedback cycle.
  • ⚠️ If this is urgent, please visit us in #accessibility on Slack and tag the first responder(s) listed in the channel topic.

@@ -8,24 +8,6 @@ module Linters
module CustomHelpers
INTERACTIVE_ELEMENTS = %w[button summary input select textarea a].freeze

def rule_disabled?(processed_source)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused!

@khiga8 khiga8 merged commit d76204f into main Apr 3, 2023
@khiga8 khiga8 deleted the kh-warn-if-counter-used branch April 3, 2023 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants