Skip to content

Build your personal knowledge base with Trilium Notes

chore(eslint): add rule for unused vars

Panagiotis Papadopoulos2c7a25b7fce4
diff --git a/eslint.config.js b/eslint.config.js
index a0f099c48a..55ad4d9a26 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -19,7 +19,15 @@ export default tseslint.config(
{
rules: {
// add rule overrides here
- "no-undef": "off"
+ "no-undef": "off",
+ "no-unused-vars": "off",
+ "@typescript-eslint/no-unused-vars": [
+ "error",
+ {
+ "argsIgnorePattern": "^_",
+ "varsIgnorePattern": "^_",
+ }
+ ]
}
},
{