mirror of
https://github.com/zadam/trilium.git
synced 2025-10-18 11:28:15 +08:00
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:
parent
6a5e622637
commit
2c7a25b7fc
1 changed files with 9 additions and 1 deletions
|
@ -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": "^_",
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue