Add custom eslint rule: no-placeholder-comments

This commit is contained in:
Alex Gleason committed 2025-05-30 22:45:59 +02:00
1 parent a6eeb05d6e
commit 0e8a141490
4 files changed
+104

No files matched your search

+3
View File
@@ -3,6 +3,7 @@ import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tseslint from "typescript-eslint";
import customRules from "./eslint-rules/index.js";
export default tseslint.config(
{ ignores: ["dist"] },
@@ -16,6 +17,7 @@ export default tseslint.config(
plugins: {
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
"custom": customRules,
},
rules: {
...reactHooks.configs.recommended.rules,
@@ -24,6 +26,7 @@ export default tseslint.config(
{ allowConstantExport: true },
],
"@typescript-eslint/no-unused-vars": "off",
"custom/no-placeholder-comments": "error",
},
}
);