Changeset 0c6b92a for imaps-frontend/node_modules/eslint-plugin-react/lib/rules/jsx-first-prop-new-line.js
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/eslint-plugin-react/lib/rules/jsx-first-prop-new-line.js
rd565449 r0c6b92a 8 8 const docsUrl = require('../util/docsUrl'); 9 9 const report = require('../util/report'); 10 const propsUtil = require('../util/props'); 10 11 11 12 // ------------------------------------------------------------------------------ … … 56 57 node: decl, 57 58 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'); 59 61 }, 60 62 });
Note:
See TracChangeset
for help on using the changeset viewer.