🚨 fix: resolve linting type error
All checks were successful
Integration Tests / integration-tests (pull_request) Successful in 1m44s

This commit is contained in:
2026-03-15 22:32:21 +07:00
parent 74ad82c4f0
commit eecaeb13e8
4 changed files with 8 additions and 3 deletions

View File

@ -5,6 +5,13 @@ import nextTs from "eslint-config-next/typescript";
const eslintConfig = defineConfig([ const eslintConfig = defineConfig([
...nextVitals, ...nextVitals,
...nextTs, ...nextTs,
{
rules: {
// Disable the rule that enforces the use of `next/image` for image optimization.
"@next/next/no-img-element": "off",
},
},
// Override default ignores of eslint-config-next. // Override default ignores of eslint-config-next.
globalIgnores([ globalIgnores([
// Default ignores of eslint-config-next: // Default ignores of eslint-config-next:

View File

@ -4,7 +4,6 @@ import { useRef } from "react";
import { RecommendationAnime } from "../../actions/getRecommenationAnime"; import { RecommendationAnime } from "../../actions/getRecommenationAnime";
import AnimeRecommendationCard from "./components/Card"; import AnimeRecommendationCard from "./components/Card";
import ScrollingButton from "./components/ScrollingButton"; import ScrollingButton from "./components/ScrollingButton";
import { Skeleton } from "@/shared/libs/shadcn/ui/skeleton";
const RecommendationClient = ({ const RecommendationClient = ({
result, result,

View File

@ -6,7 +6,7 @@ const RecommendationSkeleton = () => {
return ( return (
<div className="flex gap-2 w-full overflow-hidden mt-4"> <div className="flex gap-2 w-full overflow-hidden mt-4">
{[...Array(skeletonLenght)].map((_, index) => ( {[...Array(skeletonLenght)].map((_, index) => (
<div tabIndex={index}> <div key={index}>
<Skeleton className="h-88 w-64" /> <Skeleton className="h-88 w-64" />
<Skeleton className="mt-3 h-6 w-64 rounded-full" /> <Skeleton className="mt-3 h-6 w-64 rounded-full" />
<Skeleton className="mt-1 h-4 w-12 rounded-full" /> <Skeleton className="mt-1 h-4 w-12 rounded-full" />

View File

@ -1,7 +1,6 @@
import { Suspense } from "react"; import { Suspense } from "react";
import RecommendationMain from "./main"; import RecommendationMain from "./main";
import RecommendationSkeleton from "./skeleton"; import RecommendationSkeleton from "./skeleton";
import ScrollingButton from "./components/ScrollingButton";
const Recommendation = async () => { const Recommendation = async () => {
return ( return (