Rule proposition: Template Indentation
See original GitHub issueIt 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:
- For tabs
'vue/indent': 'tab'
<application>
<component />
</application>
- For 2 spaces:
'vue/indent': 2
<application>
<component />
</application>
- No indentation:
'vue/indent': 0
<application>
<component />
</application>
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:17 (16 by maintainers)
Top 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 >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
@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 👍
@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.