chore: setup prettier configuration

This commit is contained in:
Mohamed Boudra
2026-01-28 23:21:56 +07:00
parent 59e6ab2bf5
commit 2bc08e7881
4 changed files with 32 additions and 0 deletions

21
.prettierignore Normal file
View File

@@ -0,0 +1,21 @@
# Dependencies
node_modules
# Build outputs
dist
.next
.expo
build
*.tsbuildinfo
# Coverage
coverage
# Lock files
*.lock
package-lock.json
# Generated
android
ios
.turbo

7
.prettierrc Normal file
View File

@@ -0,0 +1,7 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "es5",
"tabWidth": 2,
"printWidth": 100
}

1
package-lock.json generated
View File

@@ -25,6 +25,7 @@
"get-port-cli": "^3.0.0", "get-port-cli": "^3.0.0",
"knip": "^5.82.1", "knip": "^5.82.1",
"patch-package": "^8.0.1", "patch-package": "^8.0.1",
"prettier": "^3.5.3",
"typescript": "^5.9.3" "typescript": "^5.9.3"
} }
}, },

View File

@@ -18,6 +18,8 @@
"build": "npm run build --workspaces --if-present", "build": "npm run build --workspaces --if-present",
"typecheck": "npm run typecheck --workspaces --if-present", "typecheck": "npm run typecheck --workspaces --if-present",
"test": "npm run test --workspaces --if-present", "test": "npm run test --workspaces --if-present",
"format": "prettier --write .",
"format:check": "prettier --check .",
"start": "npm run start --workspace=@paseo/server", "start": "npm run start --workspace=@paseo/server",
"android": "npm run android --workspace=@paseo/app", "android": "npm run android --workspace=@paseo/app",
"android:release": "ANDROID_VARIANT=productionRelease npm run android --workspace=@paseo/app", "android:release": "ANDROID_VARIANT=productionRelease npm run android --workspace=@paseo/app",
@@ -30,6 +32,7 @@
}, },
"devDependencies": { "devDependencies": {
"concurrently": "^9.2.1", "concurrently": "^9.2.1",
"prettier": "^3.5.3",
"get-port-cli": "^3.0.0", "get-port-cli": "^3.0.0",
"knip": "^5.82.1", "knip": "^5.82.1",
"patch-package": "^8.0.1", "patch-package": "^8.0.1",