Ignore:
Timestamp:
12/12/24 17:06:06 (5 weeks ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
d565449
Message:

Pred finalna verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/eslint-plugin-react/lib/rules/no-adjacent-inline-elements.js

    rd565449 r0c6b92a  
    99const isCreateElement = require('../util/isCreateElement');
    1010const report = require('../util/report');
     11const astUtil = require('../util/ast');
    1112
    1213// ------------------------------------------------------------------------------
     
    6364    return true;
    6465  }
    65   if (node.type === 'CallExpression' && inlineNames.indexOf(node.arguments[0].value) > -1) {
     66  if (astUtil.isCallExpression(node) && inlineNames.indexOf(node.arguments[0].value) > -1) {
    6667    return true;
    6768  }
     
    7778};
    7879
     80/** @type {import('eslint').Rule.RuleModule} */
    7981module.exports = {
    8082  meta: {
     
    118120          return;
    119121        }
    120         const children = node.arguments[2].elements;
     122        const children = 'elements' in node.arguments[2] ? node.arguments[2].elements : undefined;
    121123        validate(node, children);
    122124      },
Note: See TracChangeset for help on using the changeset viewer.