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
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.cspell.json
.vscode-test/
htmlhint/out/
htmlhint/server/
Expand Down
4 changes: 2 additions & 2 deletions htmlhint-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ function createDoctypeFirstFix(

// Insert DOCTYPE at the beginning of the document
const insertPosition = document.positionAt(0);
const newText = "<!DOCTYPE html>\n";
const newText = "<!doctype html>\n";

const edit: TextEdit = {
range: {
Expand Down Expand Up @@ -803,7 +803,7 @@ function createDoctypeHtml5Fix(
start: document.positionAt(doctypeStart),
end: document.positionAt(doctypeEnd),
},
newText: "<!DOCTYPE html>",
newText: "<!doctype html>",
};

const workspaceEdit: WorkspaceEdit = {
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.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"build": "npm run compile",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prettier": "prettier --write \"**/*.{js,md,ts,yml}\"",
"prettier": "prettier --write \"**/*.{js,json,md,ts,yml}\"",
"spellcheck": "npx cspell \"**/*.{html,js,json,md,ts,yml}\"",
"postinstall": "cd htmlhint && npm i && cd ../htmlhint-server && npm i",
"compile": "cd htmlhint-server && npm run compile && cd ../htmlhint && npm run compile",
Expand All @@ -43,7 +43,7 @@
"glob": "^13.0.0",
"globals": "^16.5.0",
"mocha": "^11.7.5",
"prettier": "3.7.1",
"prettier": "3.7.3",
"ts-node": "^10.9.2",
"typescript": "5.6.3"
},
Expand Down