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.

Allow enforcing tabs over spaces

See original GitHub issue

For 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:open
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
sensibleishcommented, Feb 1, 2018

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.

2reactions
NatoBoramcommented, Feb 21, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

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