sinProject-Inc/sinpro-dev

View on GitHub
docs/35-code-style/20-prettier.md

Summary

Maintainability
Test Coverage
---
title: Prettier
description: How we use Prettier to automate formatting.
---

How we use [Prettier](https://prettier.io/) to automate formatting.

## Configuration

When creating a SvelteKit project, modify the following items in the generated .prettierrc file:

```json:.prettierrc
{
    "trailingComma": "es5",
    "semi": false
}
```

## Formatting

We have changed our policy to format with [ESLint](./eslint).