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

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

Disable lint errors with no-console #17

Closed jesselawson closed 5 months ago

jesselawson commented 8 months ago

Type of change (place an x in the [ ] that applies)

Summary

The goal of this PR is to improve the developer experience by ensuring there are no lint errors when this project is cloned.

Specifically, this will ignore eslint errors around the educational usage of console.error in the listener and action callback functions by marking the whole file with eslint-disable no-console.

Alternatively we could add the lint ignore comment to each invocation of console.error().

Requirements (place an x in each [ ] that applies)

zimeg commented 8 months ago

👋 I tend to like allowing console.error on a project level and handling the console.log lines on a case-by-case basis with

console.log('⚡️ Bolt app is running! ⚡️'); // eslint-disable-line no-console