From 42fffb825d7f303f93410c6fe1291cf8302e21e4 Mon Sep 17 00:00:00 2001 From: Thomas Flament Date: Wed, 27 May 2026 16:42:09 +0200 Subject: [PATCH 1/2] Set Prettier quoteProps to consistent to match eslint quote-props The shared Prettier config used quoteProps: 'as-needed' while the package's eslint config has enforced quote-props: 'consistent-as-needed' since 2016. On objects with mixed keys (some requiring quotes, some not) the two disagree: Prettier produces mixed quoting and eslint then rejects it. Switching Prettier to 'consistent' makes its output match the eslint rule (quote all-or-none). This only affects repos that run Prettier (the prettier config is not consumed by eslint-only repos), so it is a safe, global reconciliation. Issue: GDL-15 --- README.md | 2 +- prettier.config.cjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 952c836..0652e9d 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ This project: This repository also provides a **baseline Prettier configuration** for Scality object repositories: 4-space JavaScript/TypeScript indentation, 120-character line length, single quotes, semicolons, trailing commas, and -`quoteProps: 'as-needed'`. +`quoteProps: 'consistent'`. The configuration lives in `prettier.config.cjs`. diff --git a/prettier.config.cjs b/prettier.config.cjs index bcf3695..e0529ef 100644 --- a/prettier.config.cjs +++ b/prettier.config.cjs @@ -3,7 +3,7 @@ module.exports = { useTabs: false, printWidth: 120, singleQuote: true, - quoteProps: 'as-needed', + quoteProps: 'consistent', semi: true, trailingComma: 'all', arrowParens: 'avoid', From 2612b656cd94f26632a6fbd6e9c3c01070c457aa Mon Sep 17 00:00:00 2001 From: Thomas Flament Date: Wed, 27 May 2026 16:42:22 +0200 Subject: [PATCH 2/2] Bump to 8.3.3 Issue: GDL-15 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 06a1134..5af1a7a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-scality", - "version": "8.3.2", + "version": "8.3.3", "description": "ESLint config for Scality's Node.js coding guidelines", "bin": { "mdlint": "./bin/mdlint.js",