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

Chore: no-invalid-meta crash if no export assignment (refs #9534) #9698

Merged
merged 1 commit into from
Dec 9, 2017

Conversation

platinumazure
Copy link
Member

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update
[x] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[ ] Other, please explain:

See #9534.

What changes did you make? (Give an overview)

Added new lint error report for files that don't assign to module.exports, avoiding a crash that otherwise occurs later in the rule.

Is there anything you'd like reviewers to focus on?

One test had to be commented out due to #9534. Otherwise, not really.

@platinumazure
Copy link
Member Author

Hmm. Since this doesn't impact end-users (though it could impact developers/contributors?), should this be a Chore?

@gyandeeps
Copy link
Member

yes this should be a chore

@platinumazure platinumazure changed the title Fix: no-invalid-meta crash if no export assignment (refs #9534) Chore: no-invalid-meta crash if no export assignment (refs #9534) Dec 8, 2017
@platinumazure
Copy link
Member Author

@gyandeeps Fixed, this is now a Chore. Thanks!


/*
* Should be invalid, but will currently show as valid due to #9534.
* FIXME: Uncomment when #9534 is fixed in major release.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a note about this to the 5.0.0 milestone so we don't forget?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍, how would I go about doing that?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we should make an issue to list these kinds of changes or just make an issue for the change itself.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you look at a column on the milestone page, and then click on the "+" near the top-right of the column, it allows you to add a note with arbitrary text.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I've added a note. I can convert into an issue if needed.

@platinumazure platinumazure added accepted There is consensus among the team that this change meets the criteria for inclusion chore This change is not user-facing labels Dec 9, 2017
@platinumazure platinumazure merged commit 4564fe0 into master Dec 9, 2017
@ilyavolodin ilyavolodin deleted the no-invalid-meta-fix-error branch December 9, 2017 16:11
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Jun 8, 2018
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Jun 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion archived due to age This issue has been archived; please open a new issue for any further discussion chore This change is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants