UNPKG

@atlaskit/eslint-plugin-design-system

Version:

The essential plugin for use with the Atlassian Design System.

10 lines • 300 B
/** * Whether `specifier` loads `packageName` or one of its subpaths. A scope, such as * `'@floating-ui'`, matches every package in that scope. */ export function isModuleFromPackage({ specifier, packageName }) { return specifier === packageName || specifier.startsWith(`${packageName}/`); }