Skip to content

Add .prettierrc file #4753

@tguichaoua

Description

@tguichaoua

This request is not for the library itself, but for the workspace environment.

Is your feature request related to a problem? Please describe.
When I use VS Code, because of there is not .prettierrc file, the prettier pluggin use my default settings.

Describe the ideal solution
Add a .prettierrc file, so the VSC plugin can use the correct settings to format files.

Based on the command:

"prettier": "prettier --write --single-quote --print-width 120 --trailing-comma all --end-of-line lf --arrow-parens avoid src/**/*.js typings/**/*.ts",

.prettierrc

{
  "singleQuote": true,
  "printWidth": 120,
  "trailingComma": "all",
  "endOfLine": "lf",
  "arrowParens": "avoid"
}

package.json

"prettier": "prettier --config .prettierrc --write src/**/*.js typings/**/*.ts",

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