chore(eslint): add rule for unused vars

this is already used across codebase: using "_" as placeholder for deliberately unused vars (e.g. when destructuring arrays)
This commit is contained in:
Panagiotis Papadopoulos 2025-03-03 22:46:05 +01:00 committed by Panagiotis Papadopoulos
parent 6a5e622637
commit 2c7a25b7fc

View File

@ -19,7 +19,15 @@ export default tseslint.config(
{ {
rules: { rules: {
// add rule overrides here // add rule overrides here
"no-undef": "off" "no-undef": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
}
]
} }
}, },
{ {