From e7687e634439a6b9efd2e116721798db263c1c18 Mon Sep 17 00:00:00 2001 From: William Jacoby Date: Tue, 27 Oct 2026 21:23:00 -0500 Subject: [PATCH] chore: standardize repository configuration --- .editorconfig | 22 +++++++++ .gitattributes | 6 +++ .gitignore | 118 +++++++++++++++++++++++++++++++++++++++++++++++-- 3 files changed, 143 insertions(+), 3 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..b7eba9c --- /dev/null +++ b/.editorconfig @@ -0,0 +1,22 @@ +# EditorConfig +# https://editorconfig.org/ +# +# Consistent formatting for project files. + +root = true + +[*] +end_of_line = lf +insert_final_newline = true + +[*.{php,js,css,json,html,htm,txt,md,yml,yaml,xml,twig}] +charset = utf-8 +indent_style = tab +indent_size = 4 +trim_trailing_whitespace = true + +[*.{txt,md,yml,yaml}] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_style = space diff --git a/.gitattributes b/.gitattributes index f7e2def..cce6e8d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,8 @@ +# Shared line endings and binary files * text=auto eol=lf +*.png binary +*.gif binary +*.jpg binary +*.jpeg binary + *.sh text eol=lf diff --git a/.gitignore b/.gitignore index 0ea99e6..6ff2c04 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,118 @@ -# phpbb-test-board: its own virtualenv and Python caches -phpbb-test-board/.venv/ +# ========================= +# Build and Dependencies +# ========================= + +/build/ +/vendor/ + +# ========================= +# Ghostwriter +# ========================= + +# Ghostwriter backup markdown files +*.md.backup + +# ========================= +# Windows +# ========================= + +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder configuration file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# ========================= +# macOS +# ========================= + +.DS_Store +.AppleDouble +.LSOverride + +# Custom folder icons +Icon? + +# Thumbnails +._* + +# Files that might appear on external disks +.Spotlight-V100 +.Trashes + +# Directories potentially created on remote AFP shares +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# ========================= +# PHP / Composer +# ========================= + +vendor +composer.phar + +# ========================= +# Python +# ========================= + __pycache__/ +*.py[cod] +.venv/ +venv/ +.pytest_cache/ +.mypy_cache/ +.ruff_cache/ +.tox/ +.nox/ +.coverage +.coverage.* +htmlcov/ + +# ========================= +# JavaScript / Node +# ========================= + +node_modules/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* +.pnpm-debug.log* + +# ========================= +# Local environment and editor files +# ========================= + +.env +.env.* +!.env.example +!.env.*.example +*~ +*.backup +*.bk +*.bak +*.swp +*.swo + +# ========================= +# Local review output +# ========================= + +output*.txt +*-review-*.md + +# IDE files +.idea/ +*.iws +.idea_modules/ +atlassian-ide-plugin.xml +/nbproject/ -# Shared script code; overrides global ignore rules that hide lib/ folders +# Repository-specific rules !lib/