2016-04-15 16 views
0

私はESLint valid-jsdocに問題があります。以下のエラーが表示されます。何か不足していますか?私は、有効な-JSDocのチェックが(セレクタコールバックが細かい[@Jeremyラジャンで述べたように欠けているものを持っているように更新I]だっPageAdminPublication機能のために必要となるすべてのものをキャプチャ思っESLintコールバック付きJSDocエラー

import { Mongo } from 'meteor/mongo' // eslint-disable-line no-unused-vars 

/** 
* @callback selectorToSearchCb 
* @param {object} selector extra stuff 
*/ 

/** 
* Administrative list publication. This provides access to all the whole collection with pagination. 
* Only allowed if the user is in the admin role. 
* 
* @param {string} publicationName publication name 
* @param {Mongo.Collection} collection mongo collection 
* @param (selectorToSearchCb) selectorToSearch selector to search function. This is used to convert input selectors to the search object for the find(). 
* @param {string} fields an array of field names that would be sent for edit and listing. 
* @return {void} 
*/ 
function PagedAdminPublication(publicationName, collection, selectorToSearch, ...fields) { 

答えて

1

ESlintがあることを行っていません。あなたはselectorToSearchCb周り無効ブレースを持っているようにコメントを解析することができあなたは私のため{selectorToSearchCb}なく(selectorToSearchCb)

次作品を使用する必要があります。

/** 
    * Administrative list publication. This provides access to all the whole collection with pagination. 
    * Only allowed if the user is in the admin role. 
    * 
    * @param {string} publicationName publication name 
    * @param {Mongo.Collection} collection mongo collection 
    * @param {selectorToSearchCb} selectorToSearch selector to search function. This is used to convert input selectors to the search object for the find(). 
    * @param {string} fields an array of field names that would be sent for edit and listing. 
    * @return {void} 
    */ 
+0

いやはやはderpedおかげで、私はこのwarranを考えていません。スタックのオーバーフローに関する質問は今すぐ:P –

関連する問題