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 960b93b59..4d65a41e3 100644 --- a/packages/eslint-plugin-sui/src/rules/private-attributes-model.js +++ b/packages/eslint-plugin-sui/src/rules/private-attributes-model.js @@ -54,7 +54,11 @@ module.exports = { // Check if all attributes are public const publicAttributes = node.body.body.filter(node => { - return node.type === 'PropertyDefinition' && node.key.type === 'Identifier' && node.value?.type !== 'ArrowFunctionExpression' + return ( + node.type === 'PropertyDefinition' && + node.key.type === 'Identifier' && + node.value?.type !== 'ArrowFunctionExpression' + ) }) publicAttributes.forEach(attribute => {