eslint ignore parameters with underscore

This rule will make no-unused-vars rule ignore all function parameters starting with underscore.

  "rules": {
    "no-unused-vars": [2, {"args": "all", "argsIgnorePattern": "^_"}]
  }

One response on “eslint ignore parameters with underscore

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.