eslint HTML title

This commit is contained in:
Alex Gleason committed 2025-05-30 22:58:43 +02:00
1 parent 81f90b9985
commit 95de9fde27
4 files changed
+101 -1

No files matched your search

+16
View File
@@ -3,6 +3,8 @@ import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tseslint from "typescript-eslint";
import htmlEslint from "@html-eslint/eslint-plugin";
import htmlParser from "@html-eslint/parser";
import customRules from "./eslint-rules/index.js";
export default tseslint.config(
@@ -28,5 +30,19 @@ export default tseslint.config(
"@typescript-eslint/no-unused-vars": "off",
"custom/no-placeholder-comments": "error",
},
},
{
files: ["**/*.html"],
plugins: {
"@html-eslint": htmlEslint,
},
languageOptions: {
parser: htmlParser,
},
rules: {
"@html-eslint/require-title": "error",
"@html-eslint/require-meta-charset": "error",
"@html-eslint/require-meta-viewport": "error",
},
}
);