diff --git a/components/package.json b/components/package.json index f106cc30..537a0a73 100644 --- a/components/package.json +++ b/components/package.json @@ -30,8 +30,6 @@ "scripts": { "build": "vite build", "build:watch": "vite build --watch --mode development", - "lint": "eslint . -c eslint.config.mjs", - "lint:fix": "eslint . -c eslint.config.mjs --fix", "lint:types": "tsc --noEmit", "prepack": "pnpm build", "test": "vitest run", diff --git a/components/src/components/atoms/FileInput/FileInput.test.tsx b/components/src/components/atoms/FileInput/FileInput.test.tsx index dd5f26db..127683a5 100644 --- a/components/src/components/atoms/FileInput/FileInput.test.tsx +++ b/components/src/components/atoms/FileInput/FileInput.test.tsx @@ -18,7 +18,7 @@ describe('', () => { }) it('should pass a ref down', async () => { - const ref = { current: null } as React.RefObject + const ref = { current: null } as React.RefObject render( {context => diff --git a/components/src/components/molecules/Checkbox/Checkbox.tsx b/components/src/components/molecules/Checkbox/Checkbox.tsx index 88d4d290..f01fd67e 100644 --- a/components/src/components/molecules/Checkbox/Checkbox.tsx +++ b/components/src/components/molecules/Checkbox/Checkbox.tsx @@ -58,8 +58,7 @@ Omit< | 'width' > -// TODO: Fix the SVG type -const SVG = (props: any) => +const SVG = (props: React.SVGProps) => const InputBox = React.forwardRef( ({ baseColor, baseTheme, disabled, checked, ...props }, ref) => ( diff --git a/components/src/components/molecules/CurrencyToggle/CurrencyToggle.tsx b/components/src/components/molecules/CurrencyToggle/CurrencyToggle.tsx index 0ec94159..25f15692 100644 --- a/components/src/components/molecules/CurrencyToggle/CurrencyToggle.tsx +++ b/components/src/components/molecules/CurrencyToggle/CurrencyToggle.tsx @@ -26,10 +26,9 @@ const Container = (props: BoxProps) => ( ) const Label = ({ - $type, $size, ...props -}: BoxProps & { $size: Size, $type: 'eth' | 'fiat' }) => ( +}: BoxProps & { $size: Size }) => (