Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/eslint-plugin-react/lib/rules/no-typos.js
rd565449 r0c6b92a 8 8 const Components = require('../util/Components'); 9 9 const docsUrl = require('../util/docsUrl'); 10 const astUtil = require('../util/ast'); 10 11 const componentUtil = require('../util/componentUtil'); 11 12 const report = require('../util/report'); … … 110 111 ) { // PropTypes.myProp 111 112 checkValidPropType(node.property); 112 } else if ( node.object.type === 'CallExpression') {113 } else if (astUtil.isCallExpression(node.object)) { 113 114 checkValidPropTypeQualifier(node.property); 114 115 checkValidCallExpression(node.object); 115 116 } 116 } else if ( node.type === 'CallExpression') {117 } else if (astUtil.isCallExpression(node)) { 117 118 checkValidCallExpression(node); 118 119 } … … 195 196 if (node.specifiers.length >= 1) { 196 197 const propTypesSpecifier = node.specifiers.find((specifier) => ( 197 specifier.imported && specifier.imported.name === 'PropTypes' 198 specifier.imported 199 && specifier.imported.name === 'PropTypes' 198 200 )); 199 201 if (propTypesSpecifier) {
Note:
See TracChangeset
for help on using the changeset viewer.