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

💅 useTemplate doesn't report expressions with an interpolated template literal and non-string expressions #1456

Closed
1 task done
n-gude opened this issue Jan 7, 2024 · 1 comment · Fixed by #1206
Closed
1 task done
Assignees
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug

Comments

@n-gude
Copy link
Contributor

n-gude commented Jan 7, 2024

Environment information

N/A

Rule name

useTemplate

Playground link

https://biomejs.dev/playground/?code=LwAvACAARABvAGUAcwBuACcAdAAgAHIAZQBwAG8AcgB0ADoACgBgAGEAJAB7ADEAfQBgACAAKwAgADIAOwAKAAoALwAvACAAVwBoAGkAbABlACAAcgBlAHAAbwByAHQAaQBuAGcAOgAKACIAYQAiACAAKwAgADEAOwAKAGAAYQBgACAAKwAgADEAOwAKAGAAYQAkAHsAMQB9AGAAIAArACAAIgBiACIAOwAKAA%3D%3D

Expected result

The following code should be reported:

`a${1}` + 2;

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@n-gude
Copy link
Contributor Author

n-gude commented Jan 7, 2024

This will be closed by #1206.

@Conaclos Conaclos added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug labels Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug
Projects
None yet
2 participants