-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from marko-js/preserve-comment-style
fix: preserve comment style
- Loading branch information
Showing
23 changed files
with
4,737 additions
and
11,522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,34 +5,34 @@ | |
"author": "Dylan Piercey <[email protected]>", | ||
"bugs": "https://github.com/marko-js/prettier/issues", | ||
"devDependencies": { | ||
"@babel/generator": "^7.18.9", | ||
"@commitlint/cli": "^16.2.3", | ||
"@commitlint/config-conventional": "^16.2.1", | ||
"@babel/generator": "^7.20.14", | ||
"@commitlint/cli": "^17.4.4", | ||
"@commitlint/config-conventional": "^17.4.4", | ||
"@istanbuljs/nyc-config-typescript": "^1.0.2", | ||
"@marko/compiler": "^5.21.4", | ||
"@marko/translator-default": "^5.20.5", | ||
"@marko/compiler": "^5.23.4", | ||
"@marko/translator-default": "^5.22.4", | ||
"@types/babel__generator": "^7.6.4", | ||
"@types/mocha": "^9.1.1", | ||
"@types/node": "^17.0.25", | ||
"@types/prettier": "^2.6.0", | ||
"@typescript-eslint/eslint-plugin": "^5.20.0", | ||
"@typescript-eslint/parser": "^5.20.0", | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "^18.14.0", | ||
"@types/prettier": "^2.7.2", | ||
"@typescript-eslint/eslint-plugin": "^5.52.0", | ||
"@typescript-eslint/parser": "^5.52.0", | ||
"codecov": "^3.8.3", | ||
"esbuild": "^0.14.38", | ||
"esbuild-register": "^3.3.2", | ||
"eslint": "^8.13.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"fast-glob": "^3.2.11", | ||
"esbuild": "^0.17.8", | ||
"esbuild-register": "^3.4.2", | ||
"eslint": "^8.34.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"fast-glob": "^3.2.12", | ||
"fixpack": "^4.0.0", | ||
"husky": "^7.0.4", | ||
"lint-staged": "^12.4.0", | ||
"marko": "^5.20.5", | ||
"mocha": "^9.2.2", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^13.1.2", | ||
"marko": "^5.22.4", | ||
"mocha": "^10.2.0", | ||
"mocha-snap": "^4.3.0", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.6.2", | ||
"semantic-release": "^19.0.2", | ||
"typescript": "^4.6.3" | ||
"prettier": "^2.8.4", | ||
"semantic-release": "^20.1.0", | ||
"typescript": "^4.9.5" | ||
}, | ||
"exports": { | ||
".": { | ||
|
3 changes: 2 additions & 1 deletion
3
src/__tests__/__snapshots__/comments-inline-complex.expected/auto.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
div.hello | ||
<!-- This is a line comment--> | ||
// This is a line comment | ||
|
||
span | ||
-- Welcome to | ||
b -- Marko | ||
|
3 changes: 2 additions & 1 deletion
3
src/__tests__/__snapshots__/comments-inline-complex.expected/concise.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
div.hello | ||
<!-- This is a line comment--> | ||
// This is a line comment | ||
|
||
span | ||
-- Welcome to | ||
b -- Marko | ||
|
3 changes: 2 additions & 1 deletion
3
src/__tests__/__snapshots__/comments-inline-complex.expected/html.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/__tests__/__snapshots__/comments-inline-complex.expected/with-parens.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
div.hello | ||
<!-- This is a line comment--> | ||
// This is a line comment | ||
|
||
span | ||
-- Welcome to | ||
b -- Marko | ||
|
7 changes: 6 additions & 1 deletion
7
src/__tests__/__snapshots__/comments-multiple-lines-as-text.expected/auto.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
-- <!-- this is--><!-- multiple lines--><!-- of comments-->Hi! | ||
-- | ||
// this is | ||
// multiple lines | ||
// of comments | ||
Hi! | ||
-- |
7 changes: 6 additions & 1 deletion
7
src/__tests__/__snapshots__/comments-multiple-lines-as-text.expected/concise.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
-- <!-- this is--><!-- multiple lines--><!-- of comments-->Hi! | ||
-- | ||
// this is | ||
// multiple lines | ||
// of comments | ||
Hi! | ||
-- |
7 changes: 6 additions & 1 deletion
7
src/__tests__/__snapshots__/comments-multiple-lines-as-text.expected/html.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
-- <!-- this is--><!-- multiple lines--><!-- of comments-->Hi! | ||
-- | ||
// this is | ||
// multiple lines | ||
// of comments | ||
Hi! | ||
-- |
7 changes: 6 additions & 1 deletion
7
src/__tests__/__snapshots__/comments-multiple-lines-as-text.expected/with-parens.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
-- <!-- this is--><!-- multiple lines--><!-- of comments-->Hi! | ||
-- | ||
// this is | ||
// multiple lines | ||
// of comments | ||
Hi! | ||
-- |
9 changes: 6 additions & 3 deletions
9
src/__tests__/__snapshots__/comments-multiple-lines-not-text.expected/auto.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<div/> | ||
<!-- this is--> | ||
<!-- multiple lines--> | ||
<!-- of comments--> | ||
// this is | ||
|
||
// multiple lines | ||
|
||
// of comments | ||
|
||
<div/> |
9 changes: 6 additions & 3 deletions
9
src/__tests__/__snapshots__/comments-multiple-lines-not-text.expected/concise.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
div | ||
<!-- this is--> | ||
<!-- multiple lines--> | ||
<!-- of comments--> | ||
// this is | ||
|
||
// multiple lines | ||
|
||
// of comments | ||
|
||
div |
9 changes: 6 additions & 3 deletions
9
src/__tests__/__snapshots__/comments-multiple-lines-not-text.expected/html.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<div/> | ||
<!-- this is--> | ||
<!-- multiple lines--> | ||
<!-- of comments--> | ||
// this is | ||
|
||
// multiple lines | ||
|
||
// of comments | ||
|
||
<div/> |
9 changes: 6 additions & 3 deletions
9
src/__tests__/__snapshots__/comments-multiple-lines-not-text.expected/with-parens.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<div/> | ||
<!-- this is--> | ||
<!-- multiple lines--> | ||
<!-- of comments--> | ||
// this is | ||
|
||
// multiple lines | ||
|
||
// of comments | ||
|
||
<div/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
div.hello | ||
<!-- This is a line comment--> | ||
// This is a line comment | ||
|
||
span | ||
-- Welcome to | ||
b -- Marko | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
div.hello | ||
<!-- This is a line comment--> | ||
// This is a line comment | ||
|
||
span | ||
-- Welcome to | ||
b -- Marko | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/__tests__/__snapshots__/comments.expected/with-parens.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
div.hello | ||
<!-- This is a line comment--> | ||
// This is a line comment | ||
|
||
span | ||
-- Welcome to | ||
b -- Marko | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.