Skip to content

style: format code with Prettier and StandardJS#689

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

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

Conversation

@deepsource-autofix
Copy link
Copy Markdown
Contributor

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

Details: None

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

Details: None
@vercel
Copy link
Copy Markdown

vercel Bot commented May 23, 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 May 23, 2025 8:47am

@what-the-diff
Copy link
Copy Markdown

what-the-diff Bot commented May 23, 2025

PR总结

  • 统一了babel.config.js中字符串的格式
    我们调整了babel.config.js中的字符串格式,以确保使用单引号的一致性。

  • 在JSX文件中进行了微小的格式调整
    我们用单引号替换了JSX文件中className的双引号,提高了代码的整洁度。

  • 在JSX中多处添加了尾随的逗号
    我们在JSX的多处位置添加了尾随的逗号,以改善代码可读性并保持格式的一致。

  • 修改了BorderBeam组件的props
    我们对BorderBeam组件的props进行了修改,确保了格式的一致性。

  • 更新了CompareAll/index.jsx
    我们做了以下几点改动:

    • Compare组件的props定义中清除了多余的逗号
    • 通过在函数名与括号之间添加空格,统一了事件处理函数的格式
    • 统一了JSX属性的引号格式,将所有双引号统一为单引号
  • 修订了FixCarousel/index.jsx
    我们移除了模拟数据数组和类别列表中的多余逗号,并统一了JSX属性的引号格式。

  • 调整了proHeader/index.jsx
    我们清除了导航项onClick函数的多余逗号,并把JSX中的双引号转换为单引号。

  • 清理了proTabs/index.jsx
    我们移除了tabRightMenu定义和其他几处多余的逗号,同时把JSX属性和样式的引号统一为单引号。

  • 精化了webpack.common.js
    统一移除了一些对象配置中的尾随逗号,并所有字符串改为使用单引号。

  • 清理了webpack.dev.jswebpack.prod.js中的尾逗号
    我们移除了这两个文件中多处尾逗号,使得语法更为简洁,并确保所有的数组和对象格式中,闭合括号的位置都是一样的且没有尾逗号。

这些更改并未修改任何功能,主要是用来提高代码风格和格式的整洁度。

@sonarqubecloud
Copy link
Copy Markdown

@wkylin wkylin closed this May 24, 2025
@wkylin wkylin deleted the deepsource-transform-5963400c branch May 24, 2025 05:25
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