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 #580

Closed
wants to merge 1 commit into from
Closed
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
2 changes: 1 addition & 1 deletion src/components/stateless/BorderBeam/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'

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

View workflow job for this annotation

GitHub Actions / Qodana for JS

ESLint

ESLint: Install the 'eslint' package
import clsx from 'clsx'

const BorderBeam = ({
Expand All @@ -21,7 +21,7 @@
'--border-width': borderWidth,
'--color-from': colorFrom,
'--color-to': colorTo,
'--delay': `-${delay}s`,
'--delay': `-${delay}s`
}}
className={clsx(
'pointer-events-none absolute inset-0 rounded-[inherit] [border:calc(var(--border-width)*1px)_solid_transparent]',
Expand Down
8 changes: 4 additions & 4 deletions src/components/stateless/WordRotate/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useEffect, useState } from 'react'

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

View workflow job for this annotation

GitHub Actions / Qodana for JS

ESLint

ESLint: Install the 'eslint' package
import { AnimatePresence, motion, MotionProps } from 'motion/react'

Check warning on line 2 in src/components/stateless/WordRotate/index.jsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

Unused import

Unused import specifier MotionProps

import clsx from 'clsx'
Expand All @@ -10,9 +10,9 @@
initial: { opacity: 0, y: -50 },
animate: { opacity: 1, y: 0 },
exit: { opacity: 0, y: 50 },
transition: { duration: 0.25, ease: 'easeOut' },
transition: { duration: 0.25, ease: 'easeOut' }
},
className,
className
}) => {
const [index, setIndex] = useState(0)

Expand All @@ -25,9 +25,9 @@
}, [words, duration])

return (
<div className="py-2 overflow-hidden">
<AnimatePresence mode="wait">
<div className='py-2 overflow-hidden'>
<AnimatePresence mode='wait'>
<motion.span key={words[index]} className={clsx(className)} {...motionProps}>

Check notice on line 30 in src/components/stateless/WordRotate/index.jsx

View workflow job for this annotation

GitHub Actions / Qodana for JS

Unresolved JSX component

Unresolved component motion.span
{words[index]}
</motion.span>
</AnimatePresence>
Expand Down
Loading
Loading