-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
fix(tabs): replace tab character by space characters #8629
Conversation
With default configuration, just opening and saving the file is updating this file automatically Change-Id: Iac8580fc5f723f78adf5ad8aa3818d835ec3727e Signed-off-by: Florent Benoit <fbenoit@redhat.com>
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.
The changes look good to me 👍
@benoitf what do you think of enabling the following eslint rule: https://eslint.org/docs/rules/indent
We can enforce that spaces
are used always, and display warnings or errors when tabs
are used.
@vince-fugnitto yes would be nice because when we just open/save files, they're producing changes |
@@ -1582,168 +1582,168 @@ declare module '@theia/plugin' { | |||
waitUntil(thenable: PromiseLike<any>): void; |
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.
I just wanted to mention that this file is never checked by eslint
due to the following ignorePatterns
:
theia/configs/base.eslintrc.json
Lines 21 to 24 in 40b3800
"ignorePatterns": [ | |
"node_modules", | |
"*.d.ts" | |
] |
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.
maybe this one should not be excluded as it's maintained by us manually
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.
maybe this one should not be excluded as it's maintained by us manually
I think so, we should update the ignorePatterns
to only check *d.ts
files located under lib
folders correct, or just lib
altogether?
What it does
just replace tab characters by space
How to test
you may reproduce this fix just by opening and saving the file.
About test, hard to say how to test as it's like a no-op but plug-ins should still work as usual
And in github diff view, you can see it's only related to spaces/indent
Review checklist
Reminder for reviewers