Skip to content

Instantly share code, notes, and snippets.

View farzd's full-sized avatar
🌍
Available for hire

Farzad Qasim farzd

🌍
Available for hire
View GitHub Profile

Adding prettier to a CRA project

Previously, I've had some problem to reliaby configure code formatting with Prettier in VSCode, in the context of a create-react-app proejct. Today, it worked like a charm, and this is what I did.

Preconditions:

  • react-scripts: "3.1.1"
  • react: "^16.9.0"
  • react-dom: "^16.9.0"
  • Dirk Baeumer's ESLint VSCode extension installed and running