Skip to content
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

Remove indent_size from editorconfig #1041

Merged
merged 1 commit into from
Oct 9, 2023
Merged

Remove indent_size from editorconfig #1041

merged 1 commit into from
Oct 9, 2023

Conversation

mikestreety
Copy link
Contributor

@mikestreety mikestreety commented Oct 6, 2023

This is a bit of a punt and something I noticed when doing #1040

Description

The .editorconfig file specifies tabs (yay!) as the indent_style, however it was strict on the indent_size - which isn't required if using tabs.

It also adds the final new line to the .editorconfig file, as required in the .editorconfig file

Methodology

I'm a massive tab fanboy, but love a good sized indent of 4 and have this set in my IDE. I was surprised, when opening VirtualCoffee that, despite everything using tabs, it was extremely tight.

After searching my IDE, i realised the .editorconfig specified indent_size = 2 which, considering it is a tab character, should not be needed.

Removing this allows the tab size to be set in an IDE level for user preference while still keeping the tab convention.

Side note: I appreciate this MR is being raised without an issue and is 95% personal preference. If there is a reason I've not thought of for 2 space tabs to be force, I completely understand! 😄

Code of Conduct

By submitting this pull request, you agree to follow our Code of Conduct

As the style is a tab, the files should be indented according to the users preference
@mikestreety mikestreety requested a review from a team as a code owner October 6, 2023 20:24
@netlify
Copy link

netlify bot commented Oct 6, 2023

👷 Deploy Preview for virtual-coffee-io processing.

Name Link
🔨 Latest commit 541793b
🔍 Latest deploy log https://app.netlify.com/sites/virtual-coffee-io/deploys/65206cf00ebbb90008445dba

@mikestreety mikestreety changed the title Remove indent_size from editorconfig Remove indent_size from editorconfig Oct 6, 2023
Copy link
Member

@danieltott danieltott left a comment

Choose a reason for hiding this comment

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

Makes sense to me! This was probably a leftover from before we switched to tabs. Thanks!

@danieltott danieltott merged commit 3cfafca into Virtual-Coffee:main Oct 9, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants