Skip to content

IS-11176: Add prettier check to CI workflow#122

Merged
aleixsuau merged 7 commits intointegration/IS-5161/login-web-appfrom
feature/IS-11176/add-prettier-check-to-ci
Apr 22, 2026
Merged

IS-11176: Add prettier check to CI workflow#122
aleixsuau merged 7 commits intointegration/IS-5161/login-web-appfrom
feature/IS-11176/add-prettier-check-to-ci

Conversation

@aleixsuau
Copy link
Copy Markdown

Summary

  • Added a prettier --check step to the LWA CI workflow so formatting issues are caught before merge

Test plan

  • Confirm CI prettier check passes
  • Verify build and lint steps still run correctly after the new step

@aleixsuau aleixsuau marked this pull request as ready for review April 20, 2026 11:23
@aleixsuau aleixsuau force-pushed the feature/IS-11176/add-prettier-check-to-ci branch 2 times, most recently from f05064a to 3d98133 Compare April 20, 2026 13:10
aleixsuau and others added 5 commits April 22, 2026 11:13
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The previous `src/shared/ui/icons/*` pattern only matched direct children,
leaving nested generated .d.ts files under types/components/ exposed to the
prettier-check CI step. Using a trailing slash ignores the whole tree.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When running from the repo root, prettier only looks for .prettierignore
in the cwd. The workspace's ignore file (with generated-icon exclusions)
was being ignored, so CI flagged 68 false positives locally passing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@aleixsuau aleixsuau force-pushed the feature/IS-11176/add-prettier-check-to-ci branch from d227e84 to 7042db1 Compare April 22, 2026 09:13
aleixsuau and others added 2 commits April 22, 2026 11:24
The CI prettier step now runs via `npm run prettier-check -w src/login-web-app`,
which uses the workspace cwd and picks up .prettierignore naturally. This
widened the scope beyond `src/**/*.{ts,tsx}` to include previewer sources
and root vite configs, surfacing pre-existing 4-space indentation drift.
Reformatted to 2-space indent (tabWidth: 2).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Both paths no longer exist under login-web-app:
- `src/shared/ui/icons/` — icons are now imported from @curity/ui-kit-icons
  (the common workspace package).
- `src/shared/util/css/index.css` — removed by IS-11235; only styles.css
  remains in that folder.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@aleixsuau aleixsuau merged commit b6f53af into integration/IS-5161/login-web-app Apr 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants