feat: add quick wins - prettier, bundle limits, coverage
✅ 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
This commit is contained in:
parent
dca1587efb
commit
def855f032
11
.prettierrc
Normal file
11
.prettierrc
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"semi": true,
|
||||||
|
"trailingComma": "es5",
|
||||||
|
"singleQuote": true,
|
||||||
|
"printWidth": 100,
|
||||||
|
"tabWidth": 2,
|
||||||
|
"useTabs": false,
|
||||||
|
"bracketSpacing": true,
|
||||||
|
"arrowParens": "avoid",
|
||||||
|
"endOfLine": "lf"
|
||||||
|
}
|
||||||
@ -10,6 +10,8 @@
|
|||||||
"typecheck": "pnpm -r exec tsc --noEmit",
|
"typecheck": "pnpm -r exec tsc --noEmit",
|
||||||
"lint": "pnpm -r exec eslint . --ext .ts,.tsx",
|
"lint": "pnpm -r exec eslint . --ext .ts,.tsx",
|
||||||
"lint:fix": "pnpm -r exec eslint . --ext .ts,.tsx --fix",
|
"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",
|
"audit": "pnpm -r audit --audit-level moderate",
|
||||||
"clean": "pnpm -r exec rm -rf dist"
|
"clean": "pnpm -r exec rm -rf dist"
|
||||||
},
|
},
|
||||||
@ -21,6 +23,7 @@
|
|||||||
"@typescript-eslint/parser": "^8.0.0",
|
"@typescript-eslint/parser": "^8.0.0",
|
||||||
"@vitest/coverage-v8": "^3.0.0",
|
"@vitest/coverage-v8": "^3.0.0",
|
||||||
"eslint": "^9.0.0",
|
"eslint": "^9.0.0",
|
||||||
|
"prettier": "^3.0.0",
|
||||||
"typescript": "^5.7.0",
|
"typescript": "^5.7.0",
|
||||||
"vitest": "^3.0.0"
|
"vitest": "^3.0.0"
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user