mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 16:33:36 +00:00
eslint HTML title
This commit is contained in:
4 files changed
+101
-1
No files matched your search
@@ -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",
|
||||
},
|
||||
}
|
||||
);
|
||||
Reference in new issue
Block a user