-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
New: no-tabs
rule (fixes #6079)
#6772
Conversation
@gyandeeps, thanks for your PR! By analyzing the annotation information on this pull request, we identified @nzakas, @alberto and @kaicataldo to be potential reviewers |
LGTM |
|
@@ -0,0 +1,37 @@ | |||
# Disallow tabs in file (no-tabs) | |||
|
|||
Some people prefer whitespaces instead of tab characters in a file. So they would want to disallow tab anywhere inside a file including comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tabs are also whitespace. Better to say that some style guides don't allow the use of tab characters anywhere.
I'm 👍 fit adding to our config. Dogfood all the things! |
column: match.index + 1 | ||
}, | ||
"Line has tabs." | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Unexpected tab character."?
LGTM |
All the changes have been made. |
LGTM |
Lgtm |
What issue does this pull request address?
New rule named
no-tabs
What changes did you make? (Give an overview)
created a new rule.
Is there anything you'd like reviewers to focus on?
nothing specific
Need suggestions on: