Skip to content

style: format code with Prettier and StandardJS#673

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

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

Conversation

@deepsource-autofix
Copy link
Copy Markdown
Contributor

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

Details: None

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

Details: None
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 23, 2025

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

Name Status Preview Comments Updated (UTC)
pro-react-admin ❌ Failed (Inspect) Apr 23, 2025 0:13am

@what-the-diff
Copy link
Copy Markdown

what-the-diff Bot commented Apr 23, 2025

PR摘要

  • 更新了src/pages/layout/proHeader/index.jsx的格式:
    • 为多个菜单项(键1-4)的onClick函数更改了逗号至闭合括号。
    • 在一些返回声明和类似数组的结构中移除了不必要的逗号,使语法更加清晰。
  • 改善了src/pages/layout/proHeader/index.jsx中的内联格式:
    • 为了保持一致性,将属性和字符串包括在单引号内。
  • 修改了src/utils/aidFn.js中的函数定义:
    • 在函数声明(如setTimeoutclearTimeoutsetIntervalclearInterval)的开头括号前添加了空格,以提高可读性。
    • 在对象的各个部分,尤其是customizeTimer对象中,修复了格式。
  • src/utils/aidFn.js中进行了微小的格式调整:
    • 确保了在某些结构,如函数参数和对象定义中,尾随的逗号被统一处理。
    • 调整了与JSON结构相关的返回声明和函数调用的格式,使之更加明晰。

@sonarqubecloud
Copy link
Copy Markdown

@wkylin wkylin closed this Apr 27, 2025
@wkylin wkylin deleted the deepsource-transform-78234b1e branch May 8, 2025 10:16
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