diff --git a/.eslintrc b/.eslintrc index a355bba..895f928 100644 --- a/.eslintrc +++ b/.eslintrc @@ -75,6 +75,18 @@ "ts": "never" } } + ], + "@typescript-eslint/no-unused-vars": [ + "error", + { + "args": "all", + "argsIgnorePattern": "^_", + "caughtErrors": "all", + "caughtErrorsIgnorePattern": "^_", + "destructuredArrayIgnorePattern": "^_", + "varsIgnorePattern": "^_", + "ignoreRestSiblings": true + } ] } } diff --git a/packages/bautajs-core/src/decorators/iif.ts b/packages/bautajs-core/src/decorators/iif.ts index 8e77b40..143b7f4 100644 --- a/packages/bautajs-core/src/decorators/iif.ts +++ b/packages/bautajs-core/src/decorators/iif.ts @@ -1,16 +1,4 @@ import { BautaJSInstance, Context, Pipeline } from '../types'; -// eslint-disable-next-line @typescript-eslint/no-unused-vars -export function iif( - condition: (prev: TIn, ctx: Context, bautajs: BautaJSInstance) => boolean, - pipeline: Pipeline.StepFunction -): Pipeline.StepFunction; - -export function iif( - condition: (prev: TIn, ctx: Context, bautajs: BautaJSInstance) => boolean, - pipeline: Pipeline.StepFunction, - elsePipeline: Pipeline.StepFunction -): Pipeline.StepFunction; - /** * @deprecated This function is deprecated and will be removed in future releases *