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

Closed
wants to merge 1 commit into from

Conversation

deepsource-autofix[bot]
Copy link
Contributor

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

Details: None

This commit fixes the style issues introduced in 9cfad3c 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 4:07am

Copy link

what-the-diff bot commented Dec 25, 2024

PR总结

  • 改变randomSort函数中newArr的声明
    我们将newArr的声明从let改为const,使其变量值不能改变,这有助于防止代码中出现错误。
  • 更新<motion.div>元素使用自闭合标签
    我们更改了一些<motion.div>元素,使他们使用自闭合标签,代替传统的开闭标签,这样更简洁并提高了代码的可读性。
  • 调整dragSnapToOrigin属性为布尔值且无需赋值
    我们也对dragSnapToOrigin属性进行了调整,将它直接用作布尔值,无需赋值,使代码更为简洁。
  • 简化<motion.div>中的初始属性和动画属性
    对于简单的字符串值,我们在<motion.div>中移除了初值和动画属性的花括号,例如,将initial={'hidden'}修改为initial="hidden",这样的修改使代码更为干净、简洁。

Copy link

Qodana for JS

360 new problems were found

Inspection name Severity Problems
ESLint 🔴 Failure 227
Unused import 🔶 Warning 13
Unused local symbol 🔶 Warning 11
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 25, 2024
@wkylin wkylin deleted the deepsource-transform-91ad8b66 branch December 25, 2024 06:23
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