djLint

✨ HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang

GPL-3.0 License

Downloads
518.9K
Stars
677
Committers
42

Bot releases are hidden (Show)

djLint - v1.34.1 Latest Release

Published by christopherpickering 10 months ago

1.34.1 (2023-12-20)

Bug Fixes

  • formatter: Avoid rewriting the file if it has not been changed (6965ba5)
  • linter: fix missed H025 for double closing (cf52faf), closes #786
djLint - v1.34.0

Published by christopherpickering about 1 year ago

1.34.0 (2023-09-20)

Bug Fixes

  • configuration: Fix formatting, unused import and forgotten print (f6dbef2)

Features

  • configuration: Accept pyproject.toml as a --configuration argument (d8a059a)
djLint - v1.33.0

Published by christopherpickering about 1 year ago

1.33.0 (2023-09-18)

Bug Fixes

  • formatter: fixed extra breaks added around html tags inside template tags (6091ffb), closes #742
  • formatter: fixed extra indend in script tags (9d04d51), closes #733
  • formatter: fixed formatting on functions that used python keywords as the param name (183a7c0), closes #756
  • h033: fix rull to not match data-action (f6881e0)
  • linter: fixed false positive on DJ018 (78d81dc), closes #755

Features

  • formatter: added support for nunjucks async loop tags (5a32bb3)
djLint - v1.32.1

Published by christopherpickering over 1 year ago

1.32.1 (2023-07-20)

Bug Fixes

  • formatter: reverted chained function formatting (2ba6e3b), closes #720 #704
djLint - v1.32.0

Published by christopherpickering over 1 year ago

1.32.0 (2023-07-19)

Bug Fixes

  • formatter: fixed formatting on chained function (7c2756d), closes #704
  • linter: fixed false positive on h026 data-id (400882a), closes #711
  • linter: fixed golang false positive on T027 (232f4bc), closes #712

Features

  • formatter: added support for jazzband's sorl-thumbnail tags (86122dc), closes #714
djLint - v1.31.1

Published by christopherpickering over 1 year ago

1.31.1 (2023-06-26)

Bug Fixes

  • formatter: fixed formatter formatting ignored code (5c75d87), closes #655
  • formatter: fixed function formatting with nested quoted parenthesis (6d63a6a), closes #698
  • formatter: fixed overgrabbing on template tag condensing (75c3134), closes #686
  • formatter: function index was not formatted correctly (a197200), closes #693
djLint - v1.31.0

Published by christopherpickering over 1 year ago

1.31.0 (2023-06-12)

Bug Fixes

  • formatter: fixed line_break_after_multiline_tag to force break in all cases (3b37ec8), closes #680
  • formatter: fixed isolated quotes being deleted from attributes (19425f9), closes #652
  • formatter: fixed wild match on template tags (d288b78), closes #686
  • linter: fixed false positive on t001 (1caf4c4), closes #606

Features

  • formatter: added max-blank-lines flag to consolidate blank lines (4a7897f), closes #675
  • formatter: added support for symphony forms (e716ddc), closes #476
djLint - v1.30.2

Published by christopherpickering over 1 year ago

1.30.2 (2023-06-02)

Bug Fixes

  • formatter: added quotes to json keys, added option to disable set/function formatting (6f7df03), closes #682
djLint - v1.30.1

Published by christopherpickering over 1 year ago

1.30.1 (2023-06-02)

Bug Fixes

  • linter: added missing positive on H021 (221c31f), closes #678
  • linter: fixed false positive on H037 (3b2e522), closes #679
djLint - v1.30.0

Published by christopherpickering over 1 year ago

1.30.0 (2023-05-30)

Bug Fixes

  • formatter: fixed endset indent level (cdebe42), closes #670
  • formatter: fixed issue with spaceless macro tags having spacess added before - (5593937), closes #667
  • npm: install exact version of djlint (0727279)

Features

  • npm: add script to update djlint version in postinstall using semantic-release/exec (040ffc6)
djLint - v1.29.0

Published by christopherpickering over 1 year ago

1.29.0 (2023-05-22)

Bug Fixes

  • formatter: fix cases where ignore was still formatting set and function code (ab878ea), closes #659
  • formatter: fix extra parenth being added in a function call (faba4f4), closes #660
  • linter: fixed missing positive on a few <img rules (5f33d08)

Features

  • formatter: added option to disable newlines after yaml front matter (9bf64ac), closes #662
  • linter: allow codes to be ignored for remainder of file (4637a0f), closes #655
djLint - v1.28.0

Published by christopherpickering over 1 year ago

1.28.0 (2023-05-18)

Bug Fixes

  • formatter: allow djlint:off to exluce the rest of a file (17faf5f), closes #649
  • formatter: don't add blank line to empty files (8ea5fd2), closes #635

Features

  • formatter: added ability to format objects/arrays in function tags (d446efc), closes #370
  • formatter: format set blocks (d88371c), closes #646
djLint - v1.27.2

Published by christopherpickering over 1 year ago

1.27.2 (2023-05-11)

Bug Fixes

  • formatter: fixed an edge case wild regex grab (0d57e75), closes #640
  • formatter: fixed formatting of plural tag in blocktrans (92c083b), closes #641
  • formatter: fixed js/css being formatted even inside ignored blocks (cbf5796), closes #613
  • linter: fixed a few false positives/missing positives, added tests (30f8d31), closes #643 #642
  • linter: fixed false postive in alpinejs tags for H037 (6520f63), closes #639
djLint - v1.27.1

Published by christopherpickering over 1 year ago

1.27.1 (2023-05-10)

Bug Fixes

  • formatter: fixed set_ tags being broken (5cf1e1c), closes #634
  • linter: fixed false positive on H037 (e65558c), closes #633
djLint - v1.27.0

Published by christopherpickering over 1 year ago

1.27.0 (2023-05-09)

Bug Fixes

  • linter: fixed overly greedy H037, improved linter tests (66c9187), closes #631

Features

  • formatter: Add option to not condense multi-line-tags (4973a32)
djLint - v1.26.0

Published by christopherpickering over 1 year ago

1.26.0 (2023-05-08)

Bug Fixes

  • blocktrans: fixes whitespace issues on blocktrans, allows indenting on blocktrans trimmed (249c8e8), closes #623

Features

  • formatter: added white space cleanup for template tags (13d0d4f), closes #485
  • linter: added rule H037 (6048c46)
  • void tags: added option to auto close void tags (linter rule H017) (9050d30), closes #252
djLint - v1.25.1

Published by christopherpickering over 1 year ago

1.25.1 (2023-05-08)

Bug Fixes

  • js indent: fixed an issue where literal strings were double indented (b1e8ab2), closes #614
  • set: added formatting of json/list style set contents (85aca4c), closes #287 #518 #370
djLint - v1.25.0

Published by christopherpickering over 1 year ago

1.25.0 (2023-04-25)

Bug Fixes

  • formatter: fixed extra indent on endblocktrans tags (35e1041), closes #611

Features

djLint - v1.24.0

Published by christopherpickering over 1 year ago

1.24.0 (2023-04-24)

Features

  • formatter: added option to prevent contents of some template tags from indenting (cc196d3)
djLint - v1.23.3

Published by christopherpickering over 1 year ago

1.23.3 (2023-04-19)

Bug Fixes

  • formatter: fixed speed on formatter (57cf98d), closes #601