diff --git a/eslint.config.js b/eslint.config.js index 1e76ba4..72994d5 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -13,9 +13,5 @@ export default defineConfig([ languageOptions: { globals: globals.browser, }, - rules: { - // Ionic's base level; `recommended` makes it an error, which is meant for libraries. - '@typescript-eslint/explicit-module-boundary-types': 'warn', - }, }, ]); diff --git a/package.json b/package.json index 62450f0..1abf071 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "test.unit": "vitest", "lint": "npm run eslint && npm run prettier -- --check", "lint:fix": "npm run eslint -- --fix && npm run prettier -- --write", - "eslint": "eslint", + "eslint": "eslint --max-warnings 0", "prettier": "prettier \"**/*.{ts,tsx}\"" }, "dependencies": { diff --git a/src/hooks/usePhotoGallery.ts b/src/hooks/usePhotoGallery.ts index 6db0c8f..5f9160c 100644 --- a/src/hooks/usePhotoGallery.ts +++ b/src/hooks/usePhotoGallery.ts @@ -7,7 +7,11 @@ import { isPlatform } from '@ionic/react'; import { useState, useEffect } from 'react'; const PHOTO_STORAGE = 'photos'; -export function usePhotoGallery() { +export function usePhotoGallery(): { + deletePhoto: (photo: UserPhoto) => Promise; + photos: UserPhoto[]; + takePhoto: () => Promise; +} { const [photos, setPhotos] = useState([]); useEffect(() => {