diff --git a/.eslintrc.json b/.eslintrc.json index f19b6f51..8538c150 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -31,7 +31,8 @@ ], "parser": "@typescript-eslint/parser", "extends": [ - "next" + "plugin:react/recommended", + "plugin:react-hooks/recommended" ], "settings": { "react": { @@ -76,8 +77,6 @@ "no-extra-semi": ["error"], "no-floating-decimal": ["error"], "no-global-assign": ["error"], - "@next/next/no-img-element": ["off"], - "import/no-anonymous-default-export": ["off"], "no-implicit-coercion": ["error"], "no-implicit-globals": ["error"], "no-implied-eval": ["error"], diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..9c768b72 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,11 @@ +# Travis CI Configuration + +language: node_js +node_js: + - "16" +install: + - npm install +before_script: + - next build +script: + - tsc --noEmit diff --git a/components/app/AppHead.tsx b/components/app/AppHead.tsx index 3085f7b7..326fe274 100644 --- a/components/app/AppHead.tsx +++ b/components/app/AppHead.tsx @@ -5,6 +5,7 @@ function AppHead() { return ( Faith Dashboard + diff --git a/components/generic/audio-player/AudioPlayer.tsx b/components/generic/audio-player/AudioPlayer.tsx index 6802513b..d94c6246 100644 --- a/components/generic/audio-player/AudioPlayer.tsx +++ b/components/generic/audio-player/AudioPlayer.tsx @@ -23,6 +23,7 @@ function AudioPlayer({ audioElementKey, audioUrl, currentTime, setCurrentTime, i
void }; +type Props = { audioElement: HTMLAudioElement, audioUrl: string, isPlaying: boolean, setIsPlaying: (newIsPlaying: boolean) => void }; -function AudioPlayerPlayPause({ audioElement, isPlaying, setIsPlaying }: Props) { +function AudioPlayerPlayPause({ audioElement, audioUrl, isPlaying, setIsPlaying }: Props) { function toggleAudioElementPlayback() { if (audioElement.paused) { @@ -18,7 +18,7 @@ function AudioPlayerPlayPause({ audioElement, isPlaying, setIsPlaying }: Props) return (