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-find-dom-node.js

    rd565449 r0c6b92a  
    1717};
    1818
     19/** @type {import('eslint').Rule.RuleModule} */
    1920module.exports = {
    2021  meta: {
     
    3637        const callee = node.callee;
    3738
    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) {
    4147          return;
    4248        }
Note: See TracChangeset for help on using the changeset viewer.