-
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.
fix: printing attr method shorthands (#56)
- Loading branch information
1 parent
3453012
commit a9a0a0b
Showing
12 changed files
with
2,557 additions
and
2,060 deletions.
There are no files selected for viewing
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,30 +5,30 @@ | |
"author": "Dylan Piercey <[email protected]>", | ||
"bugs": "https://github.com/marko-js/prettier/issues", | ||
"devDependencies": { | ||
"@babel/generator": "^7.23.0", | ||
"@babel/generator": "^7.25.5", | ||
"@commitlint/cli": "^17.7.2", | ||
"@commitlint/config-conventional": "^17.7.0", | ||
"@istanbuljs/nyc-config-typescript": "^1.0.2", | ||
"@types/babel__generator": "^7.6.5", | ||
"@types/mocha": "^10.0.2", | ||
"@types/node": "^20.8.4", | ||
"@types/babel__generator": "^7.6.8", | ||
"@types/mocha": "^10.0.7", | ||
"@types/node": "^22.5.1", | ||
"@typescript-eslint/eslint-plugin": "^6.7.5", | ||
"@typescript-eslint/parser": "^6.7.5", | ||
"esbuild": "^0.19.4", | ||
"esbuild-register": "^3.5.0", | ||
"eslint": "^8.51.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"fast-glob": "^3.3.1", | ||
"fast-glob": "^3.3.2", | ||
"fixpack": "^4.0.0", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^14.0.1", | ||
"marko": "^5.32.0", | ||
"mocha": "^10.2.0", | ||
"marko": "^5.35.11", | ||
"mocha": "^10.7.3", | ||
"mocha-snap": "^5.0.0", | ||
"nyc": "^15.1.0", | ||
"prettier": "^3.0.3", | ||
"prettier": "^3.3.3", | ||
"semantic-release": "^22.0.5", | ||
"typescript": "^5.2.2" | ||
"typescript": "^5.5.4" | ||
}, | ||
"exports": { | ||
".": { | ||
|
8 changes: 6 additions & 2 deletions
8
src/__tests__/__snapshots__/attr-default-method.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,3 +1,7 @@ | ||
<custom-tag() { console.log("hi"); }/> | ||
<custom-tag() { | ||
console.log("hi"); | ||
}/> | ||
|
||
<custom-tag() { console.log("hi"); }/> | ||
<custom-tag() { | ||
console.log("hi"); | ||
}/> |
8 changes: 6 additions & 2 deletions
8
src/__tests__/__snapshots__/attr-default-method.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,3 +1,7 @@ | ||
custom-tag() { console.log("hi"); } | ||
custom-tag() { | ||
console.log("hi"); | ||
} | ||
|
||
custom-tag() { console.log("hi"); } | ||
custom-tag() { | ||
console.log("hi"); | ||
} |
8 changes: 6 additions & 2 deletions
8
src/__tests__/__snapshots__/attr-default-method.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,3 +1,7 @@ | ||
<custom-tag() { console.log("hi"); }/> | ||
<custom-tag() { | ||
console.log("hi"); | ||
}/> | ||
|
||
<custom-tag() { console.log("hi"); }/> | ||
<custom-tag() { | ||
console.log("hi"); | ||
}/> |
8 changes: 6 additions & 2 deletions
8
src/__tests__/__snapshots__/attr-default-method.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,3 +1,7 @@ | ||
<custom-tag() { console.log("hi"); }/> | ||
<custom-tag() { | ||
console.log("hi"); | ||
}/> | ||
|
||
<custom-tag() { console.log("hi"); }/> | ||
<custom-tag() { | ||
console.log("hi"); | ||
}/> |
4 changes: 3 additions & 1 deletion
4
src/__tests__/__snapshots__/tag-effect-single-line.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,3 @@ | ||
<effect() { console.log("Hello again"); }/> | ||
<effect() { | ||
console.log("Hello again"); | ||
}/> |
4 changes: 3 additions & 1 deletion
4
src/__tests__/__snapshots__/tag-effect-single-line.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,3 @@ | ||
effect() { console.log("Hello again"); } | ||
effect() { | ||
console.log("Hello again"); | ||
} |
4 changes: 3 additions & 1 deletion
4
src/__tests__/__snapshots__/tag-effect-single-line.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,3 @@ | ||
<effect() { console.log("Hello again"); }/> | ||
<effect() { | ||
console.log("Hello again"); | ||
}/> |
4 changes: 3 additions & 1 deletion
4
src/__tests__/__snapshots__/tag-effect-single-line.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,3 @@ | ||
<effect() { console.log("Hello again"); }/> | ||
<effect() { | ||
console.log("Hello again"); | ||
}/> |
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