Allow enforcing tabs over spaces
See original GitHub issueFor teams where the code style is tabs instead of spaces (boo!), linting needs a way to enforce that 4x
gets replaced with tabs.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Is there a way to enforce using tabs instead of spaces?
I agree tabs are better than spaces. It's a personal preference, but team consistency is very important.
Read more >Spaces are inserted instead of tabs - Visual Studio Feedback
To turn off this behavior, please go to Tools > Options, and then Text Editor > Advanced > Uncheck "Use adaptive formatting". Hey...
Read more >indent - Rule
Rule: indent. Enforces indentation with tabs or spaces. Rationale. Using only one of tabs or spaces for indentation leads to more consistent editor...
Read more >Tabs vs. Spaces: It's an Accessibility Issue
Tabs cost you nothing and give your team more options. They're the more accessible choice.
Read more >indent - ESLint - Pluggable JavaScript Linter
'tab') { console.log('Each next indentation will increase on 4 spaces'); } } ... This rule enforces a consistent indentation style. The default style...
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
The Markdown spec at https://daringfireball.net/projects/markdown/basics contains the string “4 spaces or 1 tab” twice. Lint rule MD010 doesn’t seem valid, at least not as a blanket rule.
You having seen “many projects” imposing different standards shouldn’t undermine the usability of your project. Linting tools shouldn’t promote unwanted practices nor force different standards.
MD010
simply never applies. It should be a toggle between spaces or tabs.