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/jsx-first-prop-new-line.js

    rd565449 r0c6b92a  
    88const docsUrl = require('../util/docsUrl');
    99const report = require('../util/report');
     10const propsUtil = require('../util/props');
    1011
    1112// ------------------------------------------------------------------------------
     
    5657                node: decl,
    5758                fix(fixer) {
    58                   return fixer.replaceTextRange([(node.typeParameters || node.name).range[1], decl.range[0]], '\n');
     59                  const nodeTypeArguments = propsUtil.getTypeArguments(node);
     60                  return fixer.replaceTextRange([(nodeTypeArguments || node.name).range[1], decl.range[0]], '\n');
    5961                },
    6062              });
Note: See TracChangeset for help on using the changeset viewer.