eslint-plugin-etc
eslint-plugin-etc copied to clipboard
TypeError: Cannot read properties of undefined (reading 'parent')
The problem is this line https://github.com/cartant/eslint-plugin-etc/blob/e04da45c70d404177a11294ed3891cc85aaf4def/source/rules/no-internal.ts#L64
Sometimes ts.Type may have an undefined symbol property, instead the aliasSymbol is correct. At least type aliases are using this member, not symbol. Check the esample here
Here is a related stack overflow answer
I forgot to provide background, this error occurs in rule no-internal.
This came up for me when attempting to upgrade to TypeScript 5.1.6.