Skip to content

chore: Add .editorconfig for consistent coding styles #138

Description

@Ashvin-KS

Description

Add an .editorconfig file to maintain consistent coding styles across all editors and IDEs.

Problem Statement

Without an .editorconfig, contributors using different editors may introduce inconsistent whitespace, line endings, and indentation — leading to noisy diffs and formatting issues during code review.

Proposed Solution

Create a root .editorconfig covering:

  • UTF-8 encoding with LF line endings
  • 2-space indent for JavaScript, TypeScript, JSON, YAML, CSS, HTML
  • 4-space indent for Python (if any)
  • Trim trailing whitespace (except Markdown)
  • Insert final newline
  • Max line length of 120 characters

Acceptance Criteria

  • .editorconfig exists at project root
  • Covers all file types in the repository
  • No changes to existing source files

GSSoC

  • I am a registered GSSoC 2026 contributor
  • I would like to implement this feature myself

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions