Skip to content

Commit 9648699

Browse files
committed
chore: fmt
1 parent 2fe5941 commit 9648699

4 files changed

Lines changed: 6 additions & 12 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/setup-node@v5
1111
with: { node-version: lts/*, cache: "pnpm" }
1212
- run: pnpm install
13-
- run: pnpm lint:fix
13+
- run: pnpm fmt
1414
- run: pnpm automd
1515
- uses: autofix-ci/action@635ffb0c9798bd160680f18fd73371e355b85f27
1616
with: { commit-message: "chore: apply automated updates" }

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pnpm vitest run <path> # Run specific test file
5757
pnpm test # Full: lint + type-check + tests with coverage
5858
pnpm build # Build with obuild (outputs to dist/)
5959
pnpm play # Start playground server
60-
pnpm lint:fix # automd + oxlint --fix + oxfmt
60+
pnpm fmt # automd + oxlint --fix + oxfmt
6161
```
6262

6363
## Key Dependencies

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"build": "obuild",
1919
"dev": "vitest dev",
2020
"lint": "oxlint . && oxfmt --check .",
21-
"lint:fix": "automd && oxlint . --fix && oxfmt .",
21+
"fmt": "automd && oxlint . --fix && oxfmt .",
2222
"prepack": "pnpm build",
2323
"play": "pnpm rendu playground",
2424
"release": "pnpm test && pnpm build && changelogen --release && npm publish && git push --follow-tags",

test/parser.test.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,12 @@ describe("parser", () => {
6565

6666
it("multiline curly expression", () => {
6767
const tokens = parseTemplate("{{ a ?\n b : c }}");
68-
expect(tokens).toMatchObject([
69-
{ type: "expr", contents: "htmlspecialchars(a ?\n b : c)" },
70-
]);
68+
expect(tokens).toMatchObject([{ type: "expr", contents: "htmlspecialchars(a ?\n b : c)" }]);
7169
});
7270

7371
it("multiline curly unescaped expression", () => {
7472
const tokens = parseTemplate("{{{ a ?\n b : c }}}");
75-
expect(tokens).toMatchObject([
76-
{ type: "expr", contents: "a ?\n b : c" },
77-
]);
73+
expect(tokens).toMatchObject([{ type: "expr", contents: "a ?\n b : c" }]);
7874
});
7975

8076
it("code", () => {
@@ -96,9 +92,7 @@ describe("parser", () => {
9692
});
9793

9894
it("script server", () => {
99-
const tokens = parseTemplate(
100-
"<script server>const x = 1;</script><p><?= x ?></p>",
101-
);
95+
const tokens = parseTemplate("<script server>const x = 1;</script><p><?= x ?></p>");
10296
expect(tokens).toMatchObject([
10397
{ type: "code", contents: "const x = 1;" },
10498
{ type: "text", contents: "<p>" },

0 commit comments

Comments
 (0)