packages/hast-util-to-babel-ast/src/stringToObjectStyle.js
function formatValue(value) {
  if (isNumeric(value)) return t.numericLiteral(Number(value))
  if (isConvertiblePixelValue(value))
    return t.numericLiteral(Number(trimEnd(value, 'px')))
  return t.stringLiteral(value)
}
function formatValue(value) {
  if (isNumeric(value)) return t.numericLiteral(Number(value))
  if (isConvertiblePixelValue(value))
    return t.numericLiteral(Number(trimEnd(value, 'px')))
  return t.stringLiteral(value)
}
function formatValue ( value ) { if ( isNumeric ( value ) ) return t . numericLiteral ( Number ( value ) ) if ( isConvertiblePixelValue ( value ) ) return t . numericLiteral ( Number ( trimEnd ( value , 'px' ) ) ) return t . stringLiteral ( value ) }
Format style value into JSX style object value.

@param {string} key
@return {string}
Format style value into JSX style object value .