function validateName(node) {
            const name = node.key.name;
            const accessibility = node.accessibility || "public";
            const convention = conventions[accessibility];

            if (!convention || convention.test(name)) return;

            context.report({
                node: node.key,
                message:
                    "{{accessibility}} property {{name}} should match {{convention}}.",
                data: { accessibility, name, convention },
            });
        }
/**
         * Check that the property name matches the convention for its
         * accessibility.
         * @param {ASTNode} node the named node to evaluate.
         * @returns {void}
         * @private
         */
Check that the property name matches the convention for its
accessibility.
@param {ASTNode} node the named node to evaluate.
@returns {void}
@private
Check that the property name matches the convention for its accessibility . @param { ASTNode } node the named node to evaluate . @returns { void } @private
function validateName(node) {
            const name = node.key.name;
            const accessibility = node.accessibility || "public";
            const convention = conventions[accessibility];
            if (!convention || convention.test(name)) return;
            context.report({
                node: node.key,
                message:
                    "{{accessibility}} property {{name}} should match {{convention}}.",
                data: { accessibility, name, convention },
            });
        }
function validateName ( node ) { const name = node . key . name ; const accessibility = node . accessibility || "public" ; const convention = conventions [ accessibility ] ; if ( ! convention || convention . test ( name ) ) return ; context . report ( { node : node . key , message : "{{accessibility}} property {{name}} should match {{convention}}." , data : { accessibility , name , convention } , } ) ; }
Check that the property name matches the convention for its
 accessibility.
Check that the property name matches the convention for its accessibility .