.eslintplugin/code-import-patterns.ts/isLayerAllowRule
function isLayerAllowRule(option: RawOption): option is LayerAllowRule {
	return !!((<LayerAllowRule>option).when && (<LayerAllowRule>option).allow);
}