mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-23 11:17:26 +02:00
🎨 Add linting and prettier to more places (#1432)
This commit is contained in:
parent
de6963db4f
commit
ee68d80026
70 changed files with 136 additions and 141 deletions
|
@ -81,4 +81,4 @@ const AvatarFallback = React.forwardRef<
|
|||
});
|
||||
AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
||||
|
||||
export { Avatar, AvatarFallback,AvatarImage };
|
||||
export { Avatar, AvatarFallback, AvatarImage };
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
import { Slot } from "@radix-ui/react-slot";
|
||||
import type {VariantProps } from "class-variance-authority";
|
||||
import type { VariantProps } from "class-variance-authority";
|
||||
import { cva } from "class-variance-authority";
|
||||
import * as React from "react";
|
||||
|
||||
import type { ComponentPropsWithout, RemovedProps } from "./helpers/component-props";
|
||||
import type {
|
||||
ComponentPropsWithout,
|
||||
RemovedProps,
|
||||
} from "./helpers/component-props";
|
||||
import { cn } from "./lib/utils";
|
||||
|
||||
type FlexElement = React.ElementRef<"div">;
|
||||
|
|
|
@ -1,15 +1,8 @@
|
|||
import type * as LabelPrimitive from "@radix-ui/react-label";
|
||||
import { Slot } from "@radix-ui/react-slot";
|
||||
import * as React from "react";
|
||||
import type {
|
||||
ControllerProps,
|
||||
FieldPath,
|
||||
FieldValues} from "react-hook-form";
|
||||
import {
|
||||
Controller,
|
||||
FormProvider,
|
||||
useFormContext,
|
||||
} from "react-hook-form";
|
||||
import type { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
|
||||
import { Controller, FormProvider, useFormContext } from "react-hook-form";
|
||||
|
||||
import { Label } from "./label";
|
||||
import { cn } from "./lib/utils";
|
||||
|
|
|
@ -186,4 +186,4 @@ function useToast() {
|
|||
};
|
||||
}
|
||||
|
||||
export { toast,useToast };
|
||||
export { toast, useToast };
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"use client";
|
||||
import { Slot } from "@radix-ui/react-slot";
|
||||
import type {VariantProps } from "class-variance-authority";
|
||||
import type { VariantProps } from "class-variance-authority";
|
||||
import { cva } from "class-variance-authority";
|
||||
|
||||
import { cn } from "./lib/utils";
|
||||
|
|
|
@ -11,7 +11,7 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
|
|||
className={cn(
|
||||
"border-input placeholder:text-muted-foreground flex min-h-[80px] rounded-md border bg-white px-2 py-2 text-sm disabled:cursor-not-allowed disabled:opacity-50",
|
||||
"focus-visible:ring-offset-input-background focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-offset-1",
|
||||
"focus-visible:border-primary-400 focus-visible:ring-primary-100",
|
||||
"focus-visible:border-primary-400 focus-visible:ring-primary-100",
|
||||
className,
|
||||
)}
|
||||
ref={ref}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import * as ToastPrimitives from "@radix-ui/react-toast";
|
||||
import { type VariantProps,cva } from "class-variance-authority";
|
||||
import type { VariantProps } from "class-variance-authority";
|
||||
import { cva } from "class-variance-authority";
|
||||
import { X } from "lucide-react";
|
||||
import * as React from "react";
|
||||
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
"paths": {
|
||||
"@/utils": ["src/lib/utils.ts"],
|
||||
"@/components/*": ["src/*"],
|
||||
"@/ui/*": ["src/*"],
|
||||
},
|
||||
"@/ui/*": ["src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["**/*.ts", "**/*.tsx"],
|
||||
"exclude": ["node_modules"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue