Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Update: add ability to parse optional properties in typedefs (refs #5) #174

Merged
merged 2 commits into from
Sep 13, 2016
Merged

Update: add ability to parse optional properties in typedefs (refs #5) #174

merged 2 commits into from
Sep 13, 2016

Conversation

ikokostya
Copy link
Contributor

This is rebased to master pull request #162. Unrelated changes in CHANGELOG.md and package.json are removed.

@@ -255,9 +259,11 @@
return utility.throwError('Braces are not balanced');
}

if (isParamTitle(title)) {
if (isParamTitle(title) || (sloppy && isAllowedOptional(title))) {
Copy link
Member

Choose a reason for hiding this comment

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

Can't this just be replaced with if (isAllowedOptional(title))?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think yes. All tests passed.

@nzakas
Copy link
Member

nzakas commented Sep 13, 2016

Overall looks good, just one question (left inline).

@nzakas nzakas merged commit d7426e5 into eslint:master Sep 13, 2016
@nzakas
Copy link
Member

nzakas commented Sep 13, 2016

Thanks! I'll do a new release with this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants