mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 08:11:13 -05:00
Relax ESLint rules to warnings
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user