diff --git a/.eslintrc b/.eslintrc index b216108..d7d0de7 100644 --- a/.eslintrc +++ b/.eslintrc @@ -26,7 +26,6 @@ "@typescript-eslint/no-array-constructor": "error", "@typescript-eslint/no-empty-function": "error", "@typescript-eslint/no-empty-interface": "error", - "@typescript-eslint/no-empty-pattern": "none", "@typescript-eslint/no-namespace": "error", "@typescript-eslint/no-non-null-assertion": "warn", "@typescript-eslint/no-unused-vars": [ diff --git a/src/ReplicatedStorage/ui/padding.tsx b/src/ReplicatedStorage/ui/padding.tsx index 6554ad7..e3981b3 100644 --- a/src/ReplicatedStorage/ui/padding.tsx +++ b/src/ReplicatedStorage/ui/padding.tsx @@ -10,8 +10,7 @@ interface PaddingProps extends Roact.JsxInstanceProperties { Change?: Roact.JsxInstanceChangeEvents } -const padding: Hooks.FC = (props, hooks) => { - const {} = hooks +const padding: Hooks.FC = (props, _hooks) => { const { Padding, PaddingX, PaddingY } = props const spreadableProps = { ...props } as Partial diff --git a/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/hotbar.tsx b/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/hotbar.tsx index d536685..1bef1a6 100644 --- a/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/hotbar.tsx +++ b/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/hotbar.tsx @@ -10,12 +10,9 @@ interface hotbarProps extends Roact.JsxInstanceProperties { } const hotbar: Hooks.FC = (props, hooks) => { - const {} = hooks - const {} = props - const spreadableProps = { ...props } as Partial - const { world, clientState } = useWorldContext(hooks) + const { clientState } = useWorldContext(hooks) const keycodes: Enum.KeyCode[] = [ Enum.KeyCode.One, diff --git a/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/slot.tsx b/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/slot.tsx index 1fa6dc1..3b38472 100644 --- a/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/slot.tsx +++ b/src/StarterPlayer/StarterPlayerScripts/ui/hotbar/slot.tsx @@ -14,17 +14,17 @@ interface slotProps extends Roact.JsxInstanceProperties { } const slot: Hooks.FC = (props, hooks) => { - const { useEffect } = hooks const { index, keycode, tool } = props + const { useEffect } = hooks const spreadableProps = { ...props } as Partial delete spreadableProps.index delete spreadableProps.keycode delete spreadableProps.tool - const { world, clientState } = useWorldContext(hooks) + const { clientState } = useWorldContext(hooks) - const handleActivated = () => { + const handleActivated = (): void => { tool.Parent !== clientState.character ? clientState.character.Humanoid.EquipTool(tool) : clientState.character.Humanoid.UnequipTools() @@ -52,7 +52,7 @@ const slot: Hooks.FC = (props, hooks) => { BackgroundTransparency={0.3} Text="" Event={{ - Activated: () => { + Activated: (): void => { handleActivated() } }} diff --git a/src/StarterPlayer/StarterPlayerScripts/ui/main.tsx b/src/StarterPlayer/StarterPlayerScripts/ui/main.tsx index 150c969..2b57d2b 100644 --- a/src/StarterPlayer/StarterPlayerScripts/ui/main.tsx +++ b/src/StarterPlayer/StarterPlayerScripts/ui/main.tsx @@ -7,10 +7,7 @@ interface mainProps extends Roact.JsxInstanceEvents { Change?: Roact.JsxInstanceChangeEvents } -const main: Hooks.FC = (props, hooks) => { - const {} = props - const {} = hooks - +const main: Hooks.FC = (props, _hooks) => { const spreadableProps = { ...props } as Partial return (