fix: soo many lint errors
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { resources } from "@lib/resources.ts";
|
||||
import fuzzysort from "npm:fuzzysort";
|
||||
import fuzzysort from "fuzzysort";
|
||||
import { extractHashTags } from "@lib/string.ts";
|
||||
import { listResources } from "./marka/index.ts";
|
||||
import { GenericResource } from "./marka/schema.ts";
|
||||
import { parseRating } from "./helpers.ts";
|
||||
|
||||
type ResourceType = keyof typeof resources;
|
||||
|
||||
@@ -72,8 +73,8 @@ export async function searchResource(
|
||||
|
||||
if (
|
||||
!(resource.name in results) &&
|
||||
rating && resource?.content?.reviewRating &&
|
||||
resource.content?.reviewRating?.ratingValue >= rating
|
||||
rating && resource.content.reviewRating?.ratingValue &&
|
||||
parseRating(resource.content.reviewRating.ratingValue) >= rating
|
||||
) {
|
||||
results[resource.name] = resource;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user