Skip to content

Conversation

@fisker
Copy link
Collaborator

@fisker fisker commented Sep 6, 2025

Ref: #2709 (comment)

Closes #2709

@fisker
Copy link
Collaborator Author

fisker commented Sep 6, 2025

Main changes are 9b92a53 (#2732) and 0af12a9 (#2732)

@fisker fisker marked this pull request as ready for review September 6, 2025 02:15
@fisker fisker changed the title prefer-classlist-toggle: omit Element#classLIst.contains() call when fixing prefer-classlist-toggle: omit Element#classList.contains() call when fixing Sep 6, 2025
@fisker fisker marked this pull request as draft September 6, 2025 02:18
@fisker fisker marked this pull request as ready for review September 6, 2025 02:37
@fisker
Copy link
Collaborator Author

fisker commented Sep 6, 2025

Please release a patch after merge, it should be common to check the class name existence as a condition.

@sindresorhus sindresorhus merged commit 066f96b into sindresorhus:main Sep 6, 2025
18 checks passed
@fisker fisker deleted the prefer-classlist-toggle-contains branch September 6, 2025 07:58
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.

Rule proposal: prefer-classlist-toggle

2 participants