DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,274 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Yoshi Yamaguchi
Yoshi Yamaguchi

Posted on

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
  ...
}

Reference

Top comments (0)

Visualizing Promises and Async/Await 🀯

async await

☝️ Check out this all-time classic DEV post