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

Update: Improve error reporting when extending missing config (fixes … #8100

Merged
merged 1 commit into from Feb 20, 2017

Conversation

alberto
Copy link
Member

@alberto alberto commented Feb 18, 2017

#6115)

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

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

What changes did you make? (Give an overview)
Improve error message when a base config is not found.

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

@eslintbot
Copy link

Thanks for the pull request, @alberto! I took a look to make sure it's ready for merging and found some changes are needed:

  • The commit summary must be 72 characters or shorter. Please check out our guide for how to properly format your commit summary and update it on this pull request.

Can you please update the pull request to address these?

(More information can be found in our pull request guide.)

@mention-bot
Copy link

@alberto, thanks for your PR! By analyzing the history of the files in this pull request, we identified @nzakas, @mysticatea and @not-an-aardvark to be potential reviewers.

@alberto alberto added accepted There is consensus among the team that this change meets the criteria for inclusion cli Relates to ESLint's command-line interface enhancement This change enhances an existing feature of ESLint labels Feb 18, 2017
@eslintbot
Copy link

LGTM

@@ -0,0 +1,3 @@
ESLint couldn't find the config "<%- configName %>" to extend from. Please, check the name of the config is correct.
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick about the wording here: Please, check the name of the config is correct. -> Please check that the name of the config is correct.

@@ -0,0 +1,3 @@
ESLint couldn't find the config "<%- configName %>" to extend from. Please, check the name of the config is correct.

If you still can't figure out the problem, please stop by https://gitter.im/eslint/eslint to chat with the team.
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: Not a big fan of "If you still can't figure out the problem" - sounds a bit accusatory. Alternative suggestion: "If you are still having difficulties after checking the above, please stop by https://gitter.im/eslint/eslint to chat with the team."

@@ -0,0 +1,3 @@
ESLint couldn't find the config "<%- configName %>" to extend from. Please, check the name of the config is correct.

If you still can't figure out the problem, please stop by https://gitter.im/eslint/eslint to chat with the team.
Copy link
Member

Choose a reason for hiding this comment

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

I know we have other error messages that also link to the chatroom, but have we considered using something other than a hardcoded URL? If we ever switch from Gitter to something else, anyone with an old ESLint version will get directed to an inactive support link. I wonder if we should link people to eslint.org/chatroom or something, and then have that URL redirect to Gitter. Then we could change the redirect if we end up moving away from Gitter in the future.

Copy link
Member Author

Choose a reason for hiding this comment

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

I can do this as a different PR to avoid mixing concerns.

@eslintbot
Copy link

LGTM

@gyandeeps gyandeeps merged commit 360dbe4 into master Feb 20, 2017
@alberto alberto deleted the issue6115 branch February 22, 2017 23:47
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 6, 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 Feb 6, 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 cli Relates to ESLint's command-line interface enhancement This change enhances an existing feature of ESLint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants