diff --git a/src/rules/helpers/astHelpers.ts b/src/rules/helpers/astHelpers.ts index 6480f7b..9ef189e 100644 --- a/src/rules/helpers/astHelpers.ts +++ b/src/rules/helpers/astHelpers.ts @@ -1,5 +1,5 @@ import { addToList } from '../utils/arrayUtils'; -import { COMPOSABLES_FUNCTION_PATTERN, REACTIVE_FUNCTIONS } from '../constants/constant.js'; +import { COMPOSABLES_FUNCTION_PATTERN, REACTIVE_FUNCTIONS } from '../constants/constant'; import { AST_NODE_TYPES } from '@typescript-eslint/utils'; import type { Node, diff --git a/src/rules/reactive-value-suffix.ts b/src/rules/reactive-value-suffix.ts index 3115bbe..e6bbc43 100644 --- a/src/rules/reactive-value-suffix.ts +++ b/src/rules/reactive-value-suffix.ts @@ -116,7 +116,7 @@ function checkMemberExpression( parserServices: ParserServices, checker: TypeChecker, ): void { - if (isPropertyValue(node) && isIdentifier(node.object) && variableFromReactiveFunctions.includes(node.object.name)) { + if (!isPropertyValue(node) && isIdentifier(node.object) && variableFromReactiveFunctions.includes(node.object.name)) { checkNodeAndReport(node.object, node.object.name, context, parserServices, checker); } }