Commit graph

213 commits

Author SHA1 Message Date
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
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
946b8ad715
fix(linter): fixed false positive on T027
closes #301
2022-07-26 12:21:41 -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
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
611b1fa57a
fix(h026): fixes rule H026 for cases where id/class are part of another string
closes #281
2022-07-06 12:50:15 -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
e4fe62f52e
fix(h025): fixes rule H025 where tags have curly hash
Closes #270
2022-06-28 12:38:28 -05:00
Christopher Pickering
1e526f6739
test(preserve-leading-indent): added test 2022-06-16 13:33:59 -05:00
Christopher Pickering
f63cc4d8ea
fix(dj018): fix rule DJ018 for special attrib names
fixes #248
2022-05-18 08:46:48 -05:00
Christopher Pickering
e906b3e30a
fix(stdin encoding): added encoding to stdin text
Fixes #243
2022-05-18 08:35:54 -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
a124a4dd6d
test(html tests): restructured tests 2022-05-13 16:11:06 -05:00
Christopher Pickering
eec497d043
test(yaml): added more yaml tests 2022-05-13 15:49:24 -05:00
Christopher Pickering
98e20ee885
test(format): fixed test format 2022-05-13 15:40:21 -05:00
Christopher Pickering
aee34ea64c
test(restructured): restructured the tests 2022-05-13 15:36:55 -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
1ce378c43d
fix(custom attributes): custom attributes separated by hyphen were split up during format
closes #236
2022-05-02 09:03:35 -05:00
Christopher Pickering
8e0b4b1b41
fix(stdin and gitignore): updated to prevent gitignore from skipping std temp paths
Disabled gitignore option for stdin paths.

closes #224
2022-04-25 08:26:13 -05:00
Christopher Pickering
ae9459a3fb
test(gitignore): fixed failing test 2022-04-05 11:24:31 -05:00
Christopher Pickering
aa9097660d
updated readme and docs 2022-03-30 10:03:44 -05:00