Add trailing commas to ESLint + Prettier

This commit is contained in:
Gregory Schier committed 2018-12-12 12:36:11 -05:00
1 parent 64a5e44528
commit 88b0bb784f
404 files changed
+2575 -2571

No files matched your search

@@ -5,9 +5,9 @@ module.exports = {
key: 'java',
title: 'Java',
extname: '.java',
default: 'unirest'
default: 'unirest',
},
okhttp: require('./okhttp'),
unirest: require('./unirest')
unirest: require('./unirest'),
};
@@ -16,9 +16,9 @@ var CodeBuilder = require('../../helpers/code-builder');
module.exports = function(source, options) {
var opts = util._extend(
{
indent: ' '
indent: ' ',
},
options
options,
);
var code = new CodeBuilder(opts.indent);
@@ -34,14 +34,14 @@ module.exports = function(source, options) {
code.push(
'MediaType mediaType = MediaType.parse("%s; boundary=%s");',
source.postData.mimeType,
source.postData.boundary
source.postData.boundary,
);
} else {
code.push('MediaType mediaType = MediaType.parse("%s");', source.postData.mimeType);
}
code.push(
'RequestBody body = RequestBody.create(mediaType, %s);',
JSON.stringify(source.postData.text)
JSON.stringify(source.postData.text),
);
}
@@ -85,5 +85,5 @@ module.exports.info = {
key: 'okhttp',
title: 'OkHttp',
link: 'http://square.github.io/okhttp/',
description: 'An HTTP Request Client Library'
description: 'An HTTP Request Client Library',
};
@@ -16,9 +16,9 @@ var CodeBuilder = require('../../helpers/code-builder');
module.exports = function(source, options) {
var opts = util._extend(
{
indent: ' '
indent: ' ',
},
options
options,
);
var code = new CodeBuilder(opts.indent);
@@ -29,13 +29,13 @@ module.exports = function(source, options) {
code.push(
'HttpResponse<String> response = Unirest.customMethod("%s","%s")',
source.method.toUpperCase(),
source.fullUrl
source.fullUrl,
);
} else {
code.push(
'HttpResponse<String> response = Unirest.%s("%s")',
source.method.toLowerCase(),
source.fullUrl
source.fullUrl,
);
}
@@ -62,5 +62,5 @@ module.exports.info = {
key: 'unirest',
title: 'Unirest',
link: 'http://unirest.io/java.html',
description: 'Lightweight HTTP Request Client Library'
description: 'Lightweight HTTP Request Client Library',
};