Changeset 0c6b92a for imaps-frontend/node_modules/eslint-plugin-react/lib/rules/no-adjacent-inline-elements.js
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/eslint-plugin-react/lib/rules/no-adjacent-inline-elements.js
rd565449 r0c6b92a 9 9 const isCreateElement = require('../util/isCreateElement'); 10 10 const report = require('../util/report'); 11 const astUtil = require('../util/ast'); 11 12 12 13 // ------------------------------------------------------------------------------ … … 63 64 return true; 64 65 } 65 if ( node.type === 'CallExpression'&& inlineNames.indexOf(node.arguments[0].value) > -1) {66 if (astUtil.isCallExpression(node) && inlineNames.indexOf(node.arguments[0].value) > -1) { 66 67 return true; 67 68 } … … 77 78 }; 78 79 80 /** @type {import('eslint').Rule.RuleModule} */ 79 81 module.exports = { 80 82 meta: { … … 118 120 return; 119 121 } 120 const children = node.arguments[2].elements;122 const children = 'elements' in node.arguments[2] ? node.arguments[2].elements : undefined; 121 123 validate(node, children); 122 124 },
Note:
See TracChangeset
for help on using the changeset viewer.