Skip to content

Should we not add prettier as a dev dependency? #5941

@hhimanshu

Description

@hhimanshu

I am following up https://facebook.github.io/create-react-app/docs/setting-up-your-editor#formatting-code-automatically article where the code to add prettier (and related dependencies) is mentioned as

NPM

npm install --save husky lint-staged prettier

Yarn

yarn add husky lint-staged prettier

Considering that they are using at the development time, should they be added as devDependencies?

NPM

npm install --save-dev husky lint-staged prettier

Yarn

yarn add --dev husky lint-staged prettier

It is also mentioned in Prettier's own documentation

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions