tool: add a linter for html and css and apply it

This commit is contained in:
Alexis Fourmaux 2026-05-11 22:08:32 +02:00
parent 4bd3ab2d2d
commit 97ca3813e8
4 changed files with 23 additions and 13 deletions

View file

@ -1,3 +1,9 @@
{
"editor.defaultFormatter": "charliermarsh.ruff"
"editor.defaultFormatter": "charliermarsh.ruff",
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}

View file

@ -0,0 +1,4 @@
{
"singleQuote": false,
"htmlWhitespaceSensitivity": "css"
}

View file

@ -1,12 +1,12 @@
<!DOCTYPE html>
<html lang='fr'>
<head>
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Simugaz WebUI</title>
<link rel='stylesheet' href='/assets/css/main.css'>
</head>
<body>
<link rel="stylesheet" href="/assets/css/main.css" />
</head>
<body>
<h1>Hello, World!</h1>
</body>
</body>
</html>