prettierrc line update to 80 from 100, and singleQuote -> false from true #86

Merged
zach merged 7 commits from forgejo-workflows into main 2026-05-16 01:46:27 +02:00
2 changed files with 13 additions and 6 deletions
+11 -4
View File
@@ -16,12 +16,19 @@ jobs:
run: |
apk add --no-cache \
git \
rust
cargo \
rust \
rust-clippy
- name: Rustfmt
- name: Clippy
run: |
if [ -f Cargo.toml ]; then
cargo fmt --check
if [ -n "$(find . -name "Cargo.toml" -print -quit)" ]; then
find . -name "Cargo.toml" -print0 | while IFS= read -r -d '' manifest; do
cargo clippy --manifest-path "$manifest" -- -D warnings
done
elif [ -n "$(find . -name "*.rs" -print -quit)" ]; then
echo "Rust files found but no Cargo.toml"
exit 1
else
echo "No Rust project found"
fi
+2 -2
View File
@@ -1,9 +1,9 @@
{
"semi": true,
"singleQuote": true,
"singleQuote": false,
"jsxSingleQuote": false,
"tabWidth": 4,
"printWidth": 100,
"printWidth": 80,
"trailingComma": "es5",
"bracketSpacing": true,
"bracketSameLine": false,