saifulapm/layoutlint
Deterministic UI layout checks for changed JSX/HTML + Tailwind components ��� overflow, overlap, viewport fit, text truncation — in milliseconds, no browser. Fails the job when a changed component violates a layout rule. SECURITY: React component modules are EXECUTED to render them (like your tests are). Trigger on pull_request from trusted branches only — never run this action against fork code via pull_request_target — or set execute: 'false' for a static parse.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| files | Extended-regex filter for changed files to check (matched against paths from git diff). | — | \.(tsx|jsx)$ |
| viewports | Comma-separated viewport widths in px. | — | 320,375,768,1440 |
| rules | Comma-separated subset of no-overflow, no-overlap, fits-viewport, no-text-truncation. Empty = all. | — | "" |
| base | Base ref to diff against. Defaults to the PR base, or HEAD~1 on push. | — | "" |
| version | layoutlint version to install from npm. | — | latest |
| execute | Execute React component modules (.tsx/.jsx with import/export) via the project's react-dom to get real markup. Set 'false' to force a static parse (e.g. if this job can see untrusted code). | — | true |
Outputs
no outputs