Skip to content

Commit

Permalink
fix(editorconfig): misconfiguration that would cause editors to forma…
Browse files Browse the repository at this point in the history
…t incorrectly #1786

Issue: #1786

CHANGELOG:
- [ ] Makefiles, go files, and other related files use tabs for
  indentation. Set indent width for these to 4 to indentify this
  clearly.
- [ ] Configure editor for Python to use 4 spaces for indentation.
- [ ] Use linefeed `\n` character to end lines for all files so that
  tools work properly.
  • Loading branch information
yesudeep committed Feb 3, 2025
1 parent d4e9a8a commit f63e658
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,21 @@ root = true

[*]
charset = utf-8
indent_style = space
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 80
trim_trailing_whitespace = true

[*.{js,jsx,ts,tsx}]
quote_type = single

[*.py]
indent_size = 4
indent_style = space
quote_type = single

[{Makefile,go.mod,go.sum,*.go,.gitmodules}]
indent_size = 4
indent_style = tab

0 comments on commit f63e658

Please sign in to comment.