JS. Prettier. How do i apply Prettier to all project ?

option 1

npm prettier —write «**/*.js»

option 2 add it to the scripts

{ … «scripts»: { «prettier»: «prettier —write ‘**/*.{ts,js,css,html}'» } … }

source

Читать на сайте автора.