tslint-clean-code
Version:
TSLint rules for enforcing Clean Code
12 lines (9 loc) • 360 B
text/typescript
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 };