UNPKG

tslint-clean-code

Version:
12 lines (9 loc) 360 B
import * as ts from 'typescript'; import { getAncestorNode } from '../JsxAttribute'; /** * @Returns the implicit role for a footer tag. */ function getImplicitRoleForFooter(node: ts.Node): string { return getAncestorNode(node, 'article') || getAncestorNode(node, 'section') ? undefined : 'contentinfo'; } export { getImplicitRoleForFooter as footer };