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/sort-default-props.js

    rd565449 r0c6b92a  
    2323};
    2424
     25/** @type {import('eslint').Rule.RuleModule} */
    2526module.exports = {
    2627  meta: {
     
    5354     * Get properties name
    5455     * @param {Object} node - Property.
    55      * @returns {String} Property name.
     56     * @returns {string} Property name.
    5657     */
    5758    function getPropertyName(node) {
     
    7475     * Checks if the Identifier node passed in looks like a defaultProps declaration.
    7576     * @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 not
     77     * @returns {boolean}       `true` if the node is a defaultProps declaration, `false` if not
    7778     */
    7879    function isDefaultPropsDeclaration(node) {
     
    173174        }
    174175
    175         checkNode(node.parent.right);
     176        checkNode('right' in node.parent && node.parent.right);
    176177      },
    177178    };
Note: See TracChangeset for help on using the changeset viewer.