Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #302 from Shopify/no-unsafe-checkalias
Browse files Browse the repository at this point in the history
Enable checkAliases for react/no-unsafe rule
  • Loading branch information
BPScott committed Jun 14, 2019
2 parents d5df939 + e9fea4a commit 2cf425a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config/rules/react.js
Expand Up @@ -64,7 +64,7 @@ module.exports = {
// Prevent usage of unknown DOM property
'react/no-unknown-property': 'off',
// Prevent usage of UNSAFE_ methods
'react/no-unsafe': 'error',
'react/no-unsafe': ['error', {checkAliases: true}],
// Prevent definitions of unused prop types
'react/no-unused-prop-types': 'error',
// Attempts to discover all state fields in a React component and warn if any of them are never read.
Expand Down

0 comments on commit 2cf425a

Please sign in to comment.