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

This entry was posted in Без рубрики. Bookmark the permalink.