code: function getSelectorsFromProps(selectors, node) {
    const props = typeof node.props === 'function' ? node.props() : node.props
    if (!props) return []
    const className = props.className || props.class
    if (className) {
      selectors = selectors.concat(
        className
          .toString()
          .split(' ')
          .map(cn => `.${cn}`),
      )
    }
    const dataProps = Object.keys(props).reduce((dProps, key) => {
      if (key.startsWith('data-')) {
        dProps.push(`[${key}]`)
      }
      return dProps
    }, [])
    if (dataProps.length) {
      selectors = selectors.concat(dataProps)
    }
    return selectors
  }
docs: eslint-disable-next-line