Commit Graph

933 Commits

Author SHA1 Message Date
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
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
zalsaedy
e8c5bdf175 Fixed #1988 and added unit tests 2022-04-11 15:55:12 -04:00
Hammad
027026093e #1622 - Adds space_after_named_function option for ES6 classes 2022-04-11 03:33:56 -02:30
Liam Newman
5ca6beed8a
Merge branch 'main' into remove_whitespace_number 2022-04-09 08:56:24 -07:00
Hammad
9981a93e25 Adding basic support for SCSS/SASS maps 2022-04-08 01:16:16 -02:30
Liam Newman
a5995d0b5d
Merge branch 'main' into in-class-method 2022-04-06 23:24:29 -07:00
Liam Newman
fe57c7bd3a
Merge branch 'main' into bug/css-grid-template-property-fix 2022-04-06 23:23:20 -07:00
Hammad
69789d1ae9 Fix issue #1817 - css property values that have multiple parts and if followed by a string lose formatting. Also add multiline support for grid-template property 2022-04-07 02:52:34 -02:30
Hammad
784bd1e82d Fixing issues with spacing when an object literal lives inside a mixin call 2022-04-06 22:31:51 -02:30
Hammad
f0740309dd Identifying block statements from object literals for objects that have class/interface as key type. Also added some regression tests 2022-04-05 21:34:47 -02:30
Hammad
6ed8dc8bc4 Checking to make sure that the token with text 'class' or 'interface' has whitespace after it to be considered a block statement, otherwise treat as object literal 2022-04-02 22:42:35 -02:30
Liam Newman
4e56dca3e1
Merge branch 'main' into remove_whitespace_number 2022-03-31 08:59:46 -07:00
Liam Newman
33df40fcdc
Merge pull request #1997 from mhnaeem/feature/support-import-meta-syntax
feature: support import.meta syntax
2022-03-29 11:59:19 -07:00
kcamsanc
47c63b65fb [ISSUE 1846] Resolve indent issue with class method named in 2022-03-28 21:57:31 -04:00
kcamsanc
3145b1d4a3 Revert "hi"
This reverts commit 5223190cb0.
2022-03-28 20:13:46 -04:00
kcamsanc
5223190cb0 hi 2022-03-28 20:13:09 -04:00
Muhammad Hammad
f270c194eb feature: support import.meta syntax and treat it different from an import statement 2022-03-05 17:58:43 -03:30
Muhammad Hammad
d9358dcc96 additions: Added support for logical NULL, AND, OR assignments for the beautifier. Related to ticket #1991 2022-03-05 14:44:28 -03:30
bhaveshvasnani
fce2471d9e regex for js implementation, need to do the same for py 2022-02-18 19:17:39 +05:30
Bhavesh Vasnani
e62e45467e used regex to detect number 2022-02-11 00:09:43 +05:30
Bhavesh Vasnani
88d5f2af4f added logic to detect number before token 2022-02-05 20:17:45 +05:30
Kevin Backhouse
19c5862299
GHSL-2021-113: Fix ReDoS bug (second attempt). 2021-12-08 11:08:37 +00:00
Ansh Saini
e77f74b140 handle bitwise ~ operator 2021-06-25 01:08:24 +05:30
Liam Newman
60228b35c4
Merge pull request #1947 from hmnd/fix/handlebars-partials-with-params
Support handlebars partial blocks with parameters
2021-06-23 14:56:21 -07:00
Reshma R
6ca0918cf3 remove redundant condition 2021-06-23 21:53:00 +05:30
David Roizenman
f8829d5af8
Support handlebars partial blocks with parameters
Fixes #1946
2021-06-22 01:23:03 -07:00