chore: add noUnusedLocals and noUnusedParameters rules (#3476)

Co-authored-by: LongYinan <lynweklm@gmail.com>
This commit is contained in:
Alex Yang
2023-07-30 22:47:37 -07:00
committed by GitHub
parent 5a8c1dcb57
commit 1d43e46f99
14 changed files with 17 additions and 16 deletions

View File

@@ -32,7 +32,7 @@ export const notificationsAtom = atom<Notification[]>(get =>
get(notificationsBaseAtom)
);
export const removeNotificationAtom = atom(null, (get, set, key: string) => {
export const removeNotificationAtom = atom(null, (_, set, key: string) => {
set(notificationsBaseAtom, notifications =>
notifications.filter(notification => notification.key !== key)
);
@@ -40,7 +40,7 @@ export const removeNotificationAtom = atom(null, (get, set, key: string) => {
export const pushNotificationAtom = atom<null, [Notification], void>(
null,
(get, set, newNotification) => {
(_, set, newNotification) => {
const key = newNotification.key;
const removeNotification = () =>
set(notificationsBaseAtom, notifications =>

View File

@@ -145,6 +145,7 @@ export class DataDefine<Data extends DataTypeShape = Record<string, unknown>> {
interface DataDefineConfig<T extends DataTypeShape> {
name: string;
supers: DataDefine[];
_phantom?: T;
}
interface DataHelper<T extends DataTypeShape> {