chore(frontend-lint): add local typecheck and stylelint commands

- Frontend package scripts:
  - add a dedicated `typecheck` script for `tsc --noEmit`
  - split ESLint into `lint:eslint` and add `lint:styles` plus `lint:styles:fix`
  - keep the top-level `lint` script as a combined frontend lint entrypoint
  - restore `postcss` so the frontend dependency graph satisfies the peer requirements used by Angular build tooling and Stylelint
- Frontend command surface:
  - add `typecheck`, `stylelint`, and `stylelint-fix` recipes to `frontend/Justfile`
  - expand the frontend `check` and `ci-check` recipes to include typechecking, stylesheet linting, and a production build
- Stylelint configuration:
  - add `frontend/stylelint.config.js` using the standard SCSS config as the base
  - pare back the noisiest formatting and notation rules so the initial lint layer stays actionable instead of forcing a repo-wide SCSS rewrite
- Lockfile:
  - refresh `frontend/yarn.lock` for the new frontend lint dependencies

- Validation:
  - `just ui install`
  - `just ui typecheck`
  - `just ui stylelint` currently reports 140 errors, with 76 marked autofixable
This commit is contained in:
James Cox
2026-04-22 17:26:40 -04:00
committed by Zach Yale
parent 4ddc567406
commit cef000d425
4 changed files with 642 additions and 15 deletions
+8 -1
View File
@@ -10,7 +10,11 @@
"dev": "ng serve --open --watch --configuration development",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"lint": "ng lint"
"typecheck": "tsc --noEmit -p tsconfig.app.json",
"lint": "yarn lint:eslint && yarn lint:styles",
"lint:eslint": "ng lint",
"lint:styles": "stylelint \"src/**/*.scss\" \"src/*.scss\"",
"lint:styles:fix": "yarn lint:styles --fix"
},
"private": true,
"dependencies": {
@@ -66,6 +70,9 @@
"angular-eslint": "^21.3.1",
"eslint": "^9.39.3",
"jsdom": "^28.1.0",
"postcss": "^8.5.6",
"stylelint": "^16.25.0",
"stylelint-config-standard-scss": "^16.0.0",
"typescript": "~5.9.3",
"typescript-eslint": "^8.56.1",
"vitest": "^4.0.17"