Rule proposal: Template tag spacing
See original GitHub issuePlease 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)
- Enforces code style
- Warns about a potential error
- Suggests an alternate way of doing something
- Other (please specify:)
Provide 2-3 code examples that this rule will warn about:
// correct with spacing required
const [user] = await sql `SELECT * FROM users WHERE id = ${id}`
ctx.body = {
name: user.name,
avatar: escape `/avatars/${user.id}.jpg`,
}
// correct with spacing disallowed
const [user] = await sql`SELECT * FROM users WHERE id = ${id}`
ctx.body = {
name: user.name,
avatar: escape`/avatars/${user.id}.jpg`,
}
Issue Analytics
- State:
- Created 7 years ago
- Reactions:8
- Comments:15 (12 by maintainers)
Top Results From Across the Web
Formatting Tips to Make Your Grant Proposal a Standout
Proposal guidelines usually stipulate the spacing between sentences, but not the spacing between paragraphs or between a table and the paragraph ...
Read more >How to Format a Business Proposal (With Examples)
It gives the document a modern, accessible appearance. This effect can be achieved in many ways. Add (more) space between paragraphs and ...
Read more >Rule proposal: vue/padding-line-between-blocks #855 - GitHub
Enforce empty lines between blocks ( template , script , style , and any other root ... Rule proposal: padding lines between tags...
Read more >Technical proposal writing: Definition, formatting ... - PandaDoc
Vertical spacing: For increased readability of your entire proposal, format the first-level sections so they have extra space above and below.
Read more >Guidelines for Writing Research Proposals and Dissertations
Use a 1-1/2 inch left margin (to allow sufficient space for binding the final copies) and one inch top (i.e., about one inch...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
"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.I’ll champion this. @phaux Is everything clear? Please let us know if you need any help with anything, either here in this issue or in our Gitter.