Skip to content

Commit 12a0642

Browse files
committed
Update TypeScript to 5.6.3 and add Prettier formatting rules
Upgraded TypeScript from 5.5.4 to 5.6.3 in all relevant package files. Updated AGENTS.md to specify Prettier as the formatting tool for Markdown and TypeScript code. Minor formatting fix in server.ts.
1 parent 6e3f612 commit 12a0642

File tree

6 files changed

+21
-13
lines changed

6 files changed

+21
-13
lines changed

AGENTS.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
- Never downgrade dependencies.
99
- Newly added version/features for the Extension Changelog go at the top.
1010
- As a general rule: some rules, attributes, lists should be in alphabetical order.
11+
- Format everything (except HTML) with Prettier.
12+
13+
## Markdown Code Style
14+
15+
- Format with Prettier.
16+
17+
## TypeScript Code Style
18+
19+
- Format with Prettier.
1120

1221
## Communication (MANDATORY)
1322

@@ -28,4 +37,4 @@
2837

2938
- No emojis in code or documentation.
3039
- Only implement what's requested.
31-
- Preserve existing structures - Don't remove unrelated code
40+
- Preserve existing structures - Don't remove unrelated code.

htmlhint-server/src/server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,8 +1074,7 @@ function createLinkRelCanonicalRequireFix(
10741074
let insertPosition: number;
10751075
const shouldSelfClose = isRuleEnabledForDocument(document, "tag-self-close");
10761076
const canonicalSnippet =
1077-
'\n <link rel="canonical" href=""' +
1078-
(shouldSelfClose ? " />" : ">");
1077+
'\n <link rel="canonical" href=""' + (shouldSelfClose ? " />" : ">");
10791078

10801079
if (metaDescriptionMatch) {
10811080
// Insert after description meta tag

htmlhint/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

htmlhint/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"@types/node": "^22.19.1",
9595
"@types/vscode": "^1.101.0",
9696
"@vscode/test-electron": "^2.5.2",
97-
"typescript": "5.5.4"
97+
"typescript": "5.6.3"
9898
},
9999
"dependencies": {
100100
"htmlhint": "1.8.0",

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"mocha": "^11.7.5",
4646
"prettier": "3.7.1",
4747
"ts-node": "^10.9.2",
48-
"typescript": "5.5.4"
48+
"typescript": "5.6.3"
4949
},
5050
"engines": {
5151
"node": ">= 22"

0 commit comments

Comments
 (0)