lint_rtl_code
Check CSS, HTML, JSX, or TSX for RTL layout issues. Get logical replacements for physical CSS properties, directional Tailwind utilities, and dir problems.
Instructions
Check a snippet of CSS, HTML, JSX or TSX for layout that breaks in right-to-left languages: physical CSS properties, directional Tailwind utilities, and dir problems. Returns each finding with the logical replacement. Use this before handing RTL-facing markup back to the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The source to check. | |
| filename | Yes | A filename such as Button.tsx or theme.css. Only the extension matters — it selects which rules run. |