Search code examples
javascriptlintjscs

jscs lint error 'Expect valid jsdoc-block definition'


I'm using the jscs linter. I get this error writing a standard function like this

function foo (param) {
    return param;
}

What could be the problem here?


Solution

  • Did you try this?

    /** 
    * Just a function
    * 
    * @param {Object} param
    */
    function foo(param) {
        return param;
    }