Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 861 Bytes

code-formatting.md

File metadata and controls

18 lines (11 loc) · 861 Bytes

Prisma Tutorials Code Formatting

In order to maintain code formatting consistency between articles in the Prisma Community Tutorials, we recommend using Prettier to standardize any example code. Prettier is an opinionated code formatter and automatically formats any code run through it.

All code in Prisma Community Tutorials should be run by Prettier, whether in a code editor, or within the Prettier Playground. Prettier works with many editors, including VS Code, Atom, and Sublime Text, and the full list can be found on the Prettier site.

In addition to the standard Prettier configuration, Prisma Community Tutorials should also use the the following Prettier options:

{
  "singleQuote": true,
  "semi": false,
  "trailingComma": "all"
}