Skip to content

Commit

Permalink
An additional parameter keepLines has been added into the formatting …
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
aiday-mar and aeschli authored Jul 11, 2022
1 parent ce04fb4 commit 33f744b
Show file tree
Hide file tree
Showing 9 changed files with 2,663 additions and 368 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ language: node_js
sudo: false

node_js:
- "12"
- "16"
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
3.1.0 2022-07-07
==================
* added new API `FormattingOptions.keepLines` : It leaves the initial line positions in the formatting

3.0.0 2020-11-13
==================
* fixed API spec for `parseTree`. Can return `undefine` for empty input.
Expand Down
Loading

0 comments on commit 33f744b

Please sign in to comment.