chore: lint

This commit is contained in:
Bereket Engida
2024-09-27 15:55:00 +03:00
parent 2a576c8ff3
commit 461526d89d
23 changed files with 1003 additions and 19092 deletions

View File

@@ -19,7 +19,6 @@
"noDelete": "error" "noDelete": "error"
}, },
"complexity": { "complexity": {
"noForEach": "warn",
"noUselessSwitchCase": "warn", "noUselessSwitchCase": "warn",
"noUselessTypeConstraint": "warn" "noUselessTypeConstraint": "warn"
} }

View File

@@ -95,7 +95,6 @@ export const reducer = (state: State, action: Action): State => {
if (toastId) { if (toastId) {
addToRemoveQueue(toastId); addToRemoveQueue(toastId);
} else { } else {
// biome-ignore lint/complexity/noForEach: <explanation>
state.toasts.forEach((toast) => { state.toasts.forEach((toast) => {
addToRemoveQueue(toast.id); addToRemoveQueue(toast.id);
}); });
@@ -133,7 +132,7 @@ let memoryState: State = { toasts: [] };
function dispatch(action: Action) { function dispatch(action: Action) {
memoryState = reducer(memoryState, action); memoryState = reducer(memoryState, action);
// biome-ignore lint/complexity/noForEach: <explanation>
listeners.forEach((listener) => { listeners.forEach((listener) => {
listener(memoryState); listener(memoryState);
}); });

View File

@@ -134,7 +134,6 @@ export async function GET(req: Request) {
const fontSize = trueHeading.length > 100 ? "30px" : "60px"; const fontSize = trueHeading.length > 100 ? "30px" : "60px";
return new ImageResponse( return new ImageResponse(
(
<div <div
tw="flex w-full relative flex-col p-9" tw="flex w-full relative flex-col p-9"
style={{ style={{
@@ -316,8 +315,7 @@ export async function GET(req: Request) {
</div> </div>
</div> </div>
</div> </div>
</div> </div>,
),
{ {
width: 1200, width: 1200,
height: 630, height: 630,

View File

@@ -1,18 +1,27 @@
import { AnimatePresence } from "@/components/ui/fade-in" import { AnimatePresence } from "@/components/ui/fade-in";
const ChangelogOne = () => { const ChangelogOne = () => {
return ( return (
<AnimatePresence> <AnimatePresence>
<div className="flex flex-col gap-4 items-start justify-center max-w-full md:max-w-2xl"> <div className="flex flex-col gap-4 items-start justify-center max-w-full md:max-w-2xl">
<img src="https://camo.githubusercontent.com/3282afc585d07e52e883ac2345467841e5c9cbe3befdec9dd6f84c603748e0d4/68747470733a2f2f726573656e642e636f6d2f5f6e6578742f696d6167653f75726c3d253246737461746963253246706f737473253246776562686f6f6b732e6a706726773d36343026713d3735" className="w-full h-[400px] object-cover rounded-lg" /> <img
src="https://camo.githubusercontent.com/3282afc585d07e52e883ac2345467841e5c9cbe3befdec9dd6f84c603748e0d4/68747470733a2f2f726573656e642e636f6d2f5f6e6578742f696d6167653f75726c3d253246737461746963253246706f737473253246776562686f6f6b732e6a706726773d36343026713d3735"
className="w-full h-[400px] object-cover rounded-lg"
/>
<div className="flex flex-col gap-2"> <div className="flex flex-col gap-2">
<h2 className="text-2xl font-bold tracking-tighter"> <h2 className="text-2xl font-bold tracking-tighter">
Commit message suggestions Commit message suggestions
</h2> </h2>
</div> </div>
<p className="text-gray-600 dark:text-gray-300 text-[0.855rem]"> <p className="text-gray-600 dark:text-gray-300 text-[0.855rem]">
In the latest release, I've added support for commit message and description suggestions via an integration with OpenAI. Commit looks at all of your changes, and feeds that into the machine with a bit of prompt-tuning to get back a commit message that does a surprisingly good job at describing the intent of your changes. In the latest release, I've added support for commit message and
It's also been a pretty helpful way to remind myself what the hell I was working on at the end of the day yesterday when I get back to my computer and realize I didn't commit any of my work. description suggestions via an integration with OpenAI. Commit looks
at all of your changes, and feeds that into the machine with a bit of
prompt-tuning to get back a commit message that does a surprisingly
good job at describing the intent of your changes. It's also been a
pretty helpful way to remind myself what the hell I was working on at
the end of the day yesterday when I get back to my computer and
realize I didn't commit any of my work.
</p> </p>
<div className="flex flex-col gap-2"> <div className="flex flex-col gap-2">
<h4 className="text-xl tracking-tighter"> Improvement</h4> <h4 className="text-xl tracking-tighter"> Improvement</h4>
@@ -34,6 +43,6 @@ const ChangelogOne = () => {
</ul> </ul>
</div> </div>
</AnimatePresence> </AnimatePresence>
) );
} };
export default ChangelogOne export default ChangelogOne;

View File

@@ -41,7 +41,6 @@ export default function Layout({ children }: { children: ReactNode }) {
Github. Github.
</Link>{" "} </Link>{" "}
</Banner> </Banner>
<body className={`${GeistSans.variable} ${GeistMono.variable} font-sans overflow-x-hidden`}>
<RootProvider> <RootProvider>
<NavbarProvider> <NavbarProvider>
<Navbar /> <Navbar />

View File

@@ -1,4 +1,3 @@
const SectionSvg = ({ const SectionSvg = ({
crossesOffset, crossesOffset,
}: { }: {

View File

@@ -5,7 +5,8 @@
"scripts": { "scripts": {
"build": "next build", "build": "next build",
"dev": "next dev", "dev": "next dev",
"start": "next start" "start": "next start",
"typecheck": "tsc --noEmit"
}, },
"dependencies": { "dependencies": {
"@codesandbox/sandpack-react": "^2.19.8", "@codesandbox/sandpack-react": "^2.19.8",

View File

@@ -24,7 +24,6 @@ onMounted(() => {
nextTick(() => { nextTick(() => {
const elements = elRef.value?.querySelectorAll(selector); const elements = elRef.value?.querySelectorAll(selector);
const classes = buttonVariants({ variant: "ghost", size: "xs" }).split(" "); const classes = buttonVariants({ variant: "ghost", size: "xs" }).split(" ");
elements?.forEach((el) => elements?.forEach((el) =>
el.classList.add(...classes, "!inline-flex", "!mr-2"), el.classList.add(...classes, "!inline-flex", "!mr-2"),
); );

View File

@@ -324,7 +324,6 @@ export const getOrgAdapter = (
members: [], members: [],
invitations: [], invitations: [],
}; };
// biome-ignore lint/complexity/noForEach: <explanation>
rows.forEach((row) => { rows.forEach((row) => {
if (row.member_id) { if (row.member_id) {
const existingMember = organization.members.find( const existingMember = organization.members.find(

View File

@@ -146,14 +146,12 @@ export function parseSetCookieHeader(
// Split the header into individual cookies // Split the header into individual cookies
const cookies = header.split(", "); const cookies = header.split(", ");
// biome-ignore lint/complexity/noForEach: <explanation>
cookies.forEach((cookie) => { cookies.forEach((cookie) => {
const [nameValue, ...attributes] = cookie.split("; "); const [nameValue, ...attributes] = cookie.split("; ");
const [name, value] = nameValue.split("="); const [name, value] = nameValue.split("=");
const cookieObj: CookieAttributes = { value }; const cookieObj: CookieAttributes = { value };
// biome-ignore lint/complexity/noForEach: <explanation>
attributes.forEach((attr) => { attributes.forEach((attr) => {
const [attrName, attrValue] = attr.split("="); const [attrName, attrValue] = attr.split("=");
cookieObj[attrName.toLowerCase()] = attrValue || true; cookieObj[attrName.toLowerCase()] = attrValue || true;

18309
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff