This release was not published on npm, as I am waiting for the owner to set up trusted publishing.
Feature
- Add
--format-attribute-js-jsonfor formatting JavaScript and JSON inside HTML attributes. It also supportsformat_attribute_js_json_patternandformat_attribute_js_json_min_propsfor tuning which attributes are formatted. Thanks, @oliverhaas. - Add
--github-outputfor GitHub Actions annotations. Thanks, @iloveitaly.
Fix
- Fix
ignore_blocksmatching when ignored blocks are indented. Thanks, @tdryer. - Use relative paths for
--excludeand--use-gitignorematching so path filters work consistently from nested directories. Thanks, @satya-waylit. - Stop D018/J018 from flagging root links such as
href="/". Thanks, @SAY-5. - Do not treat soft hyphen entities as text for H023. Thanks, @kotutuloro.
- Fix Handlebars
{{#unless}}indentation. Thanks, @S1mplePixels. - Fix formatting when
/>appears inside an HTML attribute value. Thanks, @novucs. - Improve CPU count handling for worker setup.
Performance
- Improve formatter caching and reduce cache memory usage. Formatting is about 19% faster.
Documentation
- Add Chinese translation. Thanks, @Twisuki.
- Add Homebrew installation instructions. Thanks, @alfawal.
- Add EFM Neovim integration documentation. Thanks, @danielebra.
- Add copy-pastable pre-commit YAML to the README. Thanks, @Pierre-Sassoulas.
- Polish linter and CLI documentation. Thanks, @jasonaowen and @dotWee.
Packaging
- Drop Python 3.9 support.