UNPKG

@atlaskit/eslint-plugin-design-system

Version:

The essential plugin for use with the Atlassian Design System.

11 lines 371 B
var _isDecendantOfType = function isDecendantOfType(node, type) { var skipNode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true; if (!skipNode && node.type === type) { return true; } if (node.parent) { return _isDecendantOfType(node.parent, type, false); } return false; }; export { _isDecendantOfType as isDecendantOfType };