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.
Example:
.jscsrc{ "plugins": [ "jscs-jsdoc" ], "jsDoc": { "checkAnnotations": true, "checkTypes": "capitalizedNativeCase", "requireParamTypes": true, "checkRedundantParams": true, "checkReturnTypes": true, "checkRedundantReturns": true } }Output:
Expected behavior: correct check array types.