From cbcc388e61e4b31f76be464faf53118e36f14137 Mon Sep 17 00:00:00 2001 From: Rebecca Stevens Date: Thu, 18 Apr 2024 19:18:52 +1200 Subject: [PATCH] feat(functional-parameters): change options in recommended and lite configs Parameter count is only enforced if the function's type is declared locally. --- src/configs/recommended.ts | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/configs/recommended.ts b/src/configs/recommended.ts index f03fa03e8..eb33b2bd9 100644 --- a/src/configs/recommended.ts +++ b/src/configs/recommended.ts @@ -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]: [