Skip to content

Commit 94f9b04

Browse files
committed
[FIX] lint
1 parent 8da89f7 commit 94f9b04

6 files changed

Lines changed: 2 additions & 6 deletions

File tree

packages/react-tools-lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@ndriadev/react-tools",
33
"description": "A React library of hooks, components and utils ready to use",
44
"private": false,
5-
"version": "1.0.0",
5+
"version": "0.0.0",
66
"type": "module",
77
"files": [
88
"./dist"

packages/react-tools-lib/src/components/SwitchCase.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable @typescript-eslint/no-unnecessary-type-constraint */
21
import { Children, PropsWithChildren, ReactNode, isValidElement } from "react"
32

43
const Case = ({ children, when }: PropsWithChildren<{ when: boolean | undefined | null }>) => {

packages/react-tools-lib/src/hooks/api-dom/useDialogBox.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ function useDialogBox(type: "alert"): ((message?: any) => void);
1212
function useDialogBox(type: "confirm"): ((message?: string) => boolean);
1313
function useDialogBox(type: "prompt" | "confirm" | "alert"): ((message?: string, _default?: string) => string | null) | ((message?: any) => void) | ((message?: string) => boolean) {
1414
const prompt = useCallback((message?: string, _default?: string) => window.prompt(message, _default), []);
15-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1615
const alert = useCallback((message?: any) => window.alert(message), []);
1716
const confirm = useCallback((message?: string) => window.confirm(message), []);
1817

packages/react-tools-lib/src/hooks/api-dom/useScript.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export const useScript: UseScript = function (attributes, options) {
5353

5454
useEffectOnce(() => {
5555
return () => {
56-
// eslint-disable-next-line react-hooks/exhaustive-deps
5756
if (opts.current.removeOnUnmount) {
5857
removeScript();
5958
}

packages/react-tools-lib/src/hooks/state/useProxyState.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
12
import { useReducer, useRef } from "react"
23

34
/**
@@ -6,7 +7,6 @@ import { useReducer, useRef } from "react"
67
* @param {boolean} [proxyInDepth=false] - if true, it creates proxy for nested object also.
78
* @returns {T} state
89
*/
9-
1010
export const useProxyState = <T extends Record<string, any>>(initialState: T | (() => T), proxyInDepth:boolean=false): T => {
1111
const initialStateComputed = useRef(initialState instanceof Function ? initialState() : initialState);
1212
const [, update] = useReducer(t => t + 1, 0);

packages/react-tools-lib/src/utils/createHTMLMediaElement.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ export default function createHTMLMediaHook<T extends HTMLAudioElement | HTMLVid
9595
onDurationChange: wrapEvent(props.onDurationChange, onDurationChange),
9696
onTimeUpdate: wrapEvent(props.onTimeUpdate, onTimeUpdate),
9797
onProgress: wrapEvent(props.onProgress, onProgress),
98-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
9998
} as unknown as DetailedReactHTMLElement<HTMLAttributes<HTMLAudioElement>, HTMLAudioElement>);
10099
}, [props])
101100

0 commit comments

Comments
 (0)