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 -9
View File
@@ -2,18 +2,18 @@
// Composable card container (.card). For the fixed demo-showcase card see ../cards/Card.astro.
interface Props {
/** element to render instead of div (e.g. form, a) */
as?: string;
/** card-{size} body padding: sm | md | lg */
size?: string;
class?: string;
/** remaining attributes (id, action, data-*, …) are forwarded to the element */
[key: string]: unknown;
/** element to render instead of div (e.g. form, a) */
as?: string
/** card-{size} body padding: sm | md | lg */
size?: string
class?: string
/** remaining attributes (id, action, data-*, …) are forwarded to the element */
[key: string]: unknown
}
const { as: Element = 'div', size, class: className, ...rest } = Astro.props;
const { as: Element = 'div', size, class: className, ...rest } = Astro.props
---
<Element class:list={['card', size && `card-${size}`, className]} {...rest}>
<slot />
<slot />
</Element>