UNPKG

@atlaskit/eslint-plugin-design-system

Version:

The essential plugin for use with the Atlassian Design System.

10 lines (9 loc) 463 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isFontFamily = void 0; var _eslintCodemodUtils = require("eslint-codemod-utils"); var isFontFamily = exports.isFontFamily = function isFontFamily(node) { return (0, _eslintCodemodUtils.isNodeOfType)(node, 'CallExpression') && (0, _eslintCodemodUtils.isNodeOfType)(node.callee, 'Identifier') && (node.callee.name === 'fontFamily' || node.callee.name === 'getFontFamily'); };