Closed AlexanderZeilmann closed 8 years ago
@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. npm i jscs-dev/jscs-jsdoc
for master branch).
What about:
export default () => {
};
?
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