Skip to content

Error with array type #94

@ikokostya

Description

@ikokostya

Example:

/**
 * @param {Number[][]} bounds
 */
function f(bounds) {}

.jscsrc

{
    "plugins": [
        "jscs-jsdoc"
    ],
    "jsDoc": {
        "checkAnnotations": true,
        "checkTypes": "capitalizedNativeCase",
        "requireParamTypes": true,
        "checkRedundantParams": true,
        "checkReturnTypes": true,
        "checkRedundantReturns": true
    }
}

Output:

$ ./node_modules/.bin/jscs test.js 
expects valid type instead of Number[][] at test.js :
     1 |/**
     2 | * @param {Number[][]} bounds
-------------------^
     3 | */
     4 |function f(bounds) {}


1 code style error found.

Expected behavior: correct check array types.

Metadata

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