@atlaskit/eslint-plugin-design-system
Version:
The essential plugin for use with the Atlassian Design System.
16 lines (15 loc) • 505 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isDecendantOfStyleJsxAttribute = void 0;
var _eslintCodemodUtils = require("eslint-codemod-utils");
var _isDecendantOfStyleJsxAttribute = exports.isDecendantOfStyleJsxAttribute = function isDecendantOfStyleJsxAttribute(node) {
if ((0, _eslintCodemodUtils.isNodeOfType)(node, 'JSXAttribute')) {
return true;
}
if (node.parent) {
return _isDecendantOfStyleJsxAttribute(node.parent);
}
return false;
};