Skip to content

ignorePattern does not seem to be working #465

Answered by RebeccaStevens
iKnowMagic asked this question in Q&A
Discussion options

You must be logged in to vote

The arrow function declaration is what is being reported as violating the rule; not the call of the computed function. The ignorePattern option work by matching against the name of the function, but as the arrow function has no name, it cannot be ignored via this option.

I'd recommend either adding an eslint-disable-next comment before the allow function or adjusting your config to not enforce a parameter count. I just created #468 which if adding will give another option to approach this.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by iKnowMagic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants