Skip to content

style: format code with Prettier and StandardJS#733

Closed
deepsource-autofix[bot] wants to merge 1 commit into
mainfrom
deepsource-transform-a3cb6f7f
Closed

style: format code with Prettier and StandardJS#733
deepsource-autofix[bot] wants to merge 1 commit into
mainfrom
deepsource-transform-a3cb6f7f

Conversation

@deepsource-autofix
Copy link
Copy Markdown
Contributor

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

Details: None

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

Details: None
@vercel
Copy link
Copy Markdown

vercel Bot commented Aug 4, 2025

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 Aug 4, 2025 9:49am

@what-the-diff
Copy link
Copy Markdown

what-the-diff Bot commented Aug 4, 2025

PR 总结

  • 1. 重构了构造函数语法
    改变了构造函数和其他生命周期方法以遵循更标准的语法,即在方法名称和括号之间添加空格。
  • 2. 更新了 JSX className 语法
    为了保持一致性,将 className 属性从双引号改为单引号。
  • 3. 简化了条件渲染
    通过调整格式和缩进,重新构造了条件渲染块,以提高可读性。
  • 4. 修改了 Document 组件的 props
    通过调整语法以缩写形式,移除了不必要的 renderAnnotationLayer={true}renderTextLayer={true}
  • 5. JSX 中的空格一致性
    在整个组件中应用了一致的空格和格式,以改进代码可读性。

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Aug 4, 2025

@wkylin wkylin closed this Aug 13, 2025
@wkylin wkylin deleted the deepsource-transform-a3cb6f7f branch August 13, 2025 03:36
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