Skip to content

Use ESLint and Prettier together to format code #864

@chrisvire

Description

@chrisvire

We currently use Prettier to format code. However, it doesn't enforce some rules:
https://chatgpt.com/share/686d7315-6364-8006-a85d-1d38f4c9400f

Prettier does not support enforcing curly braces for single-line if statements. Its design philosophy is opinionated and intentionally avoids offering configuration for stylistic preferences that don't affect readability or parsing (like optional braces).

This GPT conversation suggests changes to use eslint and prettier together for formatting. See if this works.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions