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.
We currently use Prettier to format code. However, it doesn't enforce some rules:
https://chatgpt.com/share/686d7315-6364-8006-a85d-1d38f4c9400f
This GPT conversation suggests changes to use eslint and prettier together for formatting. See if this works.