Lint JSDoc annotations with JSCS

See http://jscs.info/rule/jsDoc
This commit is contained in:
Juan Cruz Viotti 2016-01-31 21:15:28 -04:00
parent ce177e193d
commit 28a6d786c8

21
.jscsrc
View File

@ -1,4 +1,25 @@
{
"jsDoc": {
"checkAnnotations": {
"preset": "jsdoc3",
"extra": {
"fulfil": true
}
},
"checkParamExistence": true,
"checkParamNames": true,
"requireParamTypes": true,
"checkReturnTypes": true,
"checkRedundantReturns": true,
"requireReturnTypes": true,
"checkTypes": "capitalizedNativeCase",
"checkRedundantAccess": true,
"requireHyphenBeforeDescription": true,
"requireNewlineAfterDescription": true,
"requireDescriptionCompleteSentence": true,
"requireParamDescription": true,
"checkRedundantParams": true
},
"disallowAnonymousFunctions": false,
"disallowShorthandArrowFunctions": true,
"disallowCapitalizedComments": false,