message: lint Text, add support for fontWeight='bold'
diff: @@ -14,48 +14,38 @@ const fontSizeMap = {
  }
  const Text = props => {
  - const {
  - tag: Tag = 'span',
  - children,
  - className,
  - color,
  - fontSize,
  - fontWeight,
  - lineHeight,
  - mono,
  - nowrap
  - } = map(props)
  + const {tag: Tag = 'span', children, color, fontSize, fontWeight, lineHeight, mono, nowrap, ...rest} = props
  + const {className} = map(rest)
  - const fontSizeClass = (fontSize in fontSizeMap)
  - ? `f${fontSizeMap[fontSize]}`
  - : (typeof fontSize === 'string') ? `f${fontSize}` : null
  + const fontSizeClass =
  + fontSize in fontSizeMap ? `f${fontSizeMap[fontSize]}` : typeof fontSize === 'string' ? `f${fontSize}` : null
  return (
  - <Tag className={classnames(
  + <Tag
  + className={classnames(
  className,
  color && `text-${color}`,
  fontSizeClass,
  + fontWeight === 'bold' && 'text-bold',
  lineHeight && `lh-${lineHeight}`,
  mono && 'text-mono',
  - nowrap && 'no-wrap',
  - )}>
  + nowrap && 'no-wrap'
  + )}
  + >
  {children}
  </Tag>
  )
  }
  Text.propTypes = {
  - tag: PropTypes.string,
  // TODO: constrain with PropTypes.oneOf()
  color: PropTypes.string,
  // TODO constrain with PropTypes.oneOf()
  - fontSize: PropTypes.oneOfType([
  - PropTypes.number,
  - PropTypes.string
  - ]),
  + fontSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
  fontWeight: PropTypes.oneOf(['normal', 'bold']),
  lineHeight: PropTypes.oneOf(['normal', 'condensed', 'condensed-ultra']),
  mono: PropTypes.bool,
  + nowrap: PropTypes.bool,
  tag: PropTypes.string
  }
  