Commit graph

241 commits

Author SHA1 Message Date
luxcem
442dc91a51
Allow data: for links. 2022-11-14 12:09:06 +01:00
Christopher Pickering
6c2d843c2f
fix(formatter): fixed a few broken alpinejs attributes
closes #448
2022-11-09 15:08:58 +01:00
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
1bd0bf7ef0
fix(linter): make attribute pattern on H025 more accepting. Prevent false positive
closes #447
2022-11-07 09:13:12 +01:00
Christopher Pickering
0d170aab6c
fix(image tag): added image tag to template break tag list. srcset formatting
closes #444
2022-11-03 11:40:09 +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
62a88796f4
fix(formatter): fixed poor formatting on long inline blocks
closes #432
2022-10-24 15:16:06 +02: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
a86df438b5
fix(formatter): fixed formatting on nested inline comments
closes #423
2022-10-12 08:49:55 +02:00
Christopher Pickering
b53f670af8
feat(quiet): updated output of the --quiet flag to reduce unneeded verbose stuff 2022-09-26 13:47:41 +02:00
Christopher Pickering
67e8c64762
fix(linter): fixed false positive on T002. Added tests
closes #405
2022-09-26 09:02:07 +02:00
Christopher Pickering
17ff881045
fix(linter): fixed false positive on H017. Added test
closes #406
2022-09-26 08:51:04 +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
8f36fec142
fix(formatter): fixed poor indentation on span tags with leading text
closes #398
2022-09-21 09:52:38 +02:00
Christopher Pickering
e23ee4627d
fix(t002): fixed false positive in t002. Added test
closes #399
2022-09-21 09:32:39 +02:00
Christopher Pickering
190ad01ff3
fix(linter): t002
Fixed bad match on t002.
2022-09-19 10:00:32 +02:00
Christopher Pickering
489decb2e1
feat(linter): added --statistics flag to print summary of linter findings
closes #389
2022-09-19 09:41:54 +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
532c5b8d94
feat(linter): t002 added a few more tags to the check
closes #386
2022-09-16 10:06:00 +02:00
Christopher Pickering
ecb95bbee0
feat(linter t034): added linter T034 to check for {% ... }% typo
closes #385
2022-09-16 09:54:17 +02:00
Christopher Pickering
4ac5fd0da8
fix(span): fixed indent on nested inline tags on a span
closes #383
2022-09-15 09:44:21 +02:00
Christopher Pickering
f0d37a59d1
fix(alpine js): fix incorrect indent on alpinejs attribs w/ nested HTML
closes #381
2022-09-14 09:43:31 +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
ed182c6c11
test(stdin): added test for stdin --check
re #359
2022-09-01 08:44:17 -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
c57e9444a1
fix(t001): fixed false positive on T001 with Jinja {{- and {{+ tags
closes #354
2022-08-29 08:57:30 -05:00
Christopher Pickering
215bd23190
fix(h006): prevented false positives on H006
Also other linter rules where the the error match partially overlaps the ignored block.

closes #344, closes #333
2022-08-24 09:37:42 -05:00
Christopher Pickering
4480cff832
fix(h012): prevent H012 from matching the contents of tags or attributes
closes #348
2022-08-24 09:01:13 -05:00
Christopher Pickering
a5d96e7a2d
feat(t002): allow variables names to be used in the {% extends tag
closes #349
2022-08-24 08:50:56 -05:00
Christopher Pickering
f1a39ed289
feat(h021): allow inline styles that contain template syntax
closes #351
2022-08-24 08:39:11 -05:00
Christopher Pickering
ea766722a5
fix(t001): fixed false positive on multiline template tags
closes #350
2022-08-24 08:30:30 -05:00
Christopher Pickering
90cf5764ac
fix(linter): prevent linter matches that overlap ignored blocks of code such as comments
closes #343
2022-08-22 10:01:10 -05:00
Christopher Pickering
79618a5bfb
fix(linter): fixed false postive on rule H008
closes #339
2022-08-22 08:49:46 -05:00
Christopher Pickering
f9dac86b1a
fix(linter): fixed false positive on T032 with jinja multi line set
closes #342
2022-08-22 08:42:55 -05:00
Christopher Pickering
7a70e395d3
feat(jinja call): added support for jinja call blocks
closes #337
2022-08-18 15:08:16 -05:00
Christopher Pickering
d520508b60
Merge branch 'dev' of github.com:Riverside-Healthcare/djLint into dev 2022-08-17 07:16:45 -05:00
Christopher Pickering
f08e3acee3
feat(linter): updated rule 18 to allow "tel:"
closes #334
2022-08-17 07:16:29 -05:00
Christopher Pickering
183c4fc8f0
fixed lint 2022-08-16 07:42:44 -05:00
Ruan Bahia
a3ccc1974c fix(formatter): fix IndexError while adding indentation to attributes
solves issue with boolean attributes at the start of tags.
closes #290
2022-08-04 23:51:09 -03: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
6f84539038
fix(t027): fixed test and regression in T027
closes #141
2022-07-29 07:37:21 -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