New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance 'no-tabs' rule: New option to only disallow non-indenting tabs #10256
Comments
I'll champion this. |
@fabio-silva Thanks for creating this! Hope it's okay that I tweaked the title a bit-- just wanted to avoid any team member seeing the title in the issue list and thinking this was about making a breaking change to the rule. |
@platinumazure Yep, that's totally fine! |
@eslint/eslint-team Anyone else in favor of this proposal? This issue only needs one more 👍 to accept it, otherwise it's probably time to close it. |
This has now been accepted. |
Working on this. |
What rule do you want to change?
no-tabs
Does this change cause the rule to produce more or fewer warnings?
Fewer, as indenting tabs will be allowed.
How will the change be implemented? (New option, new default behavior, etc.)?
New option.
Please provide some example code that this change will affect:
What does the rule currently do for this code?
A warning because there are tabs for indentation purposes (in the beginning) and for non-necessarily-indentation purposes (after the assignment)
What will the rule do after it's changed?
Allows indentation tabs using a proper option, but not non-indenting tabs. This could be something like
allow-indenting
.The text was updated successfully, but these errors were encountered: