Skip to content

chore: update editorconfig with new tabs default #14335

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

Merged
merged 3 commits into from
Aug 19, 2024

Conversation

code-asher
Copy link
Member

@code-asher code-asher commented Aug 16, 2024

I explicitly added tsx and ts since I am not sure if we have other file types that got changed to tabs, lemme know if I missed some.

Copy link

alwaysmeticulous bot commented Aug 16, 2024

✅ Meticulous spotted zero visual differences across 1477 screens tested: view results.

Expected differences? Click here. Last updated for commit e595808. This comment will update as new commits are pushed.

Copy link
Member

@aslilac aslilac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh! I didn't notice we had a second one of these inside site/. good catch!

I think it makes more sense to change the default though (since basically every file in this folder should use tabs now) rather than add them as an exception.

Something like...

[*]
indent_style = tab
indent_size = 2

[node_modules/**]
ignore = true

(settings indent_size is actually still important for non-obvious reasons)

@code-asher
Copy link
Member Author

Makes sense to me! Good point on indent_size, I noticed some odd behavior there only in ts(x) files but thought maybe my editor was just being weird.

@code-asher code-asher requested a review from aslilac August 19, 2024 18:40
Copy link
Member

@aslilac aslilac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beautiful!

@code-asher
Copy link
Member Author

Actually, does indent_size take away people's visual tab width preference? Some reading I was doing suggests it might. I tried unsetting indent_size again and maybe it was just my editor being weird, it seems to work OK.

@aslilac
Copy link
Member

aslilac commented Aug 19, 2024

I would hope not, but it can be important for stuff like yaml files that don't support tab indentation. we can try leaving it unset for now if you'd like, and we can always set it later if it's causing issues.

@code-asher
Copy link
Member Author

code-asher commented Aug 19, 2024

Sweet, lemme unset it for now then. I just did some brief testing with VS Code and the editorconfig plugin and it did change the visual tab width which seems kinda insane to me but I suppose it is what it is

@code-asher code-asher merged commit fa59b30 into main Aug 19, 2024
30 checks passed
@code-asher code-asher deleted the asher/update-editorconfig branch August 19, 2024 19:41
@github-actions github-actions bot locked and limited conversation to collaborators Aug 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants