Replace oxfmt with Prettier via eslint-plugin-format#45
Merged
gtbuchanan merged 1 commit intomainfrom Apr 20, 2026
Merged
Conversation
93b9fd2 to
26d55b4
Compare
Remove the standalone oxfmt formatter and oxfmt-config package. Formatting for JSON, Markdown, and YAML is now handled by Prettier running as an ESLint rule through eslint-plugin-format, consolidating all linting and formatting under ESLint. - Add eslint-plugin-format, prettier, prettier-plugin-sort-json, prettier-plugin-multiline-arrays, and prettier-plugin-packagejson to @gtbuchanan/eslint-config - Create format.ts plugin with configs for JSON, JSONC, package.json, Markdown, and YAML - Use json-stringify parser for package.json (registered by prettier-plugin-packagejson) so both key sorting and multiline array expansion compose correctly - Resolve Prettier plugins as file:// URLs via createRequire for reliable resolution in synckit worker threads under pnpm strict hoisting - Add **/*.md to typescript nonTsFiles to prevent type-checked rules on Markdown files - Remove oxfmt pre-commit hook; expand ESLint hook to cover all formatted file types - Remove oxfmt-config package, root oxfmt.config.ts, and codecov coverage entries Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
26d55b4 to
646e844
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #43.
@gtbuchanan/oxfmt-configpackage and standaloneoxfmtdependencyeslint-plugin-formatwith Prettier as the backing formatter for JSON, Markdown, and YAMLsort-json,multiline-arrays,packagejson) resolved asfile://URLs viacreateRequirefor reliable resolution in synckit worker threads under pnpm strict hoistingjson-stringifyparser forpackage.json(registered byprettier-plugin-packagejson) so both conventional key sorting and multiline array expansion compose correctlyTest plan
pnpm pipeline checkpasses (typecheck, lint, 269 tests)configure()includes format/prettier configs for JSON, package.json, Markdown, YAML🤖 Generated with Claude Code