-
Notifications
You must be signed in to change notification settings - Fork 32
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
enforceExistence is not working with ES2015 exports #159
Comments
@zxqfox When will we have a new release for it. i am using jscs 2.2.1, and i face a same problem too. Thanks ! |
Wow, that was quick, thanks :-) But this fix only considers ExportDefaultDeclarations and not ExportNamedDeclarations, right? So, /**
* A square method
*
* @param {number} n - The numbe to be squared
* @return {number} The square of the number
*/
export function square (n) {
return n * n;
} will still fail. I should have included that in my initial report :-| |
@alawatthe Thanks for you posting. I have the same problem ! Now i need to switch back to version 2.1.1 and it works ! |
Oh, right. Will add tests for these cases and fix them if needed. ;-) Thanks for reports! @lovedota If you need to update jsdoc plugin — just install more freshy jscs-jsdoc version than bundled in jscs (e.g. |
What about:
? |
LGTM, thank you :-) |
With
"enforceExistence": true
and the following functionI get the following error (using jscs 2.2.0, jscs-doc 1.2.0)
The error does not occur when using jscs 2.2.0, jscs-doc 1.1.0.
With the following snippet everything is working
The text was updated successfully, but these errors were encountered: