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:
+15
-3
@@ -40,7 +40,19 @@ coverage:
|
||||
|
||||
# Run the frontend linter.
|
||||
lint:
|
||||
{{ yarn }} lint
|
||||
{{ yarn }} lint:eslint
|
||||
|
||||
# Run the frontend stylesheet linter.
|
||||
stylelint:
|
||||
{{ yarn }} lint:styles
|
||||
|
||||
# Run the frontend stylesheet linter with autofix enabled.
|
||||
stylelint-fix:
|
||||
{{ yarn }} lint:styles:fix
|
||||
|
||||
# Run the frontend TypeScript typechecker without emitting build output.
|
||||
typecheck:
|
||||
{{ yarn }} typecheck
|
||||
|
||||
# Check the installed dependency tree.
|
||||
deps:
|
||||
@@ -55,7 +67,7 @@ audit-ci:
|
||||
{{ yarn }} npm audit --severity critical
|
||||
|
||||
# Run the standard local frontend verification pass.
|
||||
check: deps lint test
|
||||
check: deps typecheck lint stylelint build test
|
||||
|
||||
# Run the frontend CI-style verification sequence from a clean install.
|
||||
ci-check: install-ci audit-ci deps lint test
|
||||
ci-check: install-ci audit-ci deps typecheck lint stylelint build test
|
||||
|
||||
Reference in New Issue
Block a user