question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rule proposition: Template Indentation

See original GitHub issue

It would be great to have the ability of having only one style for the template/render function HTML, by enforcing an indentation style.

It could be configured by setting the option to tab for tabs or a positive number for spaces.

Proposal:

  1. For tabs 'vue/indent': 'tab'
<application>
	<component />
</application>
  1. For 2 spaces: 'vue/indent': 2
<application>
  <component />
</application>
  1. No indentation: 'vue/indent': 0
<application>
<component />
</application>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:17 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
selfupcommented, Aug 31, 2017

@chrisvfritz It seems we think a bit a like 😂

https://gitlab.com/gitlab-org/gitlab-ce/issues/37217#note_39039029

I really like the idea of treating it like code 👍

1reaction
mysticateacommented, Jul 19, 2017

@chrisvfritz The indentation rule does not relate to line breaks. The indentation rule checks only spacing at the beginning of lines even if developers write line breaks anywhere. Also, the indentation rule should fix only spacing at the beginning of lines, so it doesn’t touch line breaks. One rule does one thing, it’s the philosophy of ESLint.

#47 is one of the rules which handle line breaks. The combination of those rules, it will provide your ideal fixing eventually.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Business format vs indented paragraphs
Well, the usual way this rule is expressed is indent every paragraph 5 spaces, a quaint hangover from the days when typewriters reigned...
Read more >
How to Format a Business Proposal (With Examples)
What is the best proposal format? In this post we outline basic formatting techniques that can be used to strengthen your proposal and...
Read more >
Formatting Tips to Make Your Grant Proposal a Standout
The best policy is to design your template to be single spaced and adjust as needed to follow the funder's guidelines. One spacing...
Read more >
Possible to indent lines in template without also indeting the ...
Currently, it is not possible to do that. However there is a TC39 proposal to change that (Still in draft phase).
Read more >
THE BLUEBOOK MADE EASY - Penn State Law
Rule 5.1(a). Use a block quote (indent left & right margins, single ... See Rules B5.2 and 5.1(a) and for examples of block....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found