mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-25 07:47: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,
|
"disallowAnonymousFunctions": false,
|
||||||
"disallowShorthandArrowFunctions": true,
|
"disallowShorthandArrowFunctions": true,
|
||||||
"disallowCapitalizedComments": false,
|
"disallowCapitalizedComments": false,
|
||||||
|
@ -103,6 +103,7 @@ imageWriter.service('ImageWriterService', function($q, $timeout) {
|
|||||||
*
|
*
|
||||||
* @param {String} image - image path
|
* @param {String} image - image path
|
||||||
* @param {Object} drive - drive
|
* @param {Object} drive - drive
|
||||||
|
* @param {Function} onProgress - in progress callback (state)
|
||||||
*
|
*
|
||||||
* @returns {Promise}
|
* @returns {Promise}
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user