Skip to main content

Function: createTypeScriptEslintNodeExpressionSkipChecker()

createTypeScriptEslintNodeExpressionSkipChecker<MessageIds, Options>(context: Readonly<TSESLint.RuleContext<MessageIds, Options>>, typedServices?: Readonly<TypedRuleServices>): (expression: Readonly<Expression>) => boolean

Defined in: _internal/typescript-eslint-node-autofix.ts:735

Build a predicate that skips rule reporting/fixing when the compared expression resolves to an @typescript-eslint AST node.

Type Parametersโ€‹

MessageIdsโ€‹

MessageIds extends string

Optionsโ€‹

Options extends readonly unknown[]

Parametersโ€‹

contextโ€‹

Readonly<TSESLint.RuleContext<MessageIds, Options>>

Rule context for typed parser services.

typedServices?โ€‹

Readonly<TypedRuleServices>

Prevalidated typed services. Pass null/undefined to run definition-only fallback logic with no checker calls.

Returnsโ€‹

Expression predicate that returns true when the current rule should skip reporting/fixing for the expression.

(expression: Readonly<Expression>) => boolean