ESlint comma-dangle

This commit is contained in:
Peter Jaszkowiak
2017-02-17 19:31:21 -07:00
parent aa64ec7db1
commit bc1d70c126
345 changed files with 1974 additions and 1978 deletions

View File

@@ -7,7 +7,7 @@ module.exports = function (Plugins) {
Plugins.deprecatedHooks = {
'filter:user.custom_fields': null, // remove in v1.1.0
'filter:post.save': 'filter:post.create',
'filter:user.profileLinks': 'filter:user.profileMenu'
'filter:user.profileLinks': 'filter:user.profileMenu',
};
/*
`data` is an object consisting of (* is required):
@@ -36,7 +36,7 @@ module.exports = function (Plugins) {
(Plugins.deprecatedHooks[data.hook] ?
'please use `' + Plugins.deprecatedHooks[data.hook] + '` instead.' :
'there is no alternative.'
)
),
);
} else {
// handle hook's startsWith, i.e. action:homepage.get

View File

@@ -52,7 +52,7 @@ module.exports = function (Plugins) {
meta.reloadRequired = true;
Plugins.fireHook(isActive ? 'action:plugin.deactivate' : 'action:plugin.activate', id);
next();
}
},
], function (err) {
if (err) {
winston.warn('[plugins] Could not toggle active state on plugin \'' + id + '\'');
@@ -97,7 +97,7 @@ module.exports = function (Plugins) {
function (pluginData, next) {
Plugins.fireHook('action:plugin.' + type, id);
next(null, pluginData);
}
},
], callback);
}
@@ -126,7 +126,7 @@ module.exports = function (Plugins) {
function (isActive, next) {
meta.reloadRequired = isActive;
next(null, isActive);
}
},
], callback);
}

View File

@@ -59,7 +59,7 @@ module.exports = function (Plugins) {
async.apply(mapStaticDirectories, pluginData, pluginData.path),
], next);
}, next);
}
},
], callback);
};
@@ -283,7 +283,7 @@ module.exports = function (Plugins) {
},
plugin: function (next) {
fs.readFile(path.join(pluginPath, 'plugin.json'), next);
}
},
}, function (err, results) {
if (err) {
return callback(err);