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