mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-28 01:29:28 -04:00
Add trailing commas to ESLint + Prettier
This commit is contained in:
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',
|
||||
};
|
||||
Reference in new issue
Block a user