diff --git a/packages/eslint-plugin-sui/src/rules/private-attributes-model.js b/packages/eslint-plugin-sui/src/rules/private-attributes-model.js index 4d1423519..d9772db21 100644 --- a/packages/eslint-plugin-sui/src/rules/private-attributes-model.js +++ b/packages/eslint-plugin-sui/src/rules/private-attributes-model.js @@ -81,7 +81,8 @@ module.exports = { const customGetterName = `get${attribute.key.name.charAt(0).toUpperCase()}${attribute.key.name.slice(1)}` classMethods.forEach(method => { - const existNativeGetterWithAttributeKey = method?.key?.name === attribute?.key?.name && method?.kind === 'get' + const existNativeGetterWithAttributeKey = + method?.key?.name === attribute?.key?.name && method?.kind === 'get' const existCustomGetterWithAttributeKey = method?.key?.name === customGetterName if (existNativeGetterWithAttributeKey || existCustomGetterWithAttributeKey) {