Merge "add jsdoc to component/editorconfig"

This commit is contained in:
Jenkins 2016-07-22 17:39:12 +00:00 committed by Gerrit Code Review
commit 401be7650a
1 changed files with 11 additions and 2 deletions

View File

@ -13,6 +13,12 @@
* License for the specific language governing permissions and limitations
* under the License.
*/
/*
* editorconfig module
* @module
*/
'use strict';
var projectBuilder = require('../project_builder');
@ -33,13 +39,16 @@ function noop (generator) {
* @param {generator} generator The currently active generator.
* @returns {generator} The passed generator, for promise chaining.
*/
function configureEC (generator) {
function configure (generator) {
projectBuilder.addFile('.editorconfig');
return generator;
}
module.exports = {
/** @see {@link module:component/editorconfig~noop} */
init: noop,
/** @see {@link module:component/editorconfig~noop} */
prompt: noop,
configure: configureEC
/** @see {@link module:component/editorconfig~configure} */
configure: configure
};