UNPKG

eslint-plugin-mocha

Version:

Eslint rules for mocha.

10 lines 616 B
import type { Rule, SourceCode } from 'eslint'; import type { Except } from 'type-fest'; type DynamicPathSegment = string | symbol; export type DynamicPath = readonly DynamicPathSegment[]; export type ConstantPath = readonly string[]; export declare function getIdentifierName(node: Except<Rule.Node, 'parent'>): DynamicPathSegment; export declare function extractMemberExpressionPath(sourceCode: Readonly<SourceCode>, node: Readonly<Rule.Node>): DynamicPath; export declare function isConstantPath(path: readonly (string | symbol)[]): path is ConstantPath; export {}; //# sourceMappingURL=member-expression.d.ts.map