Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de25db9

Browse files
committed
Merge remote-tracking branch 'origin/main' into docs/playground-ast-viewer
2 parents 928b5cc + 6e159ee commit de25db9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/development/CUSTOM_RULES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export const rule: eslint.Rule.RuleModule = {
240240
const originalNode = parserServices.esTreeNodeToTSNodeMap.get(
241241
node.right,
242242
);
243-
const nodeType = checker.getTypeAtLocation(node);
243+
const nodeType = checker.getTypeAtLocation(originalNode);
244244

245245
// 3. Check the TS node type using the TypeScript APIs
246246
if (tsutils.isTypeFlagSet(nodeType, ts.TypeFlags.EnumLike)) {

0 commit comments

Comments
 (0)