Skip to content

chore: add the shared .editorconfig - #112

Closed
alexgrozav wants to merge 1 commit into
mainfrom
editorconfig-uxf-1026
Closed

alexgrozav wants to merge 1 commit into
mainfrom
editorconfig-uxf-1026

Conversation

@alexgrozav

Copy link
Copy Markdown
Contributor

What changed

Adds .editorconfig at the root, so editors follow the same whitespace rules as the formatter in files it skips: UTF-8, LF line endings, two-space indents, a final newline and trimmed trailing whitespace, except in Markdown, where a trailing double space is a line break.

It's a byte-for-byte copy of the shared file whose canonical copy lives in uxfront-com/.github (Git blob 96a3987b71444d62eb43daca3c709066dc3b82f0). It matches @uxfront/oxfmt-config, which keeps oxfmt's defaults. To change it, change the canonical copy first, then copy it here.

The formatter's output doesn't change. This repository has no format script, so I ran npx -y oxfmt@0.70.0 . with and without the file and compared the two diffs:

rm .editorconfig && { npx -y oxfmt@0.70.0 . >/dev/null || echo FMT_FAILED; }; git diff -- . ':(exclude).editorconfig' > ../without.patch; git checkout -- .
{ npx -y oxfmt@0.70.0 . >/dev/null || echo FMT_FAILED; }; git diff > ../with.patch; git checkout -- .
cmp ../without.patch ../with.patch && echo SAME

It prints SAME. Both diffs are 49,011 lines over 314 files, since plain oxfmt already rewrites those files on main with or without this file. Nothing is reformatted here. With indent_size = 4 instead, the diff changes (467 files), so oxfmt does read the file.

No changelog entry, since readers of the site see no change.

Checklist

  • The title follows Conventional Commits, as in feat(docs): add the focus guideline.
  • pnpm check-types passes. (It fails on main too, with the same three errors inside @uxfront/layer-docs@0.9.0, as CI's Type-check on main does. This PR changes no code.)
  • Docs changes: the pages read well on pnpm dev. (No docs changes.)
  • Homepage changes: pnpm build, then pnpm lighthouse, still scores 100 in every category. (No homepage changes.)

This is a copy of the canonical .editorconfig in uxfront-com/.github,
byte for byte. It sets UTF-8, LF line endings, two-space indents, a
final newline and trimmed trailing whitespace (kept in Markdown), so
editors follow the same whitespace rules as the formatter in the files
it skips. It matches @uxfront/oxfmt-config, which keeps oxfmt's
defaults.

Co-authored-by: multica-agent <github@multica.ai>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://editorconfig-uxf-1026.opencomponents.dev, https://editorconfig-uxf-1026-opencomponents.uxfront.workers.dev (commit 05ef2e8)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://5e58f6b0.opencomponents.dev, https://5e58f6b0-opencomponents.uxfront.workers.dev 05ef2e8 2026-11-24T09:55:35.548Z Visit the dashboard ↗

@alexgrozav alexgrozav closed this Nov 24, 2026
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