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: Add option to ignore constructor functions in object-shorthand rule (fixes #4487) #4574

Merged
merged 1 commit into from Dec 8, 2015

Conversation

kaicataldo
Copy link
Member

Not 100% confident about the JSON Schema (first time working with it, so please bear with me) - let me know if anything needs to be changed!

@kaicataldo kaicataldo force-pushed the objectshorthandignoreconstructors branch 8 times, most recently from 078ace6 to 7fbb3b4 Compare November 30, 2015 16:21
@kaicataldo
Copy link
Member Author

Just wanted to check in on this.

"type": "array",
"items": [
{
"enum": [0, 1, 2]
Copy link
Member

Choose a reason for hiding this comment

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

This can now be modified. A change was merged in could of days ago, that doesn't require first parameter in the array to be specified in the schema. Change was made as part of this pull request: #4596

Copy link
Member Author

Choose a reason for hiding this comment

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

Awesome - will take a look and fix it. Thanks!

@ilyavolodin
Copy link
Member

Other then schema, LGTM

@kaicataldo kaicataldo force-pushed the objectshorthandignoreconstructors branch from 7fbb3b4 to 8c37703 Compare December 5, 2015 05:39
@kaicataldo
Copy link
Member Author

Updated :)

"type": "array",
"items": [
{
"enum": ["always", "methods", "properties", "never"]
Copy link
Member

Choose a reason for hiding this comment

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

Should this only have "always" and "methods"? (Based on what the documentation says)

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, great point

@kaicataldo kaicataldo force-pushed the objectshorthandignoreconstructors branch from 8c37703 to 44d2276 Compare December 5, 2015 23:18
@nzakas
Copy link
Member

nzakas commented Dec 8, 2015

Looks good, thanks!

nzakas added a commit that referenced this pull request Dec 8, 2015
…ctors

Update: Add option to ignore constructor functions in object-shorthand rule (fixes #4487)
@nzakas nzakas merged commit 0240af8 into eslint:master Dec 8, 2015
@kaicataldo kaicataldo deleted the objectshorthandignoreconstructors branch January 23, 2016 22:13
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Feb 7, 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 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants