Skip to content

chore: add .editorconfig#7

Merged
slin1237 merged 1 commit into
mainfrom
setup/editorconfig
Mar 3, 2026
Merged

chore: add .editorconfig#7
slin1237 merged 1 commit into
mainfrom
setup/editorconfig

Conversation

@slin1237
Copy link
Copy Markdown
Contributor

@slin1237 slin1237 commented Mar 2, 2026

Summary

Add .editorconfig to enforce consistent formatting across all editors.

Changes

  • .editorconfig: Rules for the whole repo:
    • All files: LF line endings, final newline, trim trailing whitespace, UTF-8
    • Markdown (.md): 2-space indentation
    • YAML (.yml, .yaml): 2-space indentation
    • JSON (.json): 2-space indentation

Test Plan

  • EditorConfig-compatible editors pick up the settings
  • No conflicts with pre-commit hooks (trailing whitespace, EOF fixer)

Add .editorconfig to enforce consistent formatting across editors.

Rules:
- All files: LF line endings, final newline, trim trailing whitespace,
  UTF-8 charset
- Markdown, YAML, JSON: 2-space indentation

Ensures contributors' editors produce consistent formatting regardless
of their personal settings.

Signed-off-by: Simo Lin <slin1237@gmail.com>
Signed-off-by: Simo Lin <linsimo.mark@gmail.com>
@slin1237 slin1237 merged commit 324ff75 into main Mar 3, 2026
2 checks passed
@slin1237 slin1237 deleted the setup/editorconfig branch March 3, 2026 01:27
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.

1 participant