Skip to content

Commit 33f744b

Browse files
aiday-maraeschli
andauthored
An additional parameter keepLines has been added into the formatting options which allows to keep the original line formatting (#66)
* An additional parameter keepLines has been added into the formatting options which allows to keep the original line formatting * Resolving the reviews and simplifying the code with the function `multipleLineBreaks` * Reverting back to the previous commit and applying the review changes * cleaning the code, simplifying the if/else cases * Updating the dependencies of package.json to their latest versions. Changed `withFormatting` so that keepLines option is always false. * Solving "Invalid: lock file's ... does not satisfy" * testing if higher node version in .travis.yml will solve the failing of CI * formatting and let-> const, avoid modification of options Co-authored-by: Martin Aeschlimann <[email protected]>
1 parent ce04fb4 commit 33f744b

File tree

9 files changed

+2663
-368
lines changed

9 files changed

+2663
-368
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ language: node_js
22
sudo: false
33

44
node_js:
5-
- "12"
5+
- "16"

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
3.1.0 2022-07-07
2+
==================
3+
* added new API `FormattingOptions.keepLines` : It leaves the initial line positions in the formatting
4+
15
3.0.0 2020-11-13
26
==================
37
* fixed API spec for `parseTree`. Can return `undefine` for empty input.

0 commit comments

Comments
 (0)