Skip to content
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

chore: avoid backticks without template in strings #12328

merged 1 commit into from Feb 8, 2022


Copy link

@SimenB SimenB commented Feb 8, 2022


There's a bit of cognitive overhead when seeing a backtick ` in a string literal when there's no interpolation happening. This lint rule autofixes to ' (or " if there is a ' inside the string).

Note that we cannot use single quotes in snapshots, so any md file is excluded. Inline snapshots as well (only an issue if it's a single line. But snapshots on a single line shouldn't be snapshots)

Test plan

Green CI

@SimenB SimenB merged commit 506a062 into jestjs:main Feb 8, 2022
@SimenB SimenB deleted the avoid-backticks branch February 8, 2022 08:18
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants