UNPKG

@typescript-eslint/eslint-plugin

Version:
13 lines 944 B
type LegacyAllowConstantLoopConditions = boolean; type AllowConstantLoopConditions = 'always' | 'never' | 'only-allowed-literals'; export type Options = [ { allowConstantLoopConditions?: AllowConstantLoopConditions | LegacyAllowConstantLoopConditions; allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean; checkTypePredicates?: boolean; } ]; export type MessageId = 'alwaysFalsy' | 'alwaysFalsyFunc' | 'alwaysNullish' | 'alwaysTruthy' | 'alwaysTruthyFunc' | 'comparisonBetweenLiteralTypes' | 'never' | 'neverNullish' | 'neverOptionalChain' | 'noOverlapBooleanExpression' | 'noStrictNullCheck' | 'typeGuardAlreadyIsType'; declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageId, Options, import("../../rules").ESLintPluginDocs, import("@typescript-eslint/utils/ts-eslint").RuleListener>; export default _default; //# sourceMappingURL=no-unnecessary-condition.d.ts.map