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: no-restricted-globals custom error messages (fixes #8315) #8932

Merged
merged 2 commits into from Jul 16, 2017

Conversation

platinumazure
Copy link
Member

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

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

See #8315.

What changes did you make? (Give an overview)

Updated schema for no-restricted-globals to support custom error messages, similar to no-restricted-syntax.

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

Nothing in particular.

@eslintbot
Copy link

LGTM

@platinumazure platinumazure self-assigned this Jul 12, 2017
@platinumazure platinumazure added accepted There is consensus among the team that this change meets the criteria for inclusion enhancement This change enhances an existing feature of ESLint rule Relates to ESLint's core rules labels Jul 12, 2017
@kaicataldo
Copy link
Member

It looks like there's a discussion to expand this option to other rules as well: #8400

I think it's totally fine to do this rule in its own PR, just wanted to raise awareness so we can make the APIs match.

@platinumazure
Copy link
Member Author

@kaicataldo Just let me know if you think I should "ref" the combined issue rather than "fixing" the issue I currently have listed in the commit message! 😄

@eslintbot
Copy link

LGTM

@ilyavolodin ilyavolodin merged commit fb8005d into master Jul 16, 2017
@not-an-aardvark not-an-aardvark deleted the issue8315-no-restricted-globals-custom-messages branch July 16, 2017 04:01
@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 enhancement This change enhances an existing feature of ESLint rule Relates to ESLint's core rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants