DEV Community

Yoshi Yamaguchi
Yoshi Yamaguchi

Posted on

4

Ignore ESLint rules on specific lines

On writing codes for Google Apps Script with clasp, it is often the case you get warning from ESLint like "@typescript-eslint/no-unused-vars" on the functions because they are called from triggers in most cases.

Warning message by ESLint

For that, you can use inline comments to disable rule of ESLint as follows:

function mp4Organize(): void { // eslint-disable-line @typescript-eslint/no-unused-vars
  ...
}
Enter fullscreen mode Exit fullscreen mode

Reference

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

nextjs tutorial video

📺 Youtube Tutorial Series

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay