Base solution for your next web application
Open Closed

What is the Prettier - Code formatter configuration Asp Net Zero recommend? #10543


User avatar
0
bluescopesteel created

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 10.4
  • What is your product type (Angular or MVC)? Angular
  • What is product framework type (.net framework or .net core)? .net core

If issue related with ABP Framework

  • What is ABP Framework version? - NA

If issue is about UI

  • Which theme are you using? NA
  • What are the theme settings? NA

What is the Prettier - Code formatter configuration Asp Net Zero recommend? I checked in the original code in version 10.4, and I can see the following. .prettierrc.json { "printWidth": 120, "singleQuote": true }

But when I apply that in my VSCode, and if I save an Asp Net Zero TS file, it is adding trailingComma, removing blank lines etc, that will make us difficult to merge later to ASP Net Zero code when we upgrade.

Please let me know what are the best practices in applying Prettier - Code formatter configuration to ASP NET ZERO.


2 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @bluescopesteel

    Could you create an issue on https://github.com/aspnetzero/aspnet-zero-core/issues ? We will work on this for the next version.

    Thank you for your report, it seems like there is a standardization problem.

  • User Avatar
    0
    bluescopesteel created

    Hi @ismcagdas,

    Thanks v much, Issue is created for this.

    Best regards, Bluescope team