src/custom/cappasity-upload-post.js
Function uploadPost
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function uploadPost(props) {
const { amqp, config } = this;
const { getMetadata, audience, exportAudience } = config.users;
return Promise
Function verifyUploadData
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
.try(function verifyUploadData() {
if (!props[FILES_EXPORT_FIELD]) {
return null;
}
Parsing error: The keyword 'const' is reserved Open
Open
const Promise = require('bluebird');
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/