Skip to content

minor: better type safety and best practice to escape function #16579

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 3 commits into from
Feb 17, 2025

Conversation

soranoo
Copy link
Contributor

@soranoo soranoo commented Feb 16, 2025

Hello,

This PR aims to improve type safety and adhere to best practices for the selector escape function.

  • Replaces var with const or let for better scoping and readability.

@soranoo soranoo requested a review from a team as a code owner February 16, 2025 13:28
Copy link
Member

@philipp-spiess philipp-spiess left a comment

Choose a reason for hiding this comment

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

Hey! Thanks we don't usually take these kind of contributions since the risk of adding errors outweighs the style changes but it did seem unnecessary to me that we have escape(…) duplicated for our integration test setups so I decided to make some adjustments and land this. Thank you!

@philipp-spiess philipp-spiess merged commit 1c905f2 into tailwindlabs:main Feb 17, 2025
5 checks passed
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.

2 participants