chore: add eslint plugins for import and className sorting

This commit is contained in:
shadcn 2023-06-11 15:39:04 +04:00
parent 0fa620719b
commit d96be6654d
36 changed files with 522 additions and 174 deletions

View file

@ -1,5 +1,5 @@
import type { NextRequest, NextFetchEvent } from 'next/server'
import type { NextApiRequest } from 'next'
import type { NextFetchEvent, NextRequest } from 'next/server'
export const initAnalytics = ({
request,

View file

@ -1,6 +1,6 @@
import {
JetBrains_Mono as FontMono,
Lora as FontMessage,
JetBrains_Mono as FontMono,
Inter as FontSans
} from 'next/font/google'

View file

@ -1,4 +1,5 @@
'use client'
import { useState } from 'react'
export interface useCopyToClipboardProps {

View file

@ -1,5 +1,4 @@
import type { RefObject } from 'react'
import { useRef } from 'react'
import { useRef, type RefObject } from 'react'
export function useEnterSubmit(): {
formRef: RefObject<HTMLFormElement>

View file

@ -1,4 +1,5 @@
'use client'
import { useEffect, useState } from 'react'
export default function useWindowSize() {