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-typos.js

    rd565449 r0c6b92a  
    88const Components = require('../util/Components');
    99const docsUrl = require('../util/docsUrl');
     10const astUtil = require('../util/ast');
    1011const componentUtil = require('../util/componentUtil');
    1112const report = require('../util/report');
     
    110111        ) { // PropTypes.myProp
    111112          checkValidPropType(node.property);
    112         } else if (node.object.type === 'CallExpression') {
     113        } else if (astUtil.isCallExpression(node.object)) {
    113114          checkValidPropTypeQualifier(node.property);
    114115          checkValidCallExpression(node.object);
    115116        }
    116       } else if (node.type === 'CallExpression') {
     117      } else if (astUtil.isCallExpression(node)) {
    117118        checkValidCallExpression(node);
    118119      }
     
    195196          if (node.specifiers.length >= 1) {
    196197            const propTypesSpecifier = node.specifiers.find((specifier) => (
    197               specifier.imported && specifier.imported.name === 'PropTypes'
     198              specifier.imported
     199              && specifier.imported.name === 'PropTypes'
    198200            ));
    199201            if (propTypesSpecifier) {
Note: See TracChangeset for help on using the changeset viewer.