Skip to content

Commit

Permalink
feat(functional-parameters): change options in recommended and lite c…
Browse files Browse the repository at this point in the history
…onfigs

Parameter count is only enforced if the function's type is declared locally.
  • Loading branch information
RebeccaStevens committed May 19, 2024
1 parent de6f6f9 commit aa3c1d8
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions src/configs/recommended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,23 @@ const overrides = {
[functionalParameters.fullName]: [
"error",
{
enforceParameterCount: {
ignoreLambdaExpression: true,
ignoreIIFE: true,
ignoreGettersAndSetters: true,
},
enforceParameterCount: false,
overrides: [
{
specifiers: [
{
from: "file",
},
],
options: {
enforceParameterCount: {
ignoreLambdaExpression: true,
ignoreIIFE: true,
ignoreGettersAndSetters: true,
},
},
},
],
},
],
[noConditionalStatements.fullName]: [
Expand Down

0 comments on commit aa3c1d8

Please sign in to comment.