UNPKG

eslint-plugin-sonarjs

Version:
26 lines (25 loc) 1.48 kB
import type { Rule } from 'eslint'; import type estree from 'estree'; export declare const SUPPORTED_TEST_FRAMEWORKS: string[]; export declare const TEST_FUNCTION_NAMES: string[]; export declare const SUITE_FUNCTION_NAMES: string[]; export declare const PLAYWRIGHT_TEST_MODIFIERS: Set<string>; export declare const PLAYWRIGHT_DESCRIBE_MODIFIERS: Set<string>; export declare const PLAYWRIGHT_DESCRIBE_FOCUS_MODIFIER = "only"; export declare function isMochaTestConstruct(context: Rule.RuleContext, node: estree.CallExpression, constructs: string[], { allowParameterized }?: { allowParameterized?: boolean; }): boolean; export declare function isConcreteMochaTestModifier(context: Rule.RuleContext, modifier: string): boolean; export declare function getMochaCalleeParts(node: estree.Node): { base: estree.Identifier; modifiers: string[]; } | undefined; export declare function collectMemberChain(node: estree.Node): { base: estree.Node; qualifiers: string[]; }; export declare function getMochaConstructName(context: Rule.RuleContext, identifier: estree.Identifier): string | undefined; export declare function hasCallback(node: estree.CallExpression): boolean; export declare function getStaticTitle(node: estree.Node): string | undefined; export declare function getPlaywrightTestQualifiers(context: Rule.RuleContext, node: estree.Node): string[] | undefined; export declare function getPlaywrightDescribeQualifiers(node: estree.Node): string[] | undefined;