eslint ignore parameters with underscore

1 Comment

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

One Reply to “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.