Changeset 0c6b92a for imaps-frontend/node_modules/eslint-plugin-react/lib/rules/jsx-sort-default-props.js
Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/eslint-plugin-react/lib/rules/jsx-sort-default-props.js
rd565449 r0c6b92a 26 26 }; 27 27 28 /** @type {import('eslint').Rule.RuleModule} */ 28 29 module.exports = { 29 30 meta: { … … 58 59 * Get properties name 59 60 * @param {Object} node - Property. 60 * @returns { String} Property name.61 * @returns {string} Property name. 61 62 */ 62 63 function getPropertyName(node) { … … 79 80 * Checks if the Identifier node passed in looks like a defaultProps declaration. 80 81 * @param {ASTNode} node The node to check. Must be an Identifier node. 81 * @returns { Boolean} `true` if the node is a defaultProps declaration, `false` if not82 * @returns {boolean} `true` if the node is a defaultProps declaration, `false` if not 82 83 */ 83 84 function isDefaultPropsDeclaration(node) { … … 179 180 } 180 181 181 checkNode( node.parent.right);182 checkNode('right' in node.parent && node.parent.right); 182 183 }, 183 184
Note:
See TracChangeset
for help on using the changeset viewer.