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

Closed
wants to merge 1 commit into from

Conversation

deepsource-autofix[bot]
Copy link
Contributor

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

Details: None

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

Details: None
Copy link

vercel bot commented Dec 24, 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 24, 2024 0:05am

Copy link

what-the-diff bot commented Dec 24, 2024

PR摘要

  • 更改了randomSort函数中newArr的声明

我们将randomSort函数中的newArrlet 更改为 const,增强了代码的稳定性。

  • 改进了JSX语法
    <motion.div>的关闭标签进行了调整,从 ></motion.div>改成了/> ,使我们的 JSX 语法更加规范。

  • 优化了motion.div中的属性声明

我们将 motion.div中的initialanimate属性由前的大括号包装样式更改为了直接的字符串语法,使代码更加明简洁。

  • 将布尔属性dragSnapToOrigin转换为简写样式

通过简写布尔属性 dragSnapToOrigin,我们使代码更加简洁且易于理解。

  • 移除了dragElasticdragPropagation的注释

我们进行了一些无关的清理,包括删除了有关 dragElasticdragPropagation的注释,使得代码更加整洁。

Copy link

Qodana for JS

370 new problems were found

Inspection name Severity Problems
ESLint 🔴 Failure 227
Unused import 🔶 Warning 12
Unused local symbol 🔶 Warning 10
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 73
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 qodana-support@jetbrains.com

@wkylin wkylin closed this Dec 25, 2024
@wkylin wkylin deleted the deepsource-transform-afd619ba 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