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
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
Yarn
Considering that they are using at the development time, should they be added as
devDependencies?NPM
Yarn
It is also mentioned in Prettier's own documentation