Open JulienWilhelm opened 11 months ago
Hello, thank you for the rule idea!
Unfortunately, when I try to reproduce on jsperf (a very good tool, by the way!), the results are a bit random and the backticks aren't always the slowest.
I think it needs a little more work to validate its relevance. Any help is welcome on this topic :+1:
Hum. I made these tests again today, and I got various results too! It seems I was wrong (even if it should be logic)!
Do not close the issue so fast; I will try to make some others tests.
Is your feature request related to a problem? Please describe.
In JS, we can write strings inside :
By using backticks, we can inject variables that will be evaluated on runtime, just like that :
I made a simple jsperf test to evaluate the performance between each approach.
Here are the results :
Describe the solution you'd like
A dedicated rule? Backticks without interpolation needs should be avoid.