Skip to content

Add explicit Prettier override for .cjs files to enforce double-quote normalization - #5634

Merged
pelikhan merged 4 commits into
mainfrom
copilot/update-prettier-config-string-quoting
Dec 5, 2025
Merged

Add explicit Prettier override for .cjs files to enforce double-quote normalization#5634
pelikhan merged 4 commits into
mainfrom
copilot/update-prettier-config-string-quoting

Conversation

CopilotAI commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

Prettier configuration lacked explicit rules for .cjs files, making string quoting normalization implicit rather than declared.

Changes

  • Added *.cjs override to both .prettierrc.json files with explicit "singleQuote": false
  • Ensures consistent double-quote usage in require() statements and string literals across all CommonJS modules

Configuration

{
"overrides": [
{
"files": "*.cjs",
"options": {
"singleQuote": false
}
}
]
}

This makes the string quoting policy explicit and self-documenting for contributors working with CommonJS modules.

Original prompt

Update prettier configuration to normalize string quoting in .cjs sources, specially in requires calls.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

CopilotAIand others added 3 commits December 5, 2025 21:40
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…ting
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
CopilotAI changed the title [WIP] Update prettier configuration for string quoting in .cjsAdd explicit Prettier override for .cjs files to enforce double-quote normalizationDec 5, 2025
CopilotAI requested a review from pelikhanDecember 5, 2025 21:57
@pelikhan
pelikhan marked this pull request as ready for review December 5, 2025 21:57
@pelikhan
pelikhan merged commit 3910316 into mainDec 5, 2025
5 checks passed
@pelikhan
pelikhan deleted the copilot/update-prettier-config-string-quoting branch December 5, 2025 21:57
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@pelikhan