ChatALL icon indicating copy to clipboard operation
ChatALL copied to clipboard

Upgrade prettier to v3.5.3

Open PeterDaveHello opened this issue 7 months ago • 1 comments

Upgrade prettier to v3.5.3, and also format the code base using the latest prettier v3.5.3 to pass the linter.

cc #1009

GitHub Copilot change summary:

This pull request includes updates to dependencies, formatting improvements, and minor structural adjustments across multiple Vue components. The changes primarily focus on updating the prettier dependency, improving code readability by adjusting formatting, and ensuring consistency in template structures.

Dependency Updates:

  • Updated prettier from version 3.4.2 to 3.5.3 in package.json to ensure compatibility with the latest features and fixes.

Formatting Improvements:

  • Adjusted the template formatting in src/App.vue to improve readability and maintain consistency across nested elements. [1] [2] [3]
  • Reformatted templates in various bot settings components, such as BardBotSettings.vue, BingChatBotSettings.vue, and ChatGLMBotSettings.vue, to use single-line tags where appropriate. [1] [2] [3]

Structural Adjustments:

  • Ensured consistent closing tag placement in CommonBotSettings.vue and other bot-specific settings components to enhance code clarity. [1] [2] [3]
  • Added missing newline characters at the end of several files for better adherence to coding standards. [1] [2] [3]

Summary by mrge

Upgraded Prettier to v3.5.3 and reformatted the entire codebase to match the new formatting rules.

  • Dependencies

    • Updated Prettier from v3.4.2 to v3.5.3.
  • Refactors

    • Reformatted all Vue components and related files for consistent code style and to pass linting.

Summary by CodeRabbit

  • Style

    • Reformatted templates and markup across multiple components for more compact and consistent indentation and inline tag style.
    • Adjusted whitespace and line breaks in templates without affecting functionality or behavior.
    • No changes to logic, data, event handling, or component behavior.
  • Chores

    • Updated the "prettier" development dependency to a newer version.

PeterDaveHello avatar Apr 20 '25 10:04 PeterDaveHello