eslint-plugin-sonarjs
Version:
12 lines (11 loc) • 736 B
TypeScript
import type { Rule } from 'eslint';
import type estree from 'estree';
export declare const TESTING_LIBRARY_MODULES: readonly ["@testing-library/dom", "@testing-library/react", "@testing-library/vue", "@testing-library/angular", "@testing-library/svelte"];
interface DirectTestingLibraryBindingOptions {
allowNamespaceImport: boolean;
allowSubpathImport: boolean;
}
export declare function isDirectTestingLibraryBinding(context: Rule.RuleContext, node: estree.Node, importedName: string, options: DirectTestingLibraryBindingOptions): boolean;
export declare function importsTestingLibrary(context: Rule.RuleContext): boolean;
export declare function withStrictImportResolution(rule: Rule.RuleModule): Rule.RuleModule;
export {};