lib/rules/explicit-member-accessibility.js
function checkPropertyAccessibilityModifier(classProperty) {
            if (
                !classProperty.accessibility &&
                util.isTypescript(context.getFilename())
            ) {
                context.report({
                    node: classProperty,
                    message:
                        "Missing accessibility modifier on class property {{name}}.",
                    data: {
                        name: classProperty.key.name,
                    },
                });
            }
        }
function checkPropertyAccessibilityModifier(classProperty) {
            if (
                !classProperty.accessibility &&
                util.isTypescript(context.getFilename())
            ) {
                context.report({
                    node: classProperty,
                    message:
                        "Missing accessibility modifier on class property {{name}}.",
                    data: {
                        name: classProperty.key.name,
                    },
                });
            }
        }
function checkPropertyAccessibilityModifier ( classProperty ) { if ( ! classProperty . accessibility && util . isTypescript ( context . getFilename ( ) ) ) { context . report ( { node : classProperty , message : "Missing accessibility modifier on class property {{name}}." , data : { name : classProperty . key . name , } , } ) ; } }
Checks if property has an accessibility modifier.
@param {ASTNode} classProperty The node representing a ClassProperty.
@returns {void}
@private
Checks if property has an accessibility modifier .