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

    rd565449 r0c6b92a  
    2626};
    2727
     28/** @type {import('eslint').Rule.RuleModule} */
    2829module.exports = {
    2930  meta: {
     
    5859     * Get properties name
    5960     * @param {Object} node - Property.
    60      * @returns {String} Property name.
     61     * @returns {string} Property name.
    6162     */
    6263    function getPropertyName(node) {
     
    7980     * Checks if the Identifier node passed in looks like a defaultProps declaration.
    8081     * @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 not
     82     * @returns {boolean}       `true` if the node is a defaultProps declaration, `false` if not
    8283     */
    8384    function isDefaultPropsDeclaration(node) {
     
    179180        }
    180181
    181         checkNode(node.parent.right);
     182        checkNode('right' in node.parent && node.parent.right);
    182183      },
    183184
Note: See TracChangeset for help on using the changeset viewer.