Underscore variable is still triggering eslint `no-unused-vars`. Why?

How can I optimize this code so that this eslint rule wort triggger?
6 Replies
Patryk Makowski
Patryk MakowskiOP2y ago
For anyone interested
"rules": {
"@typescript-eslint/no-unused-vars": [2, {
"args": "after-used",
"vars": "all",
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}]
}
"rules": {
"@typescript-eslint/no-unused-vars": [2, {
"args": "after-used",
"vars": "all",
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}]
}
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Patryk Makowski
Patryk MakowskiOP2y ago
This works
Patryk Makowski
Patryk MakowskiOP2y ago
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Patryk Makowski
Patryk MakowskiOP2y ago
Thanks
Want results from more Discord servers?
Add your server