feat: consistently format all HTML, XML, JSON, CSS, JS, TS, SQL, TOML, YAML, and Markdown files as far as possible (#4193)

* feat: consistently format all HTML, XML, JSON, CSS, JS, TS, SQL, TOML, YAML, and Markdown files

* chore: deal with VS Code not being able to parse valid editorconfig syntax

Sometimes I'm surprised that computers even work.

* chore: get rid of IntelliJ IDE config files that should not be there

These were already added to the `.gitignore` a long time ago, and now
are being ignored by Prettier.

* fix: rename `tooling-config` `format` script to `fix` for it to run with Turbo
This commit is contained in:
Alejandro González
2025-08-16 19:40:31 +02:00
committed by GitHub
parent 6f59f4c110
commit 1454e3351e
130 changed files with 7959 additions and 7618 deletions

View File

@@ -0,0 +1,15 @@
**/*.rs
.sqlx
# Migrations existing before Prettier formatted them shall always be ignored,
# as any changes to them will break existing deployments
migrations/20240711194701_init.sql
migrations/20240813205023_drop-active-unique.sql
migrations/20240930001852_disable-personalized-ads.sql
migrations/20241222013857_feature-flags.sql
migrations/20250318160526_protocol-versions.sql
migrations/20250408181656_add-join-log.sql
migrations/20250413162050_skin-selector.sql
migrations/20250428171350_add-profile-feature-version.sql
migrations/20250429150111_add-attached-world-data.sql
migrations/20250514181748_skin_nametag_setting.sql

View File

@@ -1,6 +1,6 @@
[package]
name = "theseus"
version = "1.0.0-local" # The actual version is set by the theseus-build workflow on tagging
version = "1.0.0-local" # The actual version is set by the theseus-build workflow on tagging
authors = ["Jai A <jaiagr+gpg@pm.me>"]
edition.workspace = true
@@ -15,7 +15,14 @@ sha2.workspace = true
url = { workspace = true, features = ["serde"] }
uuid = { workspace = true, features = ["serde", "v4"] }
zip.workspace = true
async_zip = { workspace = true, features = ["chrono", "tokio-fs", "deflate", "bzip2", "zstd", "deflate64"] }
async_zip = { workspace = true, features = [
"chrono",
"tokio-fs",
"deflate",
"bzip2",
"zstd",
"deflate64",
] }
flate2.workspace = true
tempfile.workspace = true
dashmap = { workspace = true, features = ["serde"] }
@@ -51,8 +58,27 @@ indicatif = { workspace = true, optional = true }
async-tungstenite = { workspace = true, features = ["tokio-runtime", "tokio-rustls-webpki-roots"] }
futures = { workspace = true, features = ["async-await", "alloc"] }
reqwest = { workspace = true, features = ["json", "stream", "deflate", "gzip", "brotli", "rustls-tls-webpki-roots", "charset", "http2", "macos-system-configuration", "multipart"] }
tokio = { workspace = true, features = ["time", "io-util", "net", "sync", "fs", "macros", "process"] }
reqwest = { workspace = true, features = [
"json",
"stream",
"deflate",
"gzip",
"brotli",
"rustls-tls-webpki-roots",
"charset",
"http2",
"macos-system-configuration",
"multipart",
] }
tokio = { workspace = true, features = [
"time",
"io-util",
"net",
"sync",
"fs",
"macros",
"process",
] }
tokio-util = { workspace = true, features = ["compat", "io", "io-util"] }
async-recursion.workspace = true
fs4 = { workspace = true, features = ["tokio"] }
@@ -72,7 +98,14 @@ p256 = { workspace = true, features = ["ecdsa"] }
rand.workspace = true
base64.workspace = true
sqlx = { workspace = true, features = ["runtime-tokio", "sqlite", "macros", "migrate", "json", "uuid"] }
sqlx = { workspace = true, features = [
"runtime-tokio",
"sqlite",
"macros",
"migrate",
"json",
"uuid",
] }
quartz_nbt = { workspace = true, features = ["serde"] }
hickory-resolver.workspace = true

View File

@@ -1,9 +1,12 @@
{
"name": "@modrinth/app-lib",
"scripts": {
"build": "cargo build --release",
"lint": "cargo fmt --check && cargo clippy --all-targets",
"fix": "cargo clippy --all-targets --fix --allow-dirty && cargo fmt",
"test": "cargo nextest run --all-targets --no-fail-fast"
}
"name": "@modrinth/app-lib",
"scripts": {
"build": "cargo build --release",
"lint": "cargo fmt --check && cargo clippy --all-targets",
"lint:ancillary": "prettier --check .",
"fix": "cargo clippy --all-targets --fix --allow-dirty && cargo fmt",
"fix:ancillary": "prettier --write .",
"test": "cargo nextest run --all-targets --no-fail-fast"
},
"prettier": "@modrinth/tooling-config/app-lib.prettier.config.cjs"
}