Spelunking-Studios / The-Caverns-Website

Found single char variable name JS-C1002
Anti-pattern
Minor
20 days ago2 years old
Variable name is too small
55      </div>
56    )
57  }
58  let l = [];59  for (let i = 0; i < jdata.enemies.length; i++) {
60    l.push((
61      <Link href={`/game-info/enemy-stats/${jdata.enemies[i].toLowerCase()}`} className="">
Variable name is too small
 3import { Redis } from "@upstash/redis";
 4
 5export default async function handler(req, res) {
 6    let c = getCookie("ahc", { req, res }); 7    if (!c) {
 8        res.redirect(302, "/?error=SoF");
 9        return;
Variable name is too small
14	const [period, setPeriod] = useState(props.period ? props.period : 1000);
15	const [count, setCount] = useState(0);
16	const nextCount = () => {
17		let r = -1;18		while (r < 0 || r == count) {
19			r = Math.floor(Math.random() * items.length);
20		}
Variable name is too small
 7	const [images, setImages] = useState([]);
 8	const [time, setTime] = useState((new Date()).getTime());
 9	const loadImages = () => {
10		let l = [];11		imageSrcs.forEach((imageSrc, i) => {
12			l.push(
13				<img className={`flex-1 rounded w-auto h-auto ml-auto mr-auto max-w-sm md:max-w-md lg:max-w-lg xl:max-w-xl 2xl:max-w-2xl ${(index == i) ? styles.imageCarouselActiveImage : styles.imageCarouselInactiveImage}`} src={imageSrc} key={i}/>