chore(lint): unblock next lint and fix current eslint errors

This commit is contained in:
2026-03-13 06:24:38 +00:00
parent 903118e47d
commit 344b6efed1
10 changed files with 815 additions and 1085 deletions
+2 -5
View File
@@ -1,5 +1,4 @@
import Link from "next/link";
import { useRouter } from "next/router";
export function capitalizeFirstLetter(val) {
return String(val).charAt(0).toUpperCase() + String(val).slice(1);
@@ -44,11 +43,9 @@ export function hasOwnPropertyAndNotNull(obj, property) {
return obj.hasOwnProperty(property) && obj[property] !== null;
}
export function linkedCasesList(linkedCasesReference) {
export function linkedCasesList(linkedCasesReference, locale) {
//console.log(linkedCasesReference);
const router = useRouter();
linkedCasesReference = linkedCasesReference.value || [];
return (
@@ -59,7 +56,7 @@ export function linkedCasesList(linkedCasesReference) {
<li key={key}>
<Link
href={
router.locale == "cy"
locale == "cy"
? "/canlyniadauchwilio?q=" +
item.title +
"&lk=1"