added .prettierrc config to ensure consistent formatting

This commit is contained in:
Raza Rauf
2026-01-16 23:54:27 +05:00
parent b206c849b1
commit 9ecf57bf25
4 changed files with 32 additions and 0 deletions

4
.prettierignore Normal file
View File

@@ -0,0 +1,4 @@
dist/
release/
node_modules/
*.md

8
.prettierrc Normal file
View File

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

17
package-lock.json generated
View File

@@ -94,6 +94,7 @@
"lucide-react": "^0.303.0",
"playwright": "^1.57.0",
"postcss": "^8.4.33",
"prettier": "^3.8.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwindcss": "^3.4.1",
@@ -15081,6 +15082,22 @@
"node": ">= 0.8.0"
}
},
"node_modules/prettier": {
"version": "3.8.0",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.0.tgz",
"integrity": "sha512-yEPsovQfpxYfgWNhCfECjG5AQaO+K3dp6XERmOepyPDVqcJm+bjyCVO3pmU+nAPe0N5dDvekfGezt/EIiRe1TA==",
"dev": true,
"license": "MIT",
"bin": {
"prettier": "bin/prettier.cjs"
},
"engines": {
"node": ">=14"
},
"funding": {
"url": "https://github.com/prettier/prettier?sponsor=1"
}
},
"node_modules/pretty-format": {
"version": "27.5.1",
"resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz",

View File

@@ -38,6 +38,8 @@
"postinstall": "electron-rebuild -f -w node-pty,better-sqlite3",
"lint": "tsc -p tsconfig.lint.json && tsc -p tsconfig.main.json --noEmit && tsc -p tsconfig.cli.json --noEmit",
"lint:eslint": "eslint src/",
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
"format:check": "prettier --check \"src/**/*.{ts,tsx}\"",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
@@ -286,6 +288,7 @@
"lucide-react": "^0.303.0",
"playwright": "^1.57.0",
"postcss": "^8.4.33",
"prettier": "^3.8.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwindcss": "^3.4.1",