Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add Non-empty judgment #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

leafstark
Copy link

I added a non-empty judgment to the variable that may cause a TypeError(
TypeError: Cannot read property 'references' of null
) in _iterateVariableReferences
for (const reference of variable.references) {

@leafstark
Copy link
Author

@mysticatea would you please have a look at this PR? While running ESLint, TypeError: Cannot read property 'references' of null occurs when users use eslint-plugin-vue and unplugin-vue2-script-setup. Thanks in advance!

@ota-meshi
Copy link
Contributor

Hi @leafstark.

I think it's an eslint-plugin-vue issue, not an eslint-utils issue.
Also, the eslint-plugin-vue issue has probably been fixed.
vuejs/eslint-plugin-vue#1690

If you still can't solve it, please open the issue in eslint-plugin-vue. In that case, please also provide a repository to reproduce the issue.

MichaelDeBoey pushed a commit to MichaelDeBoey/eslint-utils that referenced this pull request Apr 26, 2023
Bumps [prettier](https://github.com/prettier/prettier) from 2.8.0 to 2.8.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.8.0...2.8.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants