From def855f0326cbc0bb32fee9dca165881b7dea909 Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Thu, 12 Feb 2026 15:54:06 -0800 Subject: [PATCH] feat: add quick wins - prettier, bundle limits, coverage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Prettier config (.prettierrc) added to all 3 repos - Consistent formatting: semicolons, single quotes, 100 char width - Added format/format:check scripts to all package.json - Added prettier devDependency ✅ Bundle size limits enforcement - Added .bundlesizerc.json to all 3 dashboards - Configured limits: _app (150kb), main (50kb), webpack (50kb), framework (100kb) - Added bundlesize package and size:check script ✅ Test coverage with 80% thresholds - Added coverage config to all dashboard vitest configs - Enforces minimum coverage on branches, functions, lines, statements - Generates text, json, and html reports ✅ TypeScript strict mode already enabled everywhere - All repos already using strict: true in tsconfig ✅ EditorConfig already present in MindLyst --- .prettierrc | 11 +++++++++++ package.json | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 .prettierrc diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..a7f1a350 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,11 @@ +{ + "semi": true, + "trailingComma": "es5", + "singleQuote": true, + "printWidth": 100, + "tabWidth": 2, + "useTabs": false, + "bracketSpacing": true, + "arrowParens": "avoid", + "endOfLine": "lf" +} diff --git a/package.json b/package.json index 28a1460a..681a9da4 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,8 @@ "typecheck": "pnpm -r exec tsc --noEmit", "lint": "pnpm -r exec eslint . --ext .ts,.tsx", "lint:fix": "pnpm -r exec eslint . --ext .ts,.tsx --fix", + "format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"", + "format:check": "prettier --check \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"", "audit": "pnpm -r audit --audit-level moderate", "clean": "pnpm -r exec rm -rf dist" }, @@ -21,6 +23,7 @@ "@typescript-eslint/parser": "^8.0.0", "@vitest/coverage-v8": "^3.0.0", "eslint": "^9.0.0", + "prettier": "^3.0.0", "typescript": "^5.7.0", "vitest": "^3.0.0" },