ignorePattern does not seem to be working #465
-
Thank you so much for this great ESLint plugin :) It seems that ignorePattern is not working. Unfortunatelly eslint is not taking into account the ignorePattern from above. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The arrow function declaration is what is being reported as violating the rule; not the call of the I'd recommend either adding an |
Beta Was this translation helpful? Give feedback.
The arrow function declaration is what is being reported as violating the rule; not the call of the
computed
function. TheignorePattern
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.