Commit Graph

962 Commits

Author SHA1 Message Date
Liam Newman
7d8f600a84
Update tokenizer.js 2024-04-27 12:06:51 -07:00
Liam Newman
18a518a89a
Update templatablepattern.js 2024-04-27 12:01:55 -07:00
Gergely Gyorgy Both
d5176ef294 Fixed #2260 - <style> and <script> tags indentation if also indenting angular control flows 2024-03-29 22:08:35 +01:00
Liam Newman
96340d5d43 Turn off new angular templating by default in html 2024-02-16 07:29:04 -08:00
gergely-gyorgy-both
5aff965e0b
Fixed #2219 - formatting of new Angular control flow syntax (#2221)
* Fixed #2219 - formatting of new Angular control flow syntax

* Add 'angular' templating option; use it for html beautifier control flow syntax

* Add more precise selection for angular control flow close tag

* Print angular control flow tokens with basic formatting

* Add tests for fixing issue #2219

* Change angular control flow selection to do via pattern

* Fix selecting control flow closing brace if it is not preceded by whitespace

* Fix regex for control flow start pattern; only select control flow open if indent_handlebars is true

* Changing angular at-string detection regex

Limiting this to a smaller set.

---------

Co-authored-by: Liam Newman <bitwiseman@gmail.com>
2024-02-15 09:26:26 -08:00
Liam Newman
503947289a
Merge pull request #2157 from beautify-web/issue/2152-python-test
Add init files to re-enable python tests
2023-08-30 15:51:48 -07:00
Liam Newman
3b5f18ac35 Turn python CSS tests back on 2023-08-30 15:42:19 -07:00
Liam Newman
87483fcbeb
Merge branch 'main' into json-invalid-wrap-with-line-length-and-signed-number 2023-08-30 14:24:25 -07:00
Liam Newman
88c0ab5767 Fix tokenizer to recognize es6 code point syntax 2023-08-30 14:12:17 -07:00
Roja A M
ddc12520b1 spacing added to if condition 2023-08-27 11:57:59 +05:30
Roja A M
8a4f552291 Fix - Invalid prettification of object with unicode as key 2023-08-26 20:01:46 +05:30
Liam Newman
97c9cd25b1 Update for globSync 2023-08-15 11:51:44 -07:00
Liam Newman
495c8c32de
Merge branch 'main' into feat/2113-inline-custom-elements-behavior 2023-06-29 08:02:15 -07:00
Liam Newman
acf17fa100 Merge remote-tracking branch 'upstream/main' into patch-1 2023-05-31 21:03:40 -07:00
Liam Newman
7dc90be050 Formatting 2023-04-27 10:18:23 -07:00
MHO
d754bd3114 Improved less and sass variable identification with at rule pairing genericity 2023-04-23 15:13:44 +02:00
MHO
bda9e958fa corrected error after test 2023-04-23 13:24:48 +02:00
Liam Newman
c973742755
Merge branch 'main' into wrap-html-attributes 2023-04-22 15:59:16 -07:00
MHO
40e55812c2
Replaced insideAtApply with insideNonNestedAtRule 2023-04-19 09:35:16 +02:00
MHO
39632ea633
moved insideAtApply boolean set to false 2023-04-18 09:54:18 +02:00
MHO
7032cbd425
Implementation of a insideAtApply variable
Implementation of a insideAtApply variable to determine if it is a Tailwind ruleset and avoid whitespace after variant [ currently thinking it is a property ]
2023-04-18 09:40:46 +02:00
Liam Newman
d62a502d09
Merge branch 'main' into feat/2113-inline-custom-elements-behavior 2023-01-31 01:20:43 -08:00
Muhammad Hammad
97d0f43c4d
Merge branch 'main' into json-invalid-wrap-with-line-length-and-signed-number 2022-11-28 17:08:46 -05:00
Antonius Anggito Arissaputro
a700321057 Minor style check 2022-11-25 14:50:28 +07:00
Antonius Anggito Arissaputro
7c05020785 Change js and py jsbeautifier for record as START_BLOCK token 2022-11-25 03:03:15 +07:00
Antonius Anggito
5cedf34305
Merge branch 'main' into cwthedev-Iss2062_records 2022-11-25 02:47:04 +07:00
Muhammad Hammad
c90470061c fix - semicolon followed by block statement doesnt have new line
This change makes sure that a new line is added everytime a semicolon is followed by a block statement

fixes #1852
2022-11-17 18:43:39 -05:00
Muhammad Hammad
4a2995e8ad fix - invalid line wrap with signed numbers in json property
This fix makes sure we can identify signed numbers correctly when they are used as an object property to avoid having issues with line wrapping

fixes #1932
2022-11-17 16:59:13 -05:00
ced
dd687ae665 Add option to disable custom elements inlining
Fixes #2113
2022-11-11 12:48:31 +01:00
abuco
38f41676f0 Fix formatting related to <menu>
- Fix formatting for `<li>` tags inside `<menu>` tags inside `<li>` tags
- Allow unclosed `<p>` tags if followed by a `<menu>` tag
2022-11-08 12:10:34 +11:00
Lucas Garron
6ba9d5cd94 Treat all custom elements as inline elements.
Addresses https://github.com/beautify-web/js-beautify/issues/1989
2022-09-26 07:50:43 +00:00
cw100dev
ada9f66ea1 changes to both js and python jsbeautifiers for issue #2062 to accoutn for new record types 2022-09-08 17:14:37 -07:00
HitkoDev
86cde3e120 Fix glob issue on Windows 2022-08-19 21:10:00 +02:00
Liam Newman
87bdfd0154 Fix two spacing issue in CSS 2022-06-20 13:26:35 -07:00
Liam Newman
4cc5e6ef5b
Merge branch 'main' into feature/space-after-named-function-classes 2022-04-21 17:30:35 -07:00
Liam Newman
4b6ba1be74
Merge branch 'main' into in-class-method 2022-04-21 10:01:39 -07:00
Liam Newman
11f2dae290
Merge branch 'main' into feature/space-after-named-function-classes 2022-04-20 21:12:20 -07:00
avento
7fe98948dc reran cli 2022-04-18 17:03:07 -04:00
avento
c50fc92c9a deleted invalid option 2022-04-16 18:12:44 -04:00
avento
9a1268ea11 fixed style problems and condensed conditions 2022-04-16 15:19:23 -04:00
avento
63c9ffa11c solution to partials not seperated by spaces 2022-04-15 13:14:34 -04:00
Liam Newman
4df0273a74
Merge pull request #2034 from zalsaedy/handlebars-1988
[Issue #1988] Added support to recognize Handlebars block with whitespace control
2022-04-13 11:50:01 -07:00
Hammad
0b35ee91b9 Instead of just relying on the text to confirm last token, also check for the type to be reserved token this way we will be sure that it is actually the special word class instead of a property called class 2022-04-13 03:24:20 -02:30
Liam Newman
73e57eef86
Merge pull request #2011 from bhaveshvasnani/remove_whitespace_number
[Issue 1950] Do not remove whitespace after number
2022-04-12 14:50:17 -07:00
Liam Newman
5344f24bf0
Merge pull request #2035 from mhnaeem/bug/add-grid-template-areas-to-non-semicolon-list
Add grid-template-areas to NON_SEMICOLON_NEWLINE_PROPERTY list
2022-04-12 12:36:47 -07:00
Hammad
1f1f5db201 Accommodating for the fact that the last last token can be of type class but it doesn't necessarily have to be the keyword class 2022-04-12 03:33:09 -02:30
Liam Newman
ade6603f3a
Merge pull request #2039 from mhnaeem/feature/support-forwards-syntax-sass
Fixes #1976 Adding support for the new @forwards syntax in SASS
2022-04-11 22:08:29 -07:00
Hammad
889492414d #1976 adding support for the new @forwards syntax in SASS 2022-04-11 21:19:35 -02:30
Hammad
9cceee0d74 Fix issue #1095 where special words like return without semicolon are followed by prefix operators on newlines 2022-04-11 18:48:10 -02:30
Hammad
ffe9292b3f Add grid-template-areas to NON_SEMICOLON_NEWLINE_PROPERTY list 2022-04-11 18:10:45 -02:30