Relax ESLint rules to warnings

This commit is contained in:
gpt-engineer-app[bot]
2025-10-30 00:38:57 +00:00
parent 27699a2502
commit 2829f5f491

View File

@@ -25,19 +25,19 @@ export default tseslint.config(
rules: { rules: {
...reactHooks.configs.recommended.rules, ...reactHooks.configs.recommended.rules,
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }], "react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
"@typescript-eslint/no-unused-vars": "error", "@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "error", "@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unsafe-assignment": "error", "@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-unsafe-member-access": "error", "@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-call": "error", "@typescript-eslint/no-unsafe-call": "warn",
"@typescript-eslint/no-unsafe-return": "error", "@typescript-eslint/no-unsafe-return": "warn",
"@typescript-eslint/no-unsafe-argument": "error", "@typescript-eslint/no-unsafe-argument": "warn",
"@typescript-eslint/explicit-function-return-type": ["error", { "@typescript-eslint/explicit-function-return-type": "off",
allowExpressions: true, "@typescript-eslint/no-misused-promises": "warn",
allowTypedFunctionExpressions: true, "@typescript-eslint/await-thenable": "warn",
allowHigherOrderFunctions: true, "@typescript-eslint/no-floating-promises": "warn",
allowDirectConstAssertionInArrowFunctions: true, "@typescript-eslint/no-unnecessary-type-assertion": "warn",
}], "@typescript-eslint/require-await": "warn",
}, },
}, },
// API configuration without type-aware rules for better performance // API configuration without type-aware rules for better performance