diff --git a/client-solid/.eslintrc.cjs b/client-solid/.eslintrc.cjs index c8102e3..4271642 100644 --- a/client-solid/.eslintrc.cjs +++ b/client-solid/.eslintrc.cjs @@ -4,4 +4,7 @@ module.exports = { parser: '@typescript-eslint/parser', plugins: ['@typescript-eslint'], root: true, + "rules": { + "@typescript-eslint/explicit-function-return-type": "warn" + } }; diff --git a/client-solid/src/Icons.tsx b/client-solid/src/Icons.tsx index b4ce6fb..9384b96 100644 --- a/client-solid/src/Icons.tsx +++ b/client-solid/src/Icons.tsx @@ -1,4 +1,6 @@ -export function Arrow() { +import { JSXElement } from "solid-js"; + +export function Arrow(): JSXElement { return ( { + const closeModal = (): void => { modal_ctx.setLoginModalOpen(false); }; diff --git a/client-solid/src/Navbar.tsx b/client-solid/src/Navbar.tsx index 8e9285d..ac6675d 100644 --- a/client-solid/src/Navbar.tsx +++ b/client-solid/src/Navbar.tsx @@ -4,7 +4,7 @@ import { LoginContext } from "./Root"; import { ModalContext } from "./Root"; // Represents a single list item in the menu bar -function MenuItem(props: { href: string; children: JSXElement }) { +function MenuItem(props: { href: string; children: JSXElement }): JSXElement { return (
  • @@ -15,7 +15,7 @@ function MenuItem(props: { href: string; children: JSXElement }) { } // Represents the menu bar at the top of the page -function Menu() { +function Menu(): JSXElement { const login_ctx = useContext(LoginContext); return (