Skip to content

fix: update dprint-core to 0.75.2 and add code examples to the config schema - #33

Merged
dsherret merged 1 commit into
mainfrom
schema-examples
Nov 6, 2026
Merged

dsherret merged 1 commit into
mainfrom
schema-examples

Conversation

@dsherret

@dsherret dsherret commented Nov 5, 2026

Copy link
Copy Markdown
Member

Updates dprint-core to 0.75.2, which has printer performance fixes and no API changes.

Also improves the configuration documentation that dprint.dev renders from schema.json, like dprint/dprint-plugin-typescript#898 and #899:

  • x-playground: unformatted TypeScript that the dprint.dev playground starts with when this plugin is selected.
  • x-example on 16 properties: input code that's formatted with each of the property's values. The repo's schema.json only has the inputs. The outputs are generated with the built plugin when the schema is published.
  • x-sections: the properties grouped into seven sections (General, Semicolons/commas/quotes, Line breaks and spaces, HTML and JSX, Sorting, Embedded code and comments, Languages).
  • Describes the values that had no descriptions (htmlWhitespaceSensitivity, which was an enum, the boolean form of sortPackageJson, and the sortImports.customGroups selectors and modifiers), and uses code spans in descriptions.
  • Uses integer with a minimum and maximum for indentWidth and lineWidth, and says which values Oxc supports.

The new "Generate config schema" CI step runs the publish-schema task from dprint/automation on the built wasm plugin, before the schema is uploaded to a release. It fails when the plugin has a diagnostic for a property's default, an example formats the same with every value, a top level property isn't in exactly one section, or the playground sample doesn't format or is already formatted. Deno is now set up on every run instead of only on tags, since the step needs it.

To see the generated schema locally:

cargo build --target wasm32-unknown-unknown --features wasm --release
cp deployment/schema.json /tmp/schema.json
deno run -A jsr:@dprint/automation@0.14.3/tasks/publish-schema target/wasm32-unknown-unknown/release/dprint_plugin_oxc.wasm /tmp/schema.json --extension ts

@dsherret
dsherret merged commit 7ccb60b into main Nov 6, 2026
2 checks passed
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