v0.32.0
Minor Changes
-
a5d54d9: Migrate format and Knip presets from JSON to TypeScript with full type safety
Both
adamantite/formatandadamantite/analyzeexports now resolve to typed TypeScript modules instead of JSON files. New projects getoxfmt.config.tsandknip.config.tsthat import and spread the presets, making it easy to override individual options with autocomplete.Breaking: Existing JSON-based configs are now legacy formats:
.oxfmtrc.json/.oxfmtrc.jsonc→oxfmt.config.tsknip.json/knip.jsonc→knip.config.ts
Run
adamantite updateto migrate automatically. The migration preserves custom overrides and removes the old files.
Patch Changes
-
f22cdfd: Upgrade the bundled
oxfmtversion to0.46.0and enable the new JSDoc formatting option in the Adamantite formatter preset.Upgrade the bundled
oxlintversion to1.61.0and updateoxlint-tsgolintto0.21.1to satisfy oxlint's peer dependency requirement.The lint presets now remove these rules:
- Core:
comma-dangle, which is no longer recognized by oxlint - Vitest:
vitest/prefer-to-be-truthyandvitest/prefer-to-be-falsy, replaced by exact boolean assertions throughvitest/prefer-strict-boolean-matchers
The lint presets also enable these new rules added in recent oxlint releases:
- Core:
no-useless-assignment,object-shorthand,unicorn/consistent-template-literal-escape,unicorn/custom-error-definition,unicorn/no-useless-iterator-to-array,unicorn/prefer-import-meta-properties, andunicorn/switch-case-break-position - React:
react/hook-use-stateandreact/prefer-function-component - Jest:
jest/padding-around-after-all-blocks,jest/prefer-ending-with-an-expect, andjest/valid-expect-in-promise - Vitest:
vitest/prefer-called-exactly-once-with,vitest/prefer-strict-boolean-matchers,vitest/require-awaited-expect-poll, andvitest/require-mock-type-parameters
Upgrade the bundled
knipversion to6.6.1. This release range improves framework plugin coverage, config hints, workspace handling, and analysis performance.The analyze preset now explicitly reports unused catalog entries with
catalog: "error"and unused namespace members withnamespaceMembers: "warn". - Core:
-
cda39ae: Update the bundled Knip config for Knip v6 and refresh the bundled linting and formatting tool versions.
Newly generated Knip configs now use the v6 schema URLs and drop the removed
classMembersrule. -
0ae2d85: Rename CI matrix entry from "lint" to "check" for consistency with the
adamantite checkcommand