eslint ignore parameters with underscore

No Comments

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

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

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.

Loading Facebook Comments ...