function isAllowed(node) {
      const propertyName = utils.getStaticPropertyName(node)

      return propertyName && allowed.includes(propertyName)
    }
Copied from the core rule `no-console`.
Checks whether the property name of the given MemberExpression node
is allowed by options or not.
@param {MemberExpression} node The MemberExpression node to check.
@returns {boolean} `true` if the property name of the node is allowed.