eslint-plugin-sonarjs
Version:
11 lines (10 loc) • 680 B
TypeScript
import type { TSESTree } from '@typescript-eslint/utils';
import type { JSXOpeningElement } from 'estree-jsx';
import type { Rule } from 'eslint';
export declare function isPresentationTable(context: Rule.RuleContext, node: TSESTree.JSXOpeningElement): boolean;
export declare function getRole(node: TSESTree.JSXOpeningElement): string | null;
/**
* Checks whether an accessible-name attribute has a statically non-empty or dynamic value.
*/
export declare function hasAccessibleNameAttribute(attributes: JSXOpeningElement['attributes'], name: string): boolean;
export declare const getElementType: (context: Rule.RuleContext) => ((node: TSESTree.JSXOpeningElement) => string);