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

Closed
wants to merge 1 commit into from

Conversation

deepsource-autofix[bot]
Copy link
Contributor

This commit fixes the style issues introduced in b2d71bb according to the output
from Prettier and StandardJS.

Details: None

This commit fixes the style issues introduced in b2d71bb according to the output
from Prettier and StandardJS.

Details: None
Copy link

vercel bot commented Dec 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
pro-react-admin ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 25, 2024 0:19am

Copy link

what-the-diff bot commented Dec 25, 2024

PR摘要

  • 修复了自闭合标签问题
    更新了HorizontalScroll/index.jsxmotion/index.jsx中的若干<div></div>元素,使用自闭合语法/>以保持一致性。

  • 更新了变量声明
    motion/index.jsx中的randomSort函数中,将newArr变量从let修改为const,以提升其不变性。

  • 简化了属性的传递方式
    简化了在motion/index.jsx中向组件传递属性的方式,去掉了不必要的花括号。

  • 调整了dragSnapToOrigin属性
    ParallaxVert中的dragSnapToOrigin={true}只保留为dragSnapToOrigin,以利用简短语法。

  • 统一了motion.div的格式
    确保了文件中所有的<motion.div>实例都使用相同的自闭合风格,以便提高可读性和一致性。

Copy link

Qodana for JS

363 new problems were found

Inspection name Severity Problems
ESLint 🔴 Failure 228
Unused import 🔶 Warning 14
Unused local symbol 🔶 Warning 12
Unnecessary non-capturing group 🔶 Warning 6
Mismatched JSDoc and function signature 🔶 Warning 4
Redundant local variable 🔶 Warning 4
Redundant character escape 🔶 Warning 3
Import can be shortened 🔶 Warning 2
Equality operator may cause type coercion 🔶 Warning 1
Unused assignment 🔶 Warning 1
Void function return value used 🔶 Warning 1
Duplicate character in character class 🔶 Warning 1
Unresolved JSX component ◽️ Notice 61
Deprecated symbol used ◽️ Notice 12
Result of method call returning a promise is ignored ◽️ Notice 8
Duplicated code fragment ◽️ Notice 2
Regular expression can be simplified ◽️ Notice 2
Missing await for an async function call ◽️ Notice 1

☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@wkylin wkylin closed this Dec 27, 2024
@wkylin wkylin deleted the deepsource-transform-8d4b33cb branch January 2, 2025 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant