Add quality gates: Prettier for Astro, astro check for shared, unused SCSS variable lint (#2749)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
Paweł Kuna
2026-08-03 00:47:55 +02:00
committed by GitHub
co-authored by StarDev
parent 4d04c102d3
commit 8962710163
552 changed files with 18014 additions and 19559 deletions
+9 -18
View File
@@ -4,27 +4,18 @@
// body-placeholder.html never sets it (the "border" token in the class
// list is just a CSS class).
interface Props {
width?: number;
height?: number;
ratio?: string;
class?: string;
width?: number
height?: number
ratio?: string
class?: string
}
const { width = 400, height = 200, ratio, class: className } = Astro.props;
const { width = 400, height = 200, ratio, class: className } = Astro.props
---
<div class={`card-body${className ? ` ${className}` : ''}`}>
<svg
xmlns="http://www.w3.org/2000/svg"
class="w-100 border rounded"
preserveAspectRatio={ratio ? 'xMidYMid meet' : 'none'}
width={width}
height={height}
viewBox={`0 0 ${width} ${height}`}
fill="transparent"
stroke="var(--tblr-border-color, #b8cef1)"
>
<line x1="0" y1="0" x2={width} y2={height}></line>
<line x1="0" y1={height} x2={width} y2="0"></line>
</svg>
<svg xmlns="http://www.w3.org/2000/svg" class="w-100 border rounded" preserveAspectRatio={ratio ? 'xMidYMid meet' : 'none'} width={width} height={height} viewBox={`0 0 ${width} ${height}`} fill="transparent" stroke="var(--tblr-border-color, #b8cef1)">
<line x1="0" y1="0" x2={width} y2={height}></line>
<line x1="0" y1={height} x2={width} y2="0"></line>
</svg>
</div>