Skip to content

Commit

Permalink
Allow react-intl’s FormattedNumber usage of style prop
Browse files Browse the repository at this point in the history
  • Loading branch information
tusbar committed Feb 22, 2021
1 parent 9c0c6f8 commit 32e8ab2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ module.exports = {
closingSlash: 'never',
beforeSelfClosing: 'always',
afterOpening: 'never'
}]
}],
'react/style-prop-object': [
'error',
{
allow: [
// This is for react-intl
'FormattedNumber'
]
}
]
}
}

0 comments on commit 32e8ab2

Please sign in to comment.