Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
11 changes: 10 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@
- Never downgrade dependencies.
- Newly added version/features for the Extension Changelog go at the top.
- As a general rule: some rules, attributes, lists should be in alphabetical order.
- Format everything (except HTML) with Prettier.

## Markdown Code Style

- Format with Prettier.

## TypeScript Code Style

- Format with Prettier.

## Communication (MANDATORY)

Expand All @@ -28,4 +37,4 @@

- No emojis in code or documentation.
- Only implement what's requested.
- Preserve existing structures - Don't remove unrelated code
- Preserve existing structures - Don't remove unrelated code.
3 changes: 1 addition & 2 deletions htmlhint-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1074,8 +1074,7 @@ function createLinkRelCanonicalRequireFix(
let insertPosition: number;
const shouldSelfClose = isRuleEnabledForDocument(document, "tag-self-close");
const canonicalSnippet =
'\n <link rel="canonical" href=""' +
(shouldSelfClose ? " />" : ">");
'\n <link rel="canonical" href=""' + (shouldSelfClose ? " />" : ">");

if (metaDescriptionMatch) {
// Insert after description meta tag
Expand Down
8 changes: 4 additions & 4 deletions htmlhint/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion htmlhint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"@types/node": "^22.19.1",
"@types/vscode": "^1.101.0",
"@vscode/test-electron": "^2.5.2",
"typescript": "5.5.4"
"typescript": "5.6.3"
},
"dependencies": {
"htmlhint": "1.8.0",
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"mocha": "^11.7.5",
"prettier": "3.7.1",
"ts-node": "^10.9.2",
"typescript": "5.5.4"
"typescript": "5.6.3"
},
"engines": {
"node": ">= 22"
Expand Down