Skip to content

Commit

Permalink
Merge pull request #40 from XeicuLy/fix/warning
Browse files Browse the repository at this point in the history
fix rule
  • Loading branch information
XeicuLy authored Oct 10, 2024
2 parents 91ea459 + 40a15ab commit a6144a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rules/helpers/astHelpers.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/rules/reactive-value-suffix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit a6144a9

Please sign in to comment.