diff --git a/.eslintrc.json b/.eslintrc.json
index ab5cdb0..957cd15 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -1,7 +1,3 @@
{
- "extends": ["next/core-web-vitals", "prettier"],
- "rules": {
- "prettier/prettier": "error"
- },
- "plugins": ["prettier"]
+ "extends": ["next/core-web-vitals"]
}
diff --git a/app/components/Profile/Profile.EditModal.tsx b/app/components/Profile/Profile.EditModal.tsx
index d20b39c..7048df5 100644
--- a/app/components/Profile/Profile.EditModal.tsx
+++ b/app/components/Profile/Profile.EditModal.tsx
@@ -188,6 +188,7 @@ export const ProfileEditModal = (props: {
if (avatarModalProps.croppedImage) {
_uploadAvatar();
}
+ // eslint-disable-next-line react-hooks/exhaustive-deps
}, [avatarModalProps.croppedImage]);
if (!prefData || !loginData || prefError || loginError) {
diff --git a/app/components/ReleaseInfo/ReleaseInfo.LicensedPlatforms.tsx b/app/components/ReleaseInfo/ReleaseInfo.LicensedPlatforms.tsx
index 25f4d24..bbb2a28 100644
--- a/app/components/ReleaseInfo/ReleaseInfo.LicensedPlatforms.tsx
+++ b/app/components/ReleaseInfo/ReleaseInfo.LicensedPlatforms.tsx
@@ -14,7 +14,7 @@ export const ReleaseInfoStreaming = (props: { release_id: number }) => {
setData(await response.json());
};
_getData();
- }, []);
+ }, [props.release_id]);
return (
<>
@@ -32,7 +32,8 @@ export const ReleaseInfoStreaming = (props: { release_id: number }) => {
key={`platform_${item.id}`}
className="flex items-center gap-2 px-4 py-2 transition-colors bg-gray-100 rounded-lg hover:bg-gray-300 dark:bg-gray-700 dark:hover:bg-gray-600 "
>
-
+ {/* eslint-disable-next-line @next/next/no-img-element */}
+
{item.name}
); diff --git a/app/components/ReleasePlayer/ReleasePlayerCustom.tsx b/app/components/ReleasePlayer/ReleasePlayerCustom.tsx index d73a892..6aa170c 100644 --- a/app/components/ReleasePlayer/ReleasePlayerCustom.tsx +++ b/app/components/ReleasePlayer/ReleasePlayerCustom.tsx @@ -212,7 +212,8 @@ export const ReleasePlayerCustom = (props: { } }; __getInfo(); - }, []); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [props.id, props.token]); useEffect(() => { const __getInfo = async () => { @@ -244,6 +245,7 @@ export const ReleasePlayerCustom = (props: { if (voiceover.selected) { __getInfo(); } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [voiceover.selected]); useEffect(() => { @@ -284,6 +286,7 @@ export const ReleasePlayerCustom = (props: { if (source.selected) { __getInfo(); } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [source.selected]); useEffect(() => { @@ -346,6 +349,7 @@ export const ReleasePlayerCustom = (props: { setPlayerError(null); __getInfo(); } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [episode.selected]); return ( diff --git a/app/components/ReleasePlayer/SourceSelector.tsx b/app/components/ReleasePlayer/SourceSelector.tsx index e02cbfb..bdf6deb 100644 --- a/app/components/ReleasePlayer/SourceSelector.tsx +++ b/app/components/ReleasePlayer/SourceSelector.tsx @@ -20,7 +20,7 @@ const DropdownTrigger = ({ name }: Source) => { ); }; -const DropdownItem = ({ name, episodes_count }: Source) => { +const DropdownItemInternal = ({ name, episodes_count }: Source) => { return ({name}
{pinned && ( @@ -36,7 +37,8 @@ const DropdownItemInternal = ({ return ({name}
{pinned && ( diff --git a/app/pages/CreateCollection.tsx b/app/pages/CreateCollection.tsx index bdb690c..a7b2982 100644 --- a/app/pages/CreateCollection.tsx +++ b/app/pages/CreateCollection.tsx @@ -34,6 +34,7 @@ export const CreateCollectionPage = () => { if (userStore.state === "finished" && !userStore.token) { router.push("/login?redirect=/collections/create"); } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [userStore]); const [edit, setEdit] = useState(false); diff --git a/package-lock.json b/package-lock.json index 7238a77..773239b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,6 +7,7 @@ "": { "name": "new", "version": "0.1.0", + "hasInstallScript": true, "dependencies": { "apexcharts": "^3.52.0", "deepmerge-ts": "^7.1.0", @@ -38,7 +39,6 @@ "eslint": "^8", "eslint-config-next": "14.2.5", "postcss": "^8", - "prettier": "^3.5.3", "tailwind-scrollbar": "^3.1.0", "tailwindcss": "^3.4.1" } @@ -5532,22 +5532,6 @@ "node": ">= 0.8.0" } }, - "node_modules/prettier": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", - "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", - "dev": true, - "license": "MIT", - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, "node_modules/prop-types": { "version": "15.8.1", "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz", diff --git a/package.json b/package.json index 6519a9b..709f0c9 100644 --- a/package.json +++ b/package.json @@ -40,8 +40,7 @@ "eslint": "^8", "eslint-config-next": "14.2.5", "postcss": "^8", - "prettier": "^3.5.3", "tailwind-scrollbar": "^3.1.0", "tailwindcss": "^3.4.1" } -} \ No newline at end of file +}