From 8f73dbfce45815e9eb8981cacfe8ccda868ce559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Solem=20Kj=C3=A6r?= <49904608+andreassk80@users.noreply.github.com> Date: Wed, 17 Jul 2024 13:58:53 +0200 Subject: [PATCH] fix: setting trailingComma to es5 (#42) --- prettier.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/prettier.config.js b/prettier.config.js index e3f13b5..51b1994 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -10,6 +10,9 @@ module.exports = { // arrowParens default since Prettier v2.0.0 is "always" // "avoid" present to avoid reformatting pre v2.0 code. arrowParens: "avoid", + // trailingComma default since Prettier v3 is "all" + // setting to "es5" for nicer formatting of JSX and less formatting changes. + trailingComma: "es5", // Cypress overrides: allow longer lines overrides: [ {