Skip to main content

Other Things

Menu

Skip to content
  • Home
  • About
  • Projects

eslint ignore parameters with underscore

September 7, 2017
Adam Zolo
JavaScript 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": "^_"}]
  }

Post navigation

Categories

  • Agile (1)
  • AI (2)
  • angular (1)
  • C# (7)
  • Data Science (1)
  • Development Setup (2)
  • docker (4)
  • Elixir (8)
  • Elm (5)
  • Entity Framework (1)
  • git (3)
  • Homelab (2)
  • JavaScript (6)
  • Linux (5)
  • Machine Learning (3)
  • Minecraft (1)
  • MVC (3)
  • Performance (2)
  • Phoenix (4)
  • Python (1)
  • Rails (19)
    • Active Storage (1)
  • React (1)
  • Ruby (17)
  • Security (2)
  • SQL (6)
  • Stripe (1)
  • TFS (1)
  • Uncategorized (13)
  • Web (11)
  • Xamarin (2)

Posts by Date

September 2017
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  
« Aug   Oct »

Proudly powered by WordPress