Skip to content

style: format code with Prettier and StandardJS#912

Closed
deepsource-autofix[bot] wants to merge 1 commit intomainfrom
deepsource-transform-be19550e
Closed

style: format code with Prettier and StandardJS#912
deepsource-autofix[bot] wants to merge 1 commit intomainfrom
deepsource-transform-be19550e

Conversation

@deepsource-autofix
Copy link
Copy Markdown
Contributor

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

Details: None

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

Details: None
@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
pro-react-admin Ready Ready Preview, Comment Dec 27, 2025 10:07am

@what-the-diff
Copy link
Copy Markdown

what-the-diff Bot commented Dec 27, 2025

PR摘要

  • 改进了 setOptions 方法的可读性
    我们在 if 语句中添加了大括号,使代码更易阅读和理解。
  • 清理了 register 方法,确保了格式的一致性
    我们对 persistOnUnmount 的赋值进行了统一格式处理,使代码更整洁。
  • unregister 方法中添加了一个尾括号
    添加了一个尾括号,以提高语法的明确性。
  • 保持了 register 方法中 persistOnUnmount 属性的行尾一致性
    代码风格的统一可提高代码的可读性和易于维护。
  • 移除了调试语句中不必要的空白
    这种优化可以提高代码的整洁度。
  • 在各个位置统一了 time: Date.now() 的格式
    我们将这个常用操作的格式进行了统一,使得代码更具一致性。
  • 保证了 KeepAlive.propTypes 中 prop 类型定义的一致性
    我们特别注意了 cacheLimit 的格式,保证了 prop 类型定义的一致性。

@sonarqubecloud
Copy link
Copy Markdown

@wkylin wkylin closed this Dec 28, 2025
@wkylin wkylin deleted the deepsource-transform-be19550e branch December 28, 2025 09:10
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