Skip to content

Add .editorconfig with settings aligned to dotnet/aspire#665

Open
eerhardt wants to merge 2 commits intomainfrom
AddEditorConfig
Open

Add .editorconfig with settings aligned to dotnet/aspire#665
eerhardt wants to merge 2 commits intomainfrom
AddEditorConfig

Conversation

@eerhardt
Copy link
Copy Markdown
Member

@eerhardt eerhardt commented Apr 2, 2026

Add an .editorconfig file to enforce consistent formatting across the repo.

Settings

  • Default: 4-space indent, UTF-8, trim trailing whitespace, final newline
  • Web files (JS, TS, Astro, CSS, HTML): 2-space indent
  • Data/config (JSON, JSONC): 2-space indent
  • XML/YAML/project files (config, *proj, targets, yml, yaml, slnx): 2-space indent
  • Markdown (md, mdx): 2-space indent, trailing whitespace preserved
  • Lock files (pnpm-lock.yaml): no final newline insertion

Settings are aligned with the dotnet/aspire repository where applicable, only including extensions for file types that actually exist in this repo.

Add an EditorConfig file to enforce consistent formatting across the
repo. Settings cover web files (JS, TS, Astro, CSS, HTML), data/config
files (JSON, YAML), XML/project files, and Markdown. Defaults are
aligned with the dotnet/aspire repository where applicable.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@eerhardt eerhardt requested a review from IEvangelist as a code owner April 2, 2026 21:08
Copilot AI review requested due to automatic review settings April 2, 2026 21:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a repository-root .editorconfig to standardize formatting defaults across the repo, with 2-space indentation overrides for web/config/documentation files to align with dotnet/aspire conventions.

Changes:

  • Introduces base EditorConfig defaults (spaces, 4-space indent, UTF-8, trim trailing whitespace, final newline).
  • Adds 2-space indentation overrides for web files, JSON/JSONC, XML/YAML/project files, and Markdown (with trailing whitespace preserved).
  • Adds a special-case rule for pnpm-lock.yaml to avoid inserting a final newline.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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