Commit graph

24 commits

Author SHA1 Message Date
Christopher Pickering
10e593f623
fix(css/js): fixed extra blank lines being appended to blank lines in css/js formatter
closes #451
2022-11-08 08:33:45 +01:00
Christopher Pickering
907a1bfb9c
fix(attributes): prevented attribute indentation for url type attributes
Also fixed attribute quoting issues

closes #320, closes #86, closes #195
2022-11-03 11:15:35 +01:00
Christopher Pickering
4a0bee6dc2
fix(formatter): fixed indent on inline block followed by inline template block
closes #425
2022-10-13 12:20:40 +02:00
Christopher Pickering
b4cbcb45cd
feat(configuration): allow local configuration to override global config
closes #422
2022-10-12 09:29:31 +02:00
Christopher Pickering
31161ce1aa
fix(formatter): fixed issue with blank links added between blocks
closes #402
2022-09-22 09:41:20 +02:00
Christopher Pickering
d31ce52b3b
fix(formatter): fixed formatting of repeating inline tags
closes #387
2022-09-16 10:47:42 +02:00
Christopher Pickering
bbcde2b426
feat(config): allow source files to be specified in the config file
This update allows a file list to be set in the config file.

closes #371
2022-09-12 12:43:04 +02:00
Christopher Pickering
83297bd15b
feat(config): added option for custom configuration file path
This can be used for a global .djlintrc file.

closes #170
2022-09-07 13:10:13 -05:00
Christopher Pickering
8a3c60c72b
fix(cssbeautify): added support for ignore in cssbeautifier 2022-09-07 11:28:51 -05:00
Christopher Pickering
b8bf071d16
fix(js formatting): added support for jsbeautify ignore blocks
closes #367
2022-09-07 11:15:21 -05:00
Christopher Pickering
69ef16afa8
fix(linter): disabling linter rules should not disable formatting
closes #316
2022-08-01 07:32:20 -05:00
Christopher Pickering
ca7ff3a1c7
fix(formatter): fixed greedy regex issue when finding script and style tags 2022-07-28 14:24:47 -05:00
Christopher Pickering
99b5ee2c1f
feat(formatter): added options to format css and js using jsbeautifier 2022-07-28 13:58:03 -05:00
Christopher Pickering
2f8533f190
passed lint and tests 2022-07-28 10:55:55 -05:00
Christopher Pickering
7e4ac76be0
fix(indent): fixed bad indent on short blocks
closes #309
2022-07-28 10:45:15 -05:00
Christopher Pickering
b2bd1ea298
feat(formatter): added option to add blank line before tags
closes #307
2022-07-28 09:53:33 -05:00
Christopher Pickering
a196c68991
removed print 2022-07-26 08:24:00 -05:00
Christopher Pickering
9ed3393be0
fix(preserve blank lines): fixed duplicate blank lines being inserted after h-space,
Fixed extra blank lines being added to beginning of file

closes #300
2022-07-26 08:12:03 -05:00
Christopher Pickering
67306b4cd1
fix(white space): prevent duplicate blank lines from being added
closes #297.
2022-07-25 07:55:30 -05:00
Christopher Pickering
c709efd658
feat(linter): added per-file-ignores as a config option for linter rules
closes #107
2022-07-08 11:06:01 -05:00
Christopher Pickering
bbcf54a0f0
feat(new option): added option to attempt to keep blank lines in templates
--preser-blank-lines option can be used to try and keep existing blank lines during formatting.

closes #261
2022-06-30 07:53:24 -05:00
Christopher Pickering
1e526f6739
test(preserve-leading-indent): added test 2022-06-16 13:33:59 -05:00
Christopher Pickering
886d59021a
feat(breaks): allowed p, head, and body tags that are short/empty to be on a single line
Added more tests.
2022-05-16 09:25:29 -05:00
Christopher Pickering
aee34ea64c
test(restructured): restructured the tests 2022-05-13 15:36:55 -05:00