slack-samples / bolt-js-custom-step-template

A template for building automations with Bolt for JavaScript
MIT License
3 stars 1 forks source link

Ignore unused arguments prefixed with an underscore #10

Closed zimeg closed 10 months ago

zimeg commented 10 months ago

Type of change

Summary

This PR adds a condition to the no-unused-vars linter rule to ignore errors for variables prefixed with an underscore.

Unfortunately the args-after-used option doesn't apply to object parameters, so this is the best workaround I can think of. Open to other suggestions of course!

Notes

Requirements

zimeg commented 10 months ago

There is a better solution. I believe it.