-
Notifications
You must be signed in to change notification settings - Fork 154
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
[FEATURE] Add an .editorconfig file #940
Conversation
db01531
to
047de46
Compare
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 have a query about the indentation for .md
files.
# MD files | ||
[*.md] | ||
indent_style = space | ||
indent_size = 4 |
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.
Do we not have 2 spaces for indenting in .md
files - e.g. in bulleted lists - or is the indentation for lists something different?
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.
According to these style guides, it's 4 spaces (for code and lists where we do not use use hanging indent determined by the number of digits):
- https://google.github.io/styleguide/docguide/style.html#nested-list-spacing
- https://guides.github.com/features/mastering-markdown/
- https://cirosantilli.com/markdown-style-guide/#indentation-of-content-inside-lists
This setting in the .editorconfig
only determine what the tab key does, not what a linter might expect.
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.
OK.
047de46
to
d902c09
Compare
This allows IDEs to automatically set the basic code formatting options. Fixes #781
d902c09
to
b734e95
Compare
# MD files | ||
[*.md] | ||
indent_style = space | ||
indent_size = 4 |
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.
OK.
This allows IDEs to automatically set the basic code formatting options.
Fixes #781