Changeset 0c6b92a for imaps-frontend/node_modules/eslint-plugin-react/lib/rules/sort-default-props.js
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/eslint-plugin-react/lib/rules/sort-default-props.js
rd565449 r0c6b92a 23 23 }; 24 24 25 /** @type {import('eslint').Rule.RuleModule} */ 25 26 module.exports = { 26 27 meta: { … … 53 54 * Get properties name 54 55 * @param {Object} node - Property. 55 * @returns { String} Property name.56 * @returns {string} Property name. 56 57 */ 57 58 function getPropertyName(node) { … … 74 75 * Checks if the Identifier node passed in looks like a defaultProps declaration. 75 76 * @param {ASTNode} node The node to check. Must be an Identifier node. 76 * @returns { Boolean} `true` if the node is a defaultProps declaration, `false` if not77 * @returns {boolean} `true` if the node is a defaultProps declaration, `false` if not 77 78 */ 78 79 function isDefaultPropsDeclaration(node) { … … 173 174 } 174 175 175 checkNode( node.parent.right);176 checkNode('right' in node.parent && node.parent.right); 176 177 }, 177 178 };
Note:
See TracChangeset
for help on using the changeset viewer.