npm install --save-dev prettier. Prettier comes as a CLI. Formatting a file can be done as easy as this: npx prettier src/pages/index.js.
確定! 回上一頁