Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function checkPropertyAccessibilityModifier(classProperty) {
const nodeType = 'class property'
if (isTypeScriptFile(context.getFilename())) {
const propertyName = util.getNameFromPropertyName(classProperty.key)
if (!!classProperty.accessibility) {
reportIssue('presentModifier', nodeType, classProperty, propertyName)
}
}
}