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
bffb093c4c
fix(macro): allow html tags inside macro functions to skip formatting
...
closes #353
2022-08-29 09:27:26 -05:00
Christopher Pickering
7a70e395d3
feat(jinja call): added support for jinja call blocks
...
closes #337
2022-08-18 15:08:16 -05:00
John Mark Vandenberg
788715585c
Fix spelling
2022-08-02 06:27:29 +08:00
Christopher Pickering
80263b29bd
fix(formatter): fix to prevent formatter from breaking malformed attribute tags
...
closes #317
2022-08-01 07:56:29 -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
99b5ee2c1f
feat(formatter): added options to format css and js using jsbeautifier
2022-07-28 13:58:03 -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
0bebf846d3
fixed a few issues with #}
2022-07-18 07:47:23 -05:00
Christopher Pickering
47ef81f96b
fix(twig): fixed indent issue with comments. Added test
...
closes #290
2022-07-15 08:24:43 -05:00
Christopher Pickering
f38328c829
fix(linter): fix false positive on rule T001
...
closes #292
2022-07-14 15:34:20 -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
1b3159f661
feat(ignore rules): added option to ignore linter rules with inline comments
...
closes #113
2022-07-05 13:59:53 -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
4dc2140c41
fix(curly hash comment): fix formatting on curly hash comment blocks
...
closes #265
2022-06-21 07:13:44 -05:00
Christopher Pickering
15ead700d1
feat(whitespace): add option to preserver some whitespace before text
...
This option preserves some leading whitespace in text blocks.
closes #260
2022-06-15 13:41:14 -05:00
Christopher Pickering
160dfce6d7
refactor(htlm tags): changed list of html tags to import list
2022-05-17 12:59:33 -05:00
Christopher Pickering
0f698bce19
refactor(void tags): changed void tag list to imported package
2022-05-17 12:51:09 -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
a830bc47a2
fix(code tags): fixed indentation on code tags w/ trailing text
...
closes #244
2022-05-12 15:52:58 -05:00
Christopher Pickering
e531701238
fix(alpine.js): fixed formatting in alpine.js attributes
...
fixes #240
2022-05-09 12:19:28 -05:00
Christopher Pickering
c1532639f8
refactor(toml): updated toml library
...
Fixed mypy lint error
2022-05-02 08:35:05 -05:00
Franklyn Tackitt
be55b8e221
Switch from tomlkit to tomli
...
Tomli is the upcoming python 3.11 standard library toml parser,
and will be available as tomllib when 3.11 releases.
This switches from using tomlkit to tomli, which brings it inline
with black, poetry, and many other toml parsing python packages
2022-05-01 12:08:43 -07:00
Anders Kaseorg
be07d18ebe
Fix spelling mistakes found by codespell
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-03-18 08:09:16 -05:00
Christopher Pickering
f9ff3477e1
closes #194 , added test
2022-03-14 09:24:28 -05:00
Christopher Pickering
5a2fde9f71
started fix for #189
2022-02-21 11:25:55 -06:00
Christopher Pickering
17063aa517
closes #188 , added tests
2022-02-18 14:15:36 -06:00
Christopher Pickering
2acb8c3c28
closes #175 , updated tests
2022-02-18 13:07:30 -06:00
Christopher Pickering
b79449c386
closes #175 , added test
2022-02-18 11:16:55 -06:00
Christopher Pickering
3e0b13edcb
fixed #177 , added test
2022-01-31 16:16:17 -06:00
Christopher Pickering
4a953801fa
fixed #174 , fixed #173 , added tests
2022-01-24 12:03:44 -06:00
Christopher Pickering
b943a414fd
fixed #171 , added test
2022-01-14 09:12:19 -06:00
Christopher Pickering
6e8230eee8
fix for #166 and #167 . added tests
2022-01-07 08:49:00 -06:00
Christopher Pickering
a1451fc78e
started fix for #167 . updated docs
2022-01-06 13:41:15 -06:00
Christopher Pickering
64a806a3eb
fixed #160 , added test
2022-01-03 09:43:55 -06:00
Christopher Pickering
c7d73bed09
fixed settings, added docs note
2022-01-03 08:45:38 -06:00
TK
97967dc622
[pre-commit] Running pre-commit
2021-12-30 20:54:59 +01:00
TK
3f27f6c88c
Allow custom HTML tags to be indented correctly, pass on custom HTML tags with setting custom_html
2021-12-30 16:25:33 +01:00
sur.la.route
736a03307f
Merge pull request #159 from jayvdb/add-ng-profile
...
Add Angular profile
2021-12-14 10:02:54 +01:00
Christopher Pickering
b5b08ff01f
also exclude nunj and musta
2021-12-14 09:57:37 +01:00
John Vandenberg
3121c168f0
Add Angular profile
2021-12-12 08:21:58 +08:00
John Vandenberg
c2a62b96dd
Add html profile
2021-12-11 20:26:09 +08:00
Christopher Pickering
1783c3babf
added option to format linter output messages. closes #153
2021-11-29 13:05:58 +01:00
Christopher Pickering
a10ac08686
added fix for #152
2021-11-29 12:19:07 +01:00
Christopher Pickering
48c2f32081
fixed #149 , added test
2021-11-26 14:01:54 +01:00
Christopher Pickering
b2439ea9d9
fixed #147 , added tests
2021-11-26 13:06:05 +01:00
Christopher Pickering
ec60646b36
fixed #144 , added test
2021-11-24 09:18:58 +01:00
Christopher Pickering
9296dfaceb
fixes #140 , added test.
2021-11-22 15:21:18 +01:00
Christopher Pickering
b2b26e9ee1
fixed #26 , added test
2021-11-16 11:40:29 +01:00
Christopher Pickering
c39693c7df
added rule T027. closes #134
2021-11-15 16:47:36 +01:00