Willem van der Veen
Willem van der Veen

Reputation: 36580

Use ESlint with expressjs

I would like to use ESlint with express together and keep the no-unused-vars rule on.

Now when I have ESlint on I get the following:

enter image description here

I would like to turn the no-unused-vars rule off only for express functions. Is this possible?

Upvotes: 1

Views: 1189

Answers (1)

36ve
36ve

Reputation: 633

From the ESLint documentation, no-unused-var supports ignore patterns:

https://eslint.org/docs/rules/no-unused-vars#argsignorepattern

Upvotes: 4

Related Questions