Skip to content

simple module example generates a lint error #295

Open
@jfirebaugh

Description

index.js:

'use strict';

/**
 * Square a number.
 * @param {number} x - base
 * @returns {number} x²
 */
module.exports.square = function (x) { return x * x; };

documentation --lint output:

    3:1  warning  @memberof reference to index not found

I tried using an explicit @module:

'use strict';

/**
 * @module test
 */

/**
 * Square a number.
 * @param {number} x - base
 * @returns {number} x²
 */
module.exports.square = function (x) { return x * x; };

documentation --lint output:

    3:1  warning  @memberof reference to test not found
    7:1  warning  @memberof reference to test not found

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions