Skip to content

chore: add .editorconfig - #2

Merged
stasadev merged 1 commit into
mainfrom
20261029_stasadev_editorconfig
Oct 29, 2026
Merged

stasadev merged 1 commit into
mainfrom
20261029_stasadev_editorconfig

Conversation

@stasadev

Copy link
Copy Markdown
Member

Short Summary (TL;DR)

Adds an .editorconfig so editors use 2-space indentation, LF line endings and a final newline in every file, and trim trailing whitespace outside Markdown.

How This PR Solves The Issue

It follows ddev.com's .editorconfig, with 2 spaces for all files, which also matches the .sh setting in ddev/ddev and the add-on template. trim_trailing_whitespace is on, because the organization's AGENTS.md forbids trailing whitespace, except in Markdown, as in the add-on template, so an editor doesn't strip a line break written as two trailing spaces.

Automated Testing Overview

None. The files on main already follow these settings.

🤖 Developed with assistance from Claude Code

## Short Summary (TL;DR)

Adds an `.editorconfig` so editors use 2-space indentation, LF line endings and a final newline in every file, and trim trailing whitespace outside Markdown.

## How This PR Solves The Issue

It follows `ddev.com`'s `.editorconfig`, with 2 spaces for all files, which also matches the `.sh` setting in `ddev/ddev` and the add-on template. `trim_trailing_whitespace` is on, because the organization's `AGENTS.md` forbids trailing whitespace, except in Markdown, as in the add-on template, so an editor doesn't strip a line break written as two trailing spaces.

## Automated Testing Overview

None. The files on `main` already follow these settings.

🤖 Developed with assistance from [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@stasadev
stasadev merged commit feb554b into main Oct 29, 2026
1 check passed
@stasadev
stasadev deleted the 20261029_stasadev_editorconfig branch October 29, 2026 11:56
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