Skip to content

Add minimal-diff to the base image's default Prettier config - #34

Merged
shokkunrf merged 2 commits into
developfrom
add-minimal-diff-to-base
Nov 7, 2026
Merged

shokkunrf merged 2 commits into
developfrom
add-minimal-diff-to-base

Conversation

@shokkunrf

@shokkunrf shokkunrf commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Rename the source of the default Prettier configuration from .devcontainer/.prettierrc to .devcontainer/prettierrc.json, so Prettier no longer uses it for the files next to it in this repository, such as devcontainer.json
  • Download minimal-diff v1.0.0 from its GitHub release into /usr/local/share/prettier-plugins/, checked with ADD --checksum
  • Load the plugin in the default configuration with markdownTableStyle: "compact", so projects without their own Prettier configuration print Markdown tables at minimum width
  • Point to the plugin by absolute path. Prettier 3 cannot find a globally installed plugin, such as one installed by node-packages, by name, and a path under nvm's current symlink would break after nvm use switches Node
  • Create the directory before ADD, because BuildKit also applies --chmod=644 to directories that ADD creates, which would leave the plugin unreadable for developer
  • Base image README: list the plugin in Included Tools and describe the default Prettier configuration
  • Test that the default configuration prints a compact table

@shokkunrf
shokkunrf force-pushed the add-minimal-diff-to-base branch 2 times, most recently from a66772c to b1fa453 Compare November 7, 2026 16:04
@shokkunrf shokkunrf self-assigned this Nov 7, 2026
@shokkunrf
shokkunrf merged commit 62e95aa into develop Nov 7, 2026
3 checks passed
@shokkunrf
shokkunrf deleted the add-minimal-diff-to-base branch November 7, 2026 16:15
Sign up for free to 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.

1 participant