feat: Add ESLint rule for console statements

This commit is contained in:
gpt-engineer-app[bot]
2025-11-03 14:46:49 +00:00
parent a3ef90e275
commit 3ee65403ea
2 changed files with 284 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ export default tseslint.config(
rules: {
...reactHooks.configs.recommended.rules,
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
// Console statement prevention (P0 #2 - Security Critical)
"no-console": ["error", { allow: ["warn", "error"] }],
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unsafe-assignment": "warn",
@@ -49,6 +51,8 @@ export default tseslint.config(
globals: globals.node,
},
rules: {
// Console statement prevention (P0 #2 - Security Critical)
"no-console": ["error", { allow: ["warn", "error"] }],
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/explicit-function-return-type": ["error", {