Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/eslint-plugin-react/lib/rules/no-find-dom-node.js
rd565449 r0c6b92a 17 17 }; 18 18 19 /** @type {import('eslint').Rule.RuleModule} */ 19 20 module.exports = { 20 21 meta: { … … 36 37 const callee = node.callee; 37 38 38 const isfindDOMNode = (callee.name === 'findDOMNode') 39 || (callee.property && callee.property.name === 'findDOMNode'); 40 if (!isfindDOMNode) { 39 const isFindDOMNode = ('name' in callee && callee.name === 'findDOMNode') || ( 40 'property' in callee 41 && callee.property 42 && 'name' in callee.property 43 && callee.property.name === 'findDOMNode' 44 ); 45 46 if (!isFindDOMNode) { 41 47 return; 42 48 }
Note:
See TracChangeset
for help on using the changeset viewer.