Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(fmt): support vto and njk extensions #25831

Merged
merged 2 commits into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
updated code, added test
  • Loading branch information
oscarotero authored and lucacasonato committed Sep 23, 2024
commit ad5d896f239ef504a88e32e38dbdc98ed5d67ab2
5 changes: 5 additions & 0 deletions tests/specs/fmt/njk/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tempDir": true,
"args": "fmt --unstable-component",
"output": "[WILDLINE]badly_formatted.njk\nChecked 1 file\n"
}
3 changes: 3 additions & 0 deletions tests/specs/fmt/njk/badly_formatted.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h1> {{ "Hello, world!" | upper }}
</h1>

5 changes: 5 additions & 0 deletions tests/specs/fmt/vento/__test__.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"tempDir": true,
"args": "fmt --unstable-component",
"output": "[WILDLINE]badly_formatted.vto\nChecked 1 file\n"
}
3 changes: 3 additions & 0 deletions tests/specs/fmt/vento/badly_formatted.vto
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<h1> {{ "Hello, world!" |> toUpperCase }}
</h1>