Skip to Content

ESLint rule require-jsdoc isn't working properly in Multi-cloud WebIDE

Sep 18, 2017 at 10:50 PM


avatar image

I've tried to use the eslint rule require-jsdoc in the multi-cloud WebIDE. However it doesn't seem to work properly. I think this is due to the way we write javascript in UI5. If i write a native javascript function, then the rule picks it up.

Below picture is my function in a SAPUI5 Controller JS file, which isn't picked up. The error you see below is for the myfunction in the test.js file, which is a native Javascript function.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Alex Avizov
Sep 19, 2017 at 06:14 AM

Hi JaKob,

Actually it works as expected. Eslint "require-jsdoc" rule works on following options:


In your case the function is not from type of "FunctionDeclaration" but from type of "property".

You can easily check it with:



Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Alex,

Is there any way to. Change that behaviour for the rule. Please correct me if I am. Wrong, but as I see it right now it is pretty much unusable.