Skip to content

Instantly share code, notes, and snippets.

View afhm's full-sized avatar

Mohammed Afham afhm

View GitHub Profile

[https://www.npmjs.com/package/@commitlint/config-conventional]

Install

npm i --save-dev eslint-config-airbnb eslint-config-airbnb-typescript @typescript-eslint/eslint-plugin@latest @typescript-eslint/parser@latest @commitlint/config-conventional @commitlint/cli

// install husky
npm i --save-dev husky

// set script and prepare husky
@afhm
afhm / Image.astro
Created December 26, 2023 08:13 — forked from sannajammeh/Image.astro
Astro Responsive Image
---
import type { ImageMetadata, ImageTransform } from "astro";
import { getImage } from "astro:assets";
import LoadableImage from "./LoadableImage.astro";
type Props = {
src: ImageMetadata;
alt: string;
/**
* Array of screens to generate the image for i.e [320, 480, 1200]