eslint-plugin-perfectionist
Version:
ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.
14 lines (13 loc) • 515 B
JavaScript
/**
* Checks if a group name represents a side-effect-only import group.
*
* Side-effect-only groups are 'side-effect' and 'side-effect-style', which
* contain imports executed only for their side effects without bindings.
*
* @param groupName - The group name to check.
* @returns True if the group is a side-effect-only group.
*/
function isStringGroupSideEffectOnlyGroup(groupName) {
return groupName === 'side-effect' || groupName === 'side-effect-style'
}
export { isStringGroupSideEffectOnlyGroup }