Hyperjump Tech
Published in

Hyperjump Tech

Tools ini Akan Membuat Code Anda Seperti Ditulis oleh Engineer Google dan Facebook

Photo by Stillness InMotion on Unsplash

Pasang Prettier di proyek-proyek Anda seperti Google dan Facebook sekarang juga!

Apa itu Prettier?

  • Mengurangi perdebatan tentang coding style
  • Membuat coding style konsisten
  • Membantu pendatang baru
  • Merapikan existing codebase

Source Code Apa Saja yang Didukung Prettier?

  • JavaScript (including experimental features)
  • JSX
  • Angular
  • Vue
  • Flow
  • TypeScript
  • CSS, Less, and SCSS
  • HTML
  • JSON
  • GraphQL
  • Markdown, including GFM and MDX
  • YAML

Integrasi Prettier dengan Editor

  • Visual Studio Code
  • Emacs
  • Vim
  • Sublime Text
  • JetBrains WebStorm, PHPStorm, PyCharm
  • Visual Studio
  • Atom
  • Espresso

Kapan Harus Menggunakan Prettier?

Bagaimana Cara Menggunakan Prettier?

npm install — save-dev — save-exact prettieryarn add — dev — exact prettier
touch .prettierrc.json
touch .prettierignore
# Ignore artifacts:
build
coverage
prettier --write .
prettier --write . — ignore-path .gitignore
prettier --check .

Hyperjump Update!

--

--

Open source first. Cloud native. DevOps excellence.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store