Skip to content

Commit

Permalink
fix: 修复biome的lint和tsconfig有差异的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
cyhuajuan committed May 15, 2024
1 parent d8e248c commit 7172611
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 13 deletions.
3 changes: 3 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 16,9 @@
},
"style": {
"noNonNullAssertion": "off"
},
"correctness": {
"noUnusedImports": "error"
}
}
},
Expand Down
2 changes: 0 additions & 2 deletions src/components/global/global-alert.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 3,6 @@ import { useAtom } from 'jotai';
import type { FC } from 'react';
import {
AlertDialog,
AlertDialogAction,
AlertDialogCancel,
AlertDialogContent,
AlertDialogDescription,
AlertDialogFooter,
Expand Down
10 changes: 1 addition & 9 deletions src/components/rule/rules-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 7,13 @@ import {
Dialog,
DialogClose,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
} from '../ui/dialog';
import { RuleEditPanel } from './rule-edit-panel';
import { useForm } from 'react-hook-form';
import { Form } from '../ui/form';
import {
RuleType,
getRuleTypeDefaultValue,
getRuleTypeDefaultInfo,
type Rule,
} from '@/lib/rule';
import { nanoid } from 'nanoid';
import { getRuleTypeDefaultValue, type Rule } from '@/lib/rule';
import { updateProfile } from '@/lib/profile';
import { QueryType } from '@/lib/query';
import { ScrollArea } from '../ui/scroll-area';
Expand Down
1 change: 0 additions & 1 deletion src/lib/atoms/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 1,5 @@
import { atom, createStore } from 'jotai';
import type { ReactNode } from 'react';
import { atomFamily } from 'jotai/utils';

export const atomStore = createStore();

Expand Down
1 change: 0 additions & 1 deletion src/routes/profile/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 5,6 @@ import { useSpring, animated } from '@react-spring/web';
import { Button } from '@/components/ui/button';
import { useMutation, useQueryClient } from '@tanstack/react-query';
import { addProfile, getProfile, type Profile } from '@/lib/profile';
import { nanoid } from 'nanoid';
import { QueryType } from '@/lib/query';
import { IconLayoutSidebarLeftCollapse } from '@tabler/icons-react';
import { atomStore, filesAtom } from '@/lib/atoms';
Expand Down

0 comments on commit 7172611

Please sign in to comment.