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
Rule proposal: Template tag spacing #7631
Rule proposal: Template tag spacing #7631
Comments
Seems reasonable to me-- I'll 👍 this. |
I'll 👍 this too. I think we should allow configuring "always" or "never"
|
👍 from me, too. And I agree @vitorbal (although one space should also be an option). |
@phaux are you willing to work on a PR for this if it gets accepted? |
@vitorbal I think I can do it |
Anyone on the team wants to champion this? It looks like there are more then enough votes to accept this, just need a champion. |
marking this as accepted as we have a champion and enough +1's |
I'd like to take a stab at this if no one else is working on it, @phaux? |
@jwilsson Go for it! It looks like we didn't discuss a configuration schema, but it seems to me like this should have one string option that is either Aside from needing to figure out the default value, is everything else clear? Please feel free to comment on here or swing by the ESLint Gitter if you need any help! |
I think the default should be |
Agreed on "never" by default
…On Wed, Jan 11, 2017 at 4:38 PM, Teddy Katz ***@***.***> wrote:
"always" and "never" sound good to me.
I think the default should be "never", since I've never seen anyone
intentionally use a space here.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7631 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAmNdrdFXn-wDYe2kCyEUNX0t-9Wl1c-ks5rRPd8gaJpZM4K4gqN>
.
|
Agreed 👍 |
Cool, I'll take a look in the coming days. |
I haven't began working on it yet so go ahead @jwilsson . I agree upon the default, because it makes this new syntax stand out more. Putting a space there makes it look less like an invocation (even tho I think it looks prettier) |
Please describe what the rule should do: Similar to func-call-spacing – it would enforce spacing between template tag and template literal.
What category of rule is this? (place an "X" next to just one item)
Provide 2-3 code examples that this rule will warn about:
The text was updated successfully, but these errors were encountered: