Skip to content

ask to install prettier when creating a new project #32216

@robertIsaac

Description

@robertIsaac

Command

new

Description

right now when you create a new Angular project you get the prettier needed configuration

  "prettier": {
    "printWidth": 100,
    "singleQuote": true,
    "overrides": [
      {
        "files": "*.html",
        "options": {
          "parser": "angular"
        }
      }
    ]
  },

but you actually don't add the dependency, which is a confusing decision from my side
also WebStorm would disable it for the project even if it was added later since initially it didn't exist and developers must go and enable it manually after installing prettier, which many junior developers don't know (not sure about vscode, hopefully vscode users will comment about that)

Describe the solution you'd like

to have a question in the setup of the project if people would like to use prettier
if yes, then add prettier configuration and dependency
if no, then don't add neither the configuration nor the dependency

Describe alternatives you've considered

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions