Skip to content

How to configure functional-parameters for React-Hooks #560

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

You must be logged in to vote

You would want to use the enforceParameterCount option. You can simply just set this to false, or alternatively just set the sub-option ignoreLambdaExpression to true.

"functional/functional-parameters":  ["warn", { "enforceParameterCount": { "ignoreLambdaExpression": true } }],

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@0815pascal
Comment options

Answer selected by 0815pascal
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
Converted from issue

This discussion was converted from issue #559 on February 28, 2023 14:22.