[functional-parameters] ignorePattern isn't matching against reduce function callbacks #313
Unanswered
garethallenstringer
asked this question in
Q&A
Replies: 1 comment
-
Unfortunately, regex patterns have there limit. The proposal in #244 should allow for a nicer way to solve this issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Having difficulty matching
ignorePattern
to a.reduce()
function for the case of:"functional/functional-parameters": ["warn", { "enforceParameterCount": "exactlyOne", "ignorePattern": ["(?<=\\.reduce\\()(.*)(?=\\))"] }]
in my eslintrc.json rules. I have tried a multitude of other regular expressions but haven't had any joy.
Beta Was this translation helpful? Give feedback.
All reactions