diff --git a/index.js b/index.js index 8c0d47e..52fd504 100644 --- a/index.js +++ b/index.js @@ -72,7 +72,15 @@ module.exports = { 'never' ], 'react/static-property-placement': 'error', - 'react/style-prop-object': 'error', + 'react/style-prop-object': [ + 'error', + { + allow: [ + // This allows react-intl’s ``. + 'FormattedNumber' + ] + } + ], 'react/void-dom-elements-no-children': 'error', 'react/jsx-boolean-value': 'error', 'react/jsx-closing-bracket-location': [