DEV Community

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)