Skip to content

config(prettier): --config option renamed to --config-path#313

Merged
jonlabelle merged 8 commits intomasterfrom
refactor/config-to-config-path-update
Mar 19, 2026
Merged

config(prettier): --config option renamed to --config-path#313
jonlabelle merged 8 commits intomasterfrom
refactor/config-to-config-path-update

Conversation

@jonlabelle
Copy link
Owner

@jonlabelle jonlabelle commented Mar 19, 2026

This release adds support for Prettier's --config-path CLI option, introduced in Prettier's
experimental CLI (--experimental-cli).

When --experimental-cli is present in additional_cli_args, the plugin automatically uses
--config-path to pass the resolved config file path to Prettier. Otherwise, the classic --config
flag is used. No changes to your settings are required.

Both --config and --config-path are accepted as keys in the additional_cli_args setting.

@jonlabelle jonlabelle marked this pull request as draft March 19, 2026 18:40
@jonlabelle jonlabelle requested a review from Copilot March 19, 2026 18:58
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates SublimeJsPrettier to use Prettier’s renamed CLI option --config-path instead of --config, and refreshes user-facing documentation/release notes accordingly.

Changes:

  • Switched internal config-lookup and generated CLI args from --config to --config-path.
  • Updated README/default settings docs and the bug issue template to reference --config-path.
  • Added 1.91.0 release notes and changelog entry for the rename.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
JsPrettier.py Updates config detection and emitted CLI option to --config-path.
README.md Updates documentation examples and explanations to --config-path.
JsPrettier.sublime-settings Updates inline settings documentation/examples to --config-path.
CHANGELOG.md Adds 1.91.0 changelog entry describing the rename.
messages/1.91.0.txt Adds release message for 1.91.0 describing the rename.
messages.json Registers the new 1.91.0 message file.
.github/ISSUE_TEMPLATE/bug.yml Updates the example Prettier command placeholder to --config-path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

jonlabelle and others added 4 commits March 19, 2026 15:08
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the SublimeJsPrettier plugin and its documentation/release notes to reflect Prettier’s CLI rename from --config to --config-path, including guidance for updating the additional_cli_args setting.

Changes:

  • Switch internal config-path detection and option injection from --config to --config-path.
  • Update user-facing docs/settings examples and release notes to reference --config-path.
  • Update the GitHub bug report template placeholder command accordingly.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
messages/1.91.0.txt Adds 1.91.0 release message documenting the --config--config-path rename.
messages.json Registers the new 1.91.0 message file.
README.md Updates documentation and examples to use --config-path.
JsPrettier.sublime-settings Updates inline settings documentation/examples to use --config-path.
JsPrettier.py Updates runtime logic to detect and pass --config-path instead of --config.
CHANGELOG.md Adds a 1.91.0 entry describing the rename and migration example.
.github/ISSUE_TEMPLATE/bug.yml Updates the example Prettier command placeholder to --config-path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jonlabelle jonlabelle force-pushed the refactor/config-to-config-path-update branch from fedc330 to 1b09838 Compare March 19, 2026 20:55
@jonlabelle jonlabelle marked this pull request as ready for review March 19, 2026 20:57
@jonlabelle jonlabelle changed the title config(prettier): --config option renamed to --config-path (DRAFT) config(prettier): --config option renamed to --config-path Mar 19, 2026
@jonlabelle jonlabelle merged commit 27a37ba into master Mar 19, 2026
2 checks passed
@jonlabelle jonlabelle deleted the refactor/config-to-config-path-update branch March 19, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants