mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 23:37:18 +00:00
Merge pull request #138 from resin-io/feat/jscs-jsdoc
Lint JSDoc annotations with JSCS
This commit is contained in:
commit
16cb141308
21
.jscsrc
21
.jscsrc
@ -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,
|
||||
|
@ -103,6 +103,7 @@ imageWriter.service('ImageWriterService', function($q, $timeout) {
|
||||
*
|
||||
* @param {String} image - image path
|
||||
* @param {Object} drive - drive
|
||||
* @param {Function} onProgress - in progress callback (state)
|
||||
*
|
||||
* @returns {Promise}
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user