Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: format code with Prettier and StandardJS #556

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/stateless/FloatAny/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useRef } from 'react'

Check failure on line 1 in src/components/stateless/FloatAny/index.jsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

ESLint

ESLint: Install the 'eslint' package
import { motion, useAnimationFrame, useMotionValue } from 'motion/react'
import clsx from 'clsx'

Expand All @@ -8,7 +8,7 @@
amplitude = [10, 30, 30],
rotationRange = [15, 15, 7.5],
timeOffset = 0,
className,
className
}) => {
const x = useMotionValue(0)
const y = useMotionValue(0)
Expand Down Expand Up @@ -42,7 +42,7 @@
})

return (
<motion.div

Check notice on line 45 in src/components/stateless/FloatAny/index.jsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

Unresolved JSX component

Unresolved component motion.div
style={{
x,
y,
Expand All @@ -50,7 +50,7 @@
rotateX,
rotateY,
rotateZ,
transformStyle: 'preserve-3d',
transformStyle: 'preserve-3d'
}}
className={clsx('will-change-transform', className)}
>
Expand Down
20 changes: 10 additions & 10 deletions src/components/stateless/TextLoader/index.jsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { useState, useEffect } from 'react'

Check failure on line 1 in src/components/stateless/TextLoader/index.jsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

ESLint

ESLint: Install the 'eslint' package

import { motion, AnimatePresence } from 'motion/react'

export function LoadingText({ text, dots }) {
export function LoadingText ({ text, dots }) {
return (
<div className="relative">
<AnimatePresence mode="wait">
<div className='relative'>
<AnimatePresence mode='wait'>
<motion.div

Check notice on line 9 in src/components/stateless/TextLoader/index.jsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

Unresolved JSX component

Unresolved component motion.div
key={text}
initial={{ opacity: 0, y: 10 }}
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0, y: -10 }}
transition={{ duration: 0.3 }}
className="w-full text-lg font-medium"
className='w-full text-lg font-medium'
>
{text}
{dots}
Expand Down Expand Up @@ -43,14 +43,14 @@

if (direction === 'horizontal') {
return (
<div className="flex items-center justify-start w-full gap-3 px-3 py-2 border rounded-sm">
<div className='flex items-center justify-start w-full gap-3 px-3 py-2 border rounded-sm'>
<motion.div

Check notice on line 47 in src/components/stateless/TextLoader/index.jsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

Unresolved JSX component

Unresolved component motion.div
className="size-5 md:size-6 border-[3px] text-primary-foreground border-t-transparent rounded-full"
className='size-5 md:size-6 border-[3px] text-primary-foreground border-t-transparent rounded-full'
animate={{ rotate: 360 }}
transition={{
duration: 1,
repeat: Number.POSITIVE_INFINITY,
ease: 'linear',
ease: 'linear'
}}
/>
<LoadingText text={messages[currentIndex]} dots={dots} />
Expand All @@ -59,14 +59,14 @@
}

return (
<div className="flex flex-col items-center justify-center gap-4 py-1">
<div className='flex flex-col items-center justify-center gap-4 py-1'>
<motion.div

Check notice on line 63 in src/components/stateless/TextLoader/index.jsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

Unresolved JSX component

Unresolved component motion.div
className="size-10 md:size-12 border-[3px] text-primary-foreground border-t-transparent rounded-full"
className='size-10 md:size-12 border-[3px] text-primary-foreground border-t-transparent rounded-full'
animate={{ rotate: 360 }}
transition={{
duration: 1,
repeat: Number.POSITIVE_INFINITY,
ease: 'linear',
ease: 'linear'
}}
/>
<LoadingText text={messages[currentIndex]} dots={dots} />
Expand Down
Loading
Loading