-
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.
BREAKING CHANGE: prettier 3 is now required
- Loading branch information
1 parent
710f306
commit bcc5689
Showing
57 changed files
with
4,385 additions
and
2,752 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"timeout": "5000", | ||
"extension": ["js", "ts"], | ||
"enable-source-maps": true, | ||
"watchFiles": ["src/**/*.ts"], | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ const opts: BuildOptions = { | |
({ path }) => ({ | ||
path, | ||
external: true, | ||
}) | ||
}), | ||
); | ||
}, | ||
}, | ||
|
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,32 +5,30 @@ | |
"author": "Dylan Piercey <[email protected]>", | ||
"bugs": "https://github.com/marko-js/prettier/issues", | ||
"devDependencies": { | ||
"@babel/generator": "^7.20.14", | ||
"@commitlint/cli": "^17.4.4", | ||
"@commitlint/config-conventional": "^17.4.4", | ||
"@babel/generator": "^7.23.0", | ||
"@commitlint/cli": "^17.7.2", | ||
"@commitlint/config-conventional": "^17.7.0", | ||
"@istanbuljs/nyc-config-typescript": "^1.0.2", | ||
"@types/babel__generator": "^7.6.4", | ||
"@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.17.8", | ||
"esbuild-register": "^3.4.2", | ||
"eslint": "^8.34.0", | ||
"eslint-config-prettier": "^8.6.0", | ||
"fast-glob": "^3.2.12", | ||
"@types/babel__generator": "^7.6.5", | ||
"@types/mocha": "^10.0.2", | ||
"@types/node": "^20.8.4", | ||
"@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", | ||
"fixpack": "^4.0.0", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^13.1.2", | ||
"marko": "^5.22.4", | ||
"lint-staged": "^14.0.1", | ||
"marko": "^5.31.11", | ||
"mocha": "^10.2.0", | ||
"mocha-snap": "^4.3.0", | ||
"mocha-snap": "^5.0.0", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.8.8", | ||
"semantic-release": "^20.1.0", | ||
"typescript": "^4.9.5" | ||
"prettier": "^3.0.3", | ||
"semantic-release": "^22.0.5", | ||
"typescript": "^5.2.2" | ||
}, | ||
"exports": { | ||
".": { | ||
|
@@ -66,7 +64,6 @@ | |
}, | ||
"scripts": { | ||
"build": "tsc -b && node -r esbuild-register build", | ||
"ci:report": "codecov", | ||
"ci:test": "nyc npm run mocha -- --forbid-pending --forbid-only", | ||
"format": "npm run lint:eslint -- --fix && npm run lint:prettier -- --write && (fixpack || true)", | ||
"lint": "tsc -b && npm run lint:eslint && npm run lint:prettier -- -l && fixpack", | ||
|
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
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
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 |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc | ||
cccccccccc, | ||
)/> | ||
<foo(a, b)/> |
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 |
---|---|---|
|
@@ -3,6 +3,6 @@ foo( | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc | ||
cccccccccc, | ||
) | ||
foo(a, b) |
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 |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc | ||
cccccccccc, | ||
)/> | ||
<foo(a, b)/> |
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 |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc | ||
cccccccccc, | ||
)/> | ||
<foo(a, b)/> |
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc | ||
cccccccccc, | ||
)/> |
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ div foo( | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc | ||
cccccccccc, | ||
) |
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc | ||
cccccccccc, | ||
)/> |
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc | ||
cccccccccc, | ||
)/> |
3 changes: 2 additions & 1 deletion
3
src/__tests__/__snapshots__/embedded-text-with-placeholders.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
2 changes: 0 additions & 2 deletions
2
src/__tests__/__snapshots__/ignore-embedded-script-errors.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,7 +1,5 @@ | ||
style { | ||
invalid { color blue; } | ||
} | ||
|
||
<style> | ||
|
2 changes: 0 additions & 2 deletions
2
src/__tests__/__snapshots__/ignore-embedded-script-errors.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,7 +1,5 @@ | ||
style { | ||
invalid { color blue; } | ||
} | ||
|
||
style | ||
|
2 changes: 0 additions & 2 deletions
2
src/__tests__/__snapshots__/ignore-embedded-script-errors.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,7 +1,5 @@ | ||
style { | ||
invalid { color blue; } | ||
} | ||
|
||
<style> | ||
|
2 changes: 0 additions & 2 deletions
2
src/__tests__/__snapshots__/ignore-embedded-script-errors.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,7 +1,5 @@ | ||
style { | ||
invalid { color blue; } | ||
} | ||
|
||
<style> | ||
|
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 |
---|---|---|
|
@@ -8,5 +8,5 @@ | |
}, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc | ||
cccccccccc, | ||
|/> |
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 |
---|---|---|
|
@@ -8,5 +8,5 @@ foo| | |
}, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc | ||
cccccccccc, | ||
| |
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 |
---|---|---|
|
@@ -8,5 +8,5 @@ | |
}, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc | ||
cccccccccc, | ||
|/> |
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 |
---|---|---|
|
@@ -8,5 +8,5 @@ | |
}, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc | ||
cccccccccc, | ||
|/> |
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 |
---|---|---|
|
@@ -19,5 +19,5 @@ $ console.log( | |
["g", 1], | ||
["h", 1], | ||
["i", 1], | ||
]) | ||
]), | ||
); |
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 |
---|---|---|
|
@@ -19,5 +19,5 @@ $ console.log( | |
["g", 1], | ||
["h", 1], | ||
["i", 1], | ||
]) | ||
]), | ||
); |
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 |
---|---|---|
|
@@ -19,5 +19,5 @@ $ console.log( | |
["g", 1], | ||
["h", 1], | ||
["i", 1], | ||
]) | ||
]), | ||
); |
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 |
---|---|---|
|
@@ -19,5 +19,5 @@ $ console.log( | |
["g", 1], | ||
["h", 1], | ||
["i", 1], | ||
]) | ||
]), | ||
); |
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 |
---|---|---|
|
@@ -19,5 +19,5 @@ static console.log( | |
["g", 1], | ||
["h", 1], | ||
["i", 1], | ||
]) | ||
]), | ||
); |
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 |
---|---|---|
|
@@ -19,5 +19,5 @@ static console.log( | |
["g", 1], | ||
["h", 1], | ||
["i", 1], | ||
]) | ||
]), | ||
); |
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 |
---|---|---|
|
@@ -19,5 +19,5 @@ static console.log( | |
["g", 1], | ||
["h", 1], | ||
["i", 1], | ||
]) | ||
]), | ||
); |
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 |
---|---|---|
|
@@ -19,5 +19,5 @@ static console.log( | |
["g", 1], | ||
["h", 1], | ||
["i", 1], | ||
]) | ||
]), | ||
); |
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc | ||
cccccccccc, | ||
)/> |
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ foo( | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc | ||
cccccccccc, | ||
) |
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc | ||
cccccccccc, | ||
)/> |
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 |
---|---|---|
|
@@ -3,5 +3,5 @@ | |
{ aaaaaaaaaa: 1, bbbbbbbbbb: 2, cccccccccc: 3 }, | ||
aaaaaaaaaa, | ||
bbbbbbbbbb, | ||
cccccccccc | ||
cccccccccc, | ||
)/> |
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
w, | ||
x, | ||
y, | ||
z | ||
z, | ||
|> | ||
${a} | ||
</custom-tag> |
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 |
---|---|---|
|
@@ -24,6 +24,6 @@ custom-tag| | |
w, | ||
x, | ||
y, | ||
z | ||
z, | ||
| | ||
-- ${a} |
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
w, | ||
x, | ||
y, | ||
z | ||
z, | ||
|> | ||
${a} | ||
</custom-tag> |
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 |
---|---|---|
|
@@ -24,7 +24,7 @@ | |
w, | ||
x, | ||
y, | ||
z | ||
z, | ||
|> | ||
${a} | ||
</custom-tag> |
Oops, something went wrong.